Write a MATLAB script utilizing IF-ELSEIF-ELSE statements that asks the user to enter a grade between...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a MATLAB script utilizing IF-ELSEIF-ELSE statements that asks the user to enter a grade between 0 and 100 (0 is the minimum grade and 100 is the maximum). After the user has entered their grade, the computer must then assign the appropriate letter grade based on the list of criteria provided in the table below and display a statement informing the user the letter grade that they have earned. The minimal criterion for each letter grade is as follows: Grade A Criterion At least 90% B At least 80%, but not more than 90% C At least 70%, but not more than 80% D F At least 60%, but not more than 70% Strictly less than 60% If the user has earned a grade of B, the computer must display the message: You earned a grade of <number grade specified by user>. Your letter grade is B. The location given by <number grade specified by user> must display the number grade that the user entered earlier. Therefore, if the user entered a grade of 74, the message must show: You earned a grade of 74. Your letter grade is B. If the user entered a grade of 56, the message must show: You earned a grade of 74. Your letter grade is F. Write a MATLAB script utilizing IF-ELSEIF-ELSE statements that asks the user to enter a grade between 0 and 100 (0 is the minimum grade and 100 is the maximum). After the user has entered their grade, the computer must then assign the appropriate letter grade based on the list of criteria provided in the table below and display a statement informing the user the letter grade that they have earned. The minimal criterion for each letter grade is as follows: Grade A Criterion At least 90% B At least 80%, but not more than 90% C At least 70%, but not more than 80% D F At least 60%, but not more than 70% Strictly less than 60% If the user has earned a grade of B, the computer must display the message: You earned a grade of <number grade specified by user>. Your letter grade is B. The location given by <number grade specified by user> must display the number grade that the user entered earlier. Therefore, if the user entered a grade of 74, the message must show: You earned a grade of 74. Your letter grade is B. If the user entered a grade of 56, the message must show: You earned a grade of 74. Your letter grade is F. Write a MATLAB script utilizing IF-ELSEIF-ELSE statements that asks the user to enter a grade between 0 and 100 (0 is the minimum grade and 100 is the maximum). After the user has entered their grade, the computer must then assign the appropriate letter grade based on the list of criteria provided in the table below and display a statement informing the user the letter grade that they have earned. The minimal criterion for each letter grade is as follows: Grade A Criterion At least 90% B At least 80%, but not more than 90% C At least 70%, but not more than 80% D F At least 60%, but not more than 70% Strictly less than 60% If the user has earned a grade of B, the computer must display the message: You earned a grade of <number grade specified by user>. Your letter grade is B. The location given by <number grade specified by user> must display the number grade that the user entered earlier. Therefore, if the user entered a grade of 74, the message must show: You earned a grade of 74. Your letter grade is B. If the user entered a grade of 56, the message must show: You earned a grade of 74. Your letter grade is F. Write a MATLAB script utilizing IF-ELSEIF-ELSE statements that asks the user to enter a grade between 0 and 100 (0 is the minimum grade and 100 is the maximum). After the user has entered their grade, the computer must then assign the appropriate letter grade based on the list of criteria provided in the table below and display a statement informing the user the letter grade that they have earned. The minimal criterion for each letter grade is as follows: Grade A Criterion At least 90% B At least 80%, but not more than 90% C At least 70%, but not more than 80% D F At least 60%, but not more than 70% Strictly less than 60% If the user has earned a grade of B, the computer must display the message: You earned a grade of <number grade specified by user>. Your letter grade is B. The location given by <number grade specified by user> must display the number grade that the user entered earlier. Therefore, if the user entered a grade of 74, the message must show: You earned a grade of 74. Your letter grade is B. If the user entered a grade of 56, the message must show: You earned a grade of 74. Your letter grade is F.
Expert Answer:
Answer rating: 100% (QA)
score inputPlease enter the score grade floorscore 10 if grade 10 grade A elsei... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Q-1. You are the new Governor of State Bank of Pakistan after Reza Baqir. For each of the situations listed below, decide if you would use Easy-Monetary policy or Tight-Monetary policy. a) RGDP...
-
Road construction contracts in the state of Florida Are awarded on the basis of competitive, sealed bids; the contractor who submits the lowest bid price wins the contract. During the 1980s, the...
-
Define direct costs and indirect costs.
-
When we roll a pair of balanced dice, what are the probabilities of getting (a) 7 ; (b) 11 ; (c) 7 or 11 ; (d) 3 ; (e) 2 or 12 ; (f) 2,3 , or 12 ?
-
Assume the same facts as in Exercise 20-22, except that Grand Devices now uses a backflush costing system with the following two trigger points: In Exercise 20-22, There are no beginning inventories...
-
Salvador Industries bought land and built its plant 20 years ago. The depreciation on the building is calculated using the straight-line method, with a life of 30 years and a salvage value of $52.000...
-
If Johnson Bank reported an ROE of 13.00% for 2022, along with capital of $30.0 million, total assets of $250 million and non-interest expense of $22 million, what was the banks net income ($) for...
-
Table 25.2 Futures Contracts Quote, December 4, 2020 Futures Contracts Metal & Petroleum Futures Contract Open High hilo Low Copper-High (CMX)-25,000 lbs:$per lb Dec 3.4800 3.5055 3.4580 March 21...
-
Tableau Dashboard Activity 5-1 Account for Uncollectible Accounts Using the Aging Method Review the Tableau visualization, and then answer the questions that follow. Total Accounts Receivable Amount...
-
Consider the function f(x) = -x + 4. function there. a) State the domain and range of f. b) Using interval notation, state where the function is increasing and decreasing. What is the rate of change...
-
1 Question One Special Day Souvenirs creates customized customized cornhole sets which are popular gifts for special events. During the month of November 20XX, Special Day Souvenirs undertook one job...
-
Beerco manufactures ale and beer from com, hops, and malt. Currently, 40lb of corn, 30lb of hops, and 40lb of malt are available. A barrel of ale sells for $40 and requires 1lb of com, 1lb of hops,...
-
3. Consider two large isothermal plates separated by 2-mm thick oil film. The upper plate moves as a constant velocity of 12 m/s, while the lower plate is stationary. Both plates are maintained at 24...
-
What are the main distinctions between the different schools of legal interpretation?
-
The value of 1t can be estimated from the expression: 2/ = 2/2 . 2 + 2/2 . 2/ + 2 + 2/2, .. Write a MATLAB program in a script file that determine 1t for any number of terms. The program asks the...
-
Tumor growth can be modeled with the equation where A (t) is the area of the tumor and a , k, and u are constants. Solve the equation for 0 - a4[1-(4)] dA dt
-
Define x as a symbolic variable and create the two symbolic expressions S1 = x2(x - 6) + 4(3x - 2) and S2 = (x + 2)2 - 8x Use symbolic operations to determine the simplest form of each of following...
-
When you exhale, all of the air in your lungs must exit through the trachea. If you exhale through your nose, this air subsequently leaves through your nostrils. The area of your nostrils is less...
-
A \(20 \mathrm{~kg}\) block of aluminum sits on the bottom of a tank of water. How much force does the block exert on the bottom of the tank? Long-distance balloon flights are usually made using a...
-
Sneezing requires an increase in pressure of the air in the lungs; a typical sneeze might result in an extra pressure of \(7.0 \mathrm{kPa}\). Estimate how much force this exerts on the diaphragm,...
Study smarter with the SolutionInn App