its a lab report, please solve it using matlab A4-1. Using if.....elseif else structure, write a program
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A4-1. Using if.....elseif else structure, write a program for the following grading policy of a University. A (Excellent) 90 to 100 B+ (Very Good) 85 to <90 B (Good) 80 to <85 Fail = <80 Note: If there is a negative value as an input, it will show an error message "negative value is not allowed". Execute the program and display the results, whenever the grade is 90, -89, 85, and 79 A4-2. Create an index of a book by using Switch Structure with the condition below: Chapter 1: Introduction Chapter 2: Modeling Chapter 3: Programming If the chapter is not between 1-3, it will show an error message "The Index number is not vailed". Execute the program and display the results, whenever the chapter number is 1, 2, 3, and 4 A4-3. (a) Plot the bungee jumper velocity by using fplot over the range from 1-0 to 12 sec by using @ v= 9.81 80 0.25 9.81 0.25 tanh (V t) 80 (b). Pass the function to the m-file and find out average velocity from t-1 to 12. A4-1. Using if.....elseif else structure, write a program for the following grading policy of a University. A (Excellent) 90 to 100 B+ (Very Good) 85 to <90 B (Good) 80 to <85 Fail = <80 Note: If there is a negative value as an input, it will show an error message "negative value is not allowed". Execute the program and display the results, whenever the grade is 90, -89, 85, and 79 A4-2. Create an index of a book by using Switch Structure with the condition below: Chapter 1: Introduction Chapter 2: Modeling Chapter 3: Programming If the chapter is not between 1-3, it will show an error message "The Index number is not vailed". Execute the program and display the results, whenever the chapter number is 1, 2, 3, and 4 A4-3. (a) Plot the bungee jumper velocity by using fplot over the range from 1-0 to 12 sec by using @ v= 9.81 80 0.25 9.81 0.25 tanh (V t) 80 (b). Pass the function to the m-file and find out average velocity from t-1 to 12.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Express the quantity of 3.225 kJ in calories.
-
Using Adam Smith's canon on economy, evaluate the Federal income tax?
-
Conduct a study to determine how well the binomial distribution approximates the hypergeometric distribution. Consider a bag with n balls, 25% of which are red. A sample of size (0.10)n is taken. Let...
-
The requirement to make a study and evaluation of internal control applies regardless of the method of data processing used by a company. However, the methodology of complying with this standard may...
-
A process that is considered to be in control measures an ingredient in ounces. Below are the last 10 samples (Each of size n = 5) taken. The population standard deviation is 1.36. (a) What is the...
-
What is the effective annual interest rate on a 19% APR home equity loan that has quarterly payments?
-
a. Answer (a) through (c) from Exercise 11.1 using the results in column (3). b. Sketch the predicted probabilities from the probit and linear probability in columns (1) and (3) as a function of...
-
During the lockdown 60% of senior schools delivered online classes through GoogleMeet platform and remaining 40% schools delivered the classes through other platforms like MicrosoftMeet, Zoom etc. In...
-
Titan SpAs net income for the most recent year was 4,850. The tax rate was 33 per cent. The firm paid 2,108 in total interest expense and deducted 1,687 in depreciation expense. What was Titans cash...
-
Some of the following accounts are real (permanent) accounts, and some are nominal (temporary) accounts. Which are which? Capital Stock Revenues Accumulated Depreciation Salaries Expense Accounts...
-
Are the skills managers need different for lower-level and middle managers? Do managers at Amazon use managerial skills differently than those at UPS or Uber?
-
Visit a business news website (such as Forbes or a similar organization) and identify three types of employment advice it offers that you havent learned in class. Do you find this advice to be...
-
10 mol/s of gas flow through a turbine. Find the change in enthalpy that the gas experiences: A . The gas is steam, with an inlet temperature and pressure T = 600C and P = 10 bar, and an outlet...
-
Choose one of the entrepreneurs from this list. Write an essay about how your chosen entrepreneur has affected life today. Detail challenges he or she faced and explain how this person embodies one...
-
In exchange for land, the company received a 12-month note on January 1. The face amount of the note is $1,000, and the stated rate of interest is 13%, compounded annually. The 13% rate is equal to...
-
A box of mass m is being pulled by a rope as shown. The force Fin the rope as a function of x can be calculated from the equations: where N and are the normal force and friction coefficient between...
-
The demand for water during a fire is often the most important factor in the design of distribution storage tanks and pumps. For communities with populations less than 200,000, the demand Q (in...
-
A bandpass filter passes signals with frequencies that are within a certain range. In this filter the ratio of the magnitudes of the voltages is given by RV = Vo/Vi = RC/(l - 2LC)2 + (RC)2 where is...
-
The information below has been extracted from the financial statements of Supreme Sporting Goods Ltd. Required: a) Calculate the following for years 2024 and 2025: i. the receivables turnover ratio...
-
Josie was absent from her accounting class on inventory valuation. She believes the value of ending inventory is verified by a physical stocktake, but it will only include inventory items held on...
-
Burkinshaw Ltd was established on 1 April 2025 and began by issuing 250000 ordinary shares and 1200008% cumulative preference shares. The preference shares were issued privately at a value of \($4\)...
Study smarter with the SolutionInn App