Write a program the prompts the user for information for three students. For each student prompt...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program the prompts the user for information for three students. For each student prompt for the student ID and three quiz grades. Use a nested loop, where the inner loop prompts for the three quiz grades. Print the student's name and average formatted to two decimal places. View the sample output as a guide. Enter name of student 1: Mary Jones Enter score 1 78 Enter score 2: 90 Enter score 3: 91 Mary Jones 86.33 Name: Average Enter name of student 2: Kevin Smith Enter score 1 90 Enter score 2: 77 Enter score 3: 85 Name Kevin Smith 84.00 Average: Enter name of student 3: Lauri Reiner Enter score 1: 79 Enter score 2 83 Enter score 3: 92 Name: Lauri Reiner 84.67 Average: Write a program the prompts the user for information for three students. For each student prompt for the student ID and three quiz grades. Use a nested loop, where the inner loop prompts for the three quiz grades. Print the student's name and average formatted to two decimal places. View the sample output as a guide. Enter name of student 1: Mary Jones Enter score 1 78 Enter score 2: 90 Enter score 3: 91 Mary Jones 86.33 Name: Average Enter name of student 2: Kevin Smith Enter score 1 90 Enter score 2: 77 Enter score 3: 85 Name Kevin Smith 84.00 Average: Enter name of student 3: Lauri Reiner Enter score 1: 79 Enter score 2 83 Enter score 3: 92 Name: Lauri Reiner 84.67 Average:
Expert Answer:
Answer rating: 100% (QA)
I have written the code in Java Im giving you the main method code below Code public static void ... View the full answer
Related Book For
Accounting for Decision Making and Control
ISBN: 978-0078025747
8th edition
Authors: Jerold Zimmerman
Posted Date:
Students also viewed these programming questions
-
Write a program that prompts the user to enter three strings. Compare the String objects lexicographically and print the middle-valued string. For example, if the three strings were "abcd", "wxyz",...
-
The Taylor Series for the cos(x) assuming x is in radians is: (-1)*. (2k)! cos(x) = 1- 4! k=0 Write a Python program that will: Prompt the user for the units of the angle (degrees or radians) If...
-
Smith Company and Jones Company enter into an interest rate swap, with Smith paying fixed interest to Jones, and Jones paying floating interest to Smith. Smith now goes bankrupt and so defaults on...
-
Identify how balance sheet quality and earnings quality were impaired in each of the following accounting scandals: Waste Management 1988 - Falsely increased the useful lives of long-lived tangible...
-
Why is the external environment important to an enterprise and its people? Can changes in the external environment be avoided? Explain with suitable examples.
-
A dog breeder decides to feed his dogs a combination of two dog foods: Pixie Power and Misty Might. He wants the dogs to receive four nutritional factors each month. The amounts of these factors (a,...
-
KPMG described four anchors of trusted analytics in a report titled "Building Trust in Analytics: Breaking the Cycle of Mistrust in D\&A," accessed at https://home. \(\mathrm{kpmg} /\)...
-
Computerized Accounting SystemDepartmental Budgetary Comparison Report. Review the computer generated budgetary comparison report presented below for the Lincoln City Parks and Recreation Department...
-
There are 15 jobs that must be done by 10 employees. Each job must be done by a single employee, and each employee can do at most two jobs. The time (in minutes) for the employees to do the jobs are...
-
For the plane trusses supported by the spring at node 1 in Figure P3-33 (a) and (b), determine the nodal displacements and the stresses in each element. Let E = 210 GPa and A 5.0 10-4 m2 for both...
-
Three ropes pull on a knot shown in (Figure 1) . The knot is not accelerating. A partially completed force diagram for the knot is shown in the figure (Figure 2) . Use Newton's second law to...
-
Do you know if your organization has a mission statement and a vision statement? If so, how are they communicated? Are they printed, posted on a website, or available in some other format? Please...
-
What does the income statement demonstrate for the organization?
-
Do you think this was the best way to make the decision? If not, what would you change? Why?
-
What is an excuse defense? Give five examples and explain.
-
Explain the M'Naghten rule.
-
You were asked to determine the finance charge per $ 1 0 0 borrowed for a 5 - year loan with monthly payments of $ 3 9 9 . 5 0 and a starting principal of $ 2 0 , 4 0 0 . Round your answer to the...
-
Suppose you are comparing just two means. Among the possible statistics you could use is the difference in means, the MAD, or the max min (the difference between the largest mean and the smallest...
-
Ricks Bags manufactures both golf bags and tennis totes. Fixed manufacturing overhead is budgeted to be $ 187,200, variable manufacturing overhead is budgeted to be $ 1.10 per direct labor hour, and...
-
Marian Health Care is a large hospital system outside Chicago that offers both hospital (inpatient) and clinic (outpatient) services. It has a centralized admissions office that admits and registers...
-
CJ Equity Partners is a privately held firm that buys small family- owned firms, installs professional managers to run the firms, and then sells them 3 5 years later, often for a substantial profit....
-
The elasticity of demand for a Ford automobile would likely be _________ elastic than the demand for automobiles because there are more and better substitutes for a certain type of car than for a car...
-
The smaller the proportion of income spent on a good, the _________ its elasticity of demand.
-
When the price falls on the _________ half of a straightline demand curve, demand is relatively _________. When the price falls on the lower half of a straight-line demand curve, demand is relatively...
Study smarter with the SolutionInn App