Develop an M-file function that is passed a numeric grade from 0 to 100 and returns a
Question:
Develop an M-file function that is passed a numeric grade from 0 to 100 and returns a letter grade according to the scheme:
The first line of the function should be
function grade = lettergrade(score)
Design the function so that it displays an error message and terminates in the event that the user enters a value of score that is less than zero or greater than 100. Test your function with 89.9999, 90, 45 and 120.
Transcribed Image Text:
Letter ABCDF Criteria 90 ≤ numeric grade ≤ 100 80 numeric grade < 90 70 ≤ numeric grade < 80 60 < numeric grade < 70 numeric grade <60
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 71% (14 reviews)
ANSWER function grade lettergradescore Check if score is out of ...View the full answer
Answered By
Churchil Mino
I have been a tutor for 2 years and have experience working with students of all ages and abilities. I am comfortable working with students one-on-one or in small groups, and am able to adapt my teaching style to meet the needs of each individual. I am patient and supportive, and my goal is to help my students succeed.
I have a strong background in math and science, and have tutored students in these subjects at all levels, from elementary school to college. I have also helped students prepare for standardized tests such as the SAT and ACT. In addition to academic tutoring, I have also worked as a swim coach and a camp counselor, and have experience working with children with special needs.
0.00
0 Reviews
10+ Question Solved
Related Book For
Applied Numerical Methods With MATLAB For Engineers And Scientists
ISBN: 9781259027437
3rd Edition
Authors: Steven C. Chapra
Question Posted:
Students also viewed these Mathematics questions
-
Develop a well-structured function procedure that is passed a numeric grade from 0 to 100 and returns a letter grade according toscheme: Letter Criteria 90 s numeric grade s 100 80 s numeric grode <...
-
A teacher has five students who have taken four tests. The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her four test scores: Write a...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Find the point on the plane z = x + y + 1 closest to the point P = (1, 0, 0). Minimize the square of the distance.
-
A financial analyst engaged in business valuation obtained financial data on 53 drug companies (Industry Group SIC 3 code: 283). The file Business Valuation contains the following variables: COMPANY...
-
detects and corrects the error. /*The Expected Output*/ Enter the scheme of code 11 Write a Java program that computes the Hamming Code which 7 The Scheme of hamming code is (11,7) Enter the 7-bit...
-
A centrifugal pump has the performance characteristics of the pump with the 6-in.-diameter impeller described in Fig. 12.7. Note that the pump in this figure is operating at \(3500 \mathrm{rpm}\)....
-
A thin beam of white light is directed at a flat sheet of silicate flint glass at an angle of 20.0? to the surface of the sheet. Due to dispersion in the glass, the beam is spread out as shown in a...
-
MACRO In September 2007, country A presents the following data in its population survey active (in thousands of people) total population 7710 Population aged 15 and over outside institutions 6326...
-
The butterfly curve from Prob. 2.22 can also be represented in polar coordinates as Generate values of r for values of from 0 to 8 with = /32. Use the MATLAB function polar to generate the polar...
-
The sine function can be evaluated by the following infinite series: Create an M-file to implement this formula so that it computes and displays the values of sin x as each term in the series is...
-
Create a JavaFX application that displays a button with the text Button 1. Underneath the button add a label with the text Label 1. Repeat with and additional Button 2 and Label 2. Add an image icon...
-
2) A cogeneration plant with a simple steam power plant topping cycle (single turbine, condenser, pump, and boiler, with no reheat or regeneration) is used to generate process heating for a refinery....
-
Consider a market as described in the table below. Asset Sharperatio Alpha/IdiosyncraticVolatility X 0.60 0.12 Y 0.40 -0.12 Allothers 0.79 0.00 M 0.80 0.00...
-
Rustafson Corporation is a diversified manufacturer of consumer goods. The company's activity-based costing system has the following seven activity cost pools: Activity Cost Pool Labor-related...
-
The open-loop transfer function of a system is: X(s) 2s +3 R(s) s +25 + 7s +9 Find the transfer function of the closed loop system with a unity feedback Problem 3 Find the open-loop and closed-loop...
-
Consider the market for copper, where demand is given by the equation P(QD) = 500 - 1/2Q and market supply is given by P(Qs) = 50 Q. The discount rate is r=10% and there is a fixed supply of 400...
-
Manitoba Metal Fabricators (MMF) is a company that makes steel components for the construction industry. It specializes in extreme precision manufacturing where tolerances are measured in distances...
-
Which task is performed by a book-keeper? A. Analysing the trading results B. Entering transactions in the ledger C. Preparing year-end financial statements D. Providing information for...
-
Solve 41[z1] - i [2 + i] 1 3 S 3 + 2i
-
Develop, debug, and test a program in either a high-level language or macro language of your choice to multiply two matrices that is, [X] = [Y] [Z], where [Y] is m by n and [Z] is n by p. Test the...
-
Develop, debug, and test a program in either a high-level language or macro language of your choice to generate the transpose of a matrix. Test it on the matrices from Prob. 9.3.
-
To estimate the value of Paul's investment at maturity, calculate the number of years until Paul will go to university, and use compound interest to calculate the value of Paul's investment at that...
-
What is the financial impact (financial/fiscal ramnification of artificial intelligence (AI)) on the econonly and jobs starting with federal or legislative statutes or regualtions and its influences...
-
If the Federal Reserve Bank is selling huge amounts of "reverse repos" to banks and if they are working hard to influence banks to raise their "Fed Funds Rate," and if they are selling large amounts...
Study smarter with the SolutionInn App