The overall grade in a course is determined from the grades of 6 quizzes, 3 midterms,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The overall grade in a course is determined from the grades of 6 quizzes, 3 midterms, and a final exam, using the following scheme: Quizzes: Quizzes are graded on a scale from 0 to 10. The grade of the lowest quiz is dropped and the average of the 5 quizzes with higher grades constitutes 25% of the course grade. Midterms and final exam: Midterms and final exam are graded on a scale from 0 to 100. If the average of the midterm scores is higher than the score on the final exam, the average of the midterms constitutes 50% of the course grade and the grade of the final exam constitutes 25% of the course grade. If the final grade is higher than the average of the midterms, the average of the midterms constitutes 25% of the course grade and the grade of the final exam constitutes 50% of the course grade. Write a MATLAB program that determines the course grade for a student with the following specifications: (a) The program first asks the user to enter the six quiz grades (in a vector), the three midterm grades (in a vector), and the grade of the final exam (number). (b) The program uses if statement to calculate a numerical course grade (a number between 0 and 100) then assigns a letter grade according to the following key: A for grade 290, B for 80 ≤ grade < 90, C for 70 ≤ grade < 80, D for 60 grade < 70, and F for a grade < 60. (c) The program displays the results in the form: 39 "The overall course grade is..... for a letter grade of..... (d) Execute the program for the following case: Quiz grades: 6, 10, 6, 8, 7, 8. Midterms grades: 82, 95, 89. Final exam: 81. The overall grade in a course is determined from the grades of 6 quizzes, 3 midterms, and a final exam, using the following scheme: Quizzes: Quizzes are graded on a scale from 0 to 10. The grade of the lowest quiz is dropped and the average of the 5 quizzes with higher grades constitutes 25% of the course grade. Midterms and final exam: Midterms and final exam are graded on a scale from 0 to 100. If the average of the midterm scores is higher than the score on the final exam, the average of the midterms constitutes 50% of the course grade and the grade of the final exam constitutes 25% of the course grade. If the final grade is higher than the average of the midterms, the average of the midterms constitutes 25% of the course grade and the grade of the final exam constitutes 50% of the course grade. Write a MATLAB program that determines the course grade for a student with the following specifications: (a) The program first asks the user to enter the six quiz grades (in a vector), the three midterm grades (in a vector), and the grade of the final exam (number). (b) The program uses if statement to calculate a numerical course grade (a number between 0 and 100) then assigns a letter grade according to the following key: A for grade 290, B for 80 ≤ grade < 90, C for 70 ≤ grade < 80, D for 60 grade < 70, and F for a grade < 60. (c) The program displays the results in the form: 39 "The overall course grade is..... for a letter grade of..... (d) Execute the program for the following case: Quiz grades: 6, 10, 6, 8, 7, 8. Midterms grades: 82, 95, 89. Final exam: 81.
Expert Answer:
Answer rating: 100% (QA)
To create a MATLAB program to determine the course grade for a student based on the specifications in the image you sent you can follow these steps Create a new MATLAB script file Define the following ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Kalan purchased four new tires at Walmart for $1,000 using there "no payments for 12 months plan." About a year later, before Kalan had made any payments, the tires were not performing as well as...
-
The overall grade in a course is determined from the grades of 6 quizzes, 3 midterms, and a final exam, using the following scheme: Quizzes: Quizzes are graded on a scale from 0 to 10. The grade of...
-
Despite the major inroads made by our current ADR Act in promoting ADR as against litigation, critics of the Act have serious concerns about the effectiveness of the Act in promoting its objectives....
-
4. Papo and Pepe are two barbers from a small barbershop. Theyhave their two court chairs plus two waiting chairs. The followingresults were found: P0 = 1/16 P1 = 4/16 P2 = 6/16 P3 = 4/16 a. What is...
-
Bill and Guilda each own 50 percent of the stock of Radiata Corporation, an S corporation. Guilda's basis in her stock is $25,000. On July 31, 2016, Bill sells his stock, with a basis of $40,000, to...
-
Discuss the sampling strategy and technique used to access the appropriate sample. Develop a hypothetical research scenario that would necessitate the use of a Regression-Discontinuity Posttest-Only...
-
Plot phase portraits for the Lienard system \[\begin{aligned} & x^{\prime}=y-\mu\left(x^{3}-x ight) \\ & y^{\prime}=-x \end{aligned}\] for a small and a not so small value of \(\mu\). Describe what...
-
The Scott Corey accounting firm is installing a new computer system. Several things must be done to make sure the system works properly before all the accounts are put into the new system. The...
-
Periods 5% 6% 7% 10% 0.95238 0.94340 0.93458 0.90909 N E 0.90703 0.89000 0.87344 0.82645 3 0.86384 0.83962 0.81630 0.75132 4 0.82270 0.79209 0.76290 0.68301 5 0.78353 0.74726 0.71299 0.62092 6...
-
An exercise advocate wants to determine the effect that walking rigorously has on weight loss. The researcher recruits participants to engage in a weeklong study. The researcher instructs...
-
Victor Korchnoi bought a bond one month before a semi-annual coupon was due. The face value was $10,000 and the coupon rate 8.5%. At the time of purchase there were 34 coupons left and the YTM was 6%...
-
Explain briefly the auditor's duty when (s)he has unresolved doubts about the ability of the auditee to continue as a going concern.
-
Describe briefly the 'stocksheet system' which may be used for a client's stocktaking.
-
Draw an energy-level diagram that represents the Hesss law calculation in Exercise 5.72. Exercise 5.72 In the process of isolating iron from its ores, carbon monoxide reacts with iron(III) oxide, as...
-
Describe briefly the key features of the Joint Monitoring Unit's monitoring process.
-
Define the auditor's 'desired level of assurance'. Explain how this relates to the auditor's desired level of audit risk.
-
Oxford Company has limited funds available for investment and must ration the funds among five competing projects. Selected information on the five projects follows: Project Investment Required Net...
-
Jax Incorporated reports the following data for its only product. The company had no beginning finished goods inventory and it uses absorption costing. $ 57.30 per unit $ 10.30 per unit $ 7.80 per...
-
Pollution Control. Three types of coal, C1, C2, and C3, are pulverized and mixed together to produce 50 tons per hour needed to power a plant for generating electricity. The burning of coal emits...
-
In a baseball game, Jorge is the pitcher and Jack the batter. Jorge can throw either a fast or a curve ball at random. If Jack predicts Jorges throw correctly, his batting score stands at .500 for a...
-
Develop a spreadsheet model for evaluating following integrals using a Monte Carlo experiment with 5 replications, 20 observations each: (a) (b) (c) (d) f(x)=1 + 2x, 2 < x 5
-
Sevilla Chemicals earned $1 billion in after-tax operating income on capital invested of $5 billion last year. The firms cost of equity is 12%, its debt-to-capital ratio is 25%, and the after-tax...
-
Stereo City is a retailer of stereos and televisions. The firm has operating income of $150 million, after operating lease expenses of $50 million. The firm has operating lease commitments for the...
-
Jeeves Software is a small software firm in high growth. The firm is all equity financed. In the current year, the firm earned $20 million in after-tax operating income on capital invested of $60...
Study smarter with the SolutionInn App