You are tasked to write a program to calculate the average for a given student based...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You are tasked to write a program to calculate the average for a given student based on the following information, each student has 3 test scores (60% of the grade), one quiz (10% of the grade) and a score for programming assignments (30% of the grade). Prompt user for their name and scores, then calculate the average and print the results nicely formatted. Name your program GradeCalculator.java. The following algorithm is given to help you develop the Java program. Make sure to follow the steps exactly as required to get the correct answers. A) Input (Use variables when reading data, and Constant (final) for the fixed set values.) Prompt user for Full name including any middle initials Prompt user for 3 test scores (Valid score must be between 0-100) integer type Prompt user for quiz score (Valid score must be between 0-100) integer type Prompt user for programming assignment score (Valid score must be between 0-100.0) 1) (2) 3) 4) real type 5) 6) 7) B) Process 1) 2) Set weight for test to 60% Set weight for programming assignments to 30% Set weight for Quiz to 10% Test Avg Average = Assignment Weight 1) 2) 3) 4) 5) 61 (TestScorel + TestScore2 + TestScore3 ) / 3.0 Test Avg * Test_Weight + QuizScore * Quiz Weight + AssignmentScore * C) Output Format Requirements: Display the results in nice format, all labels and values lined up and all real numbers should only show 2 digits after the decimal point. Print student Name Print 3 test scores with descriptive labels Print test average of the tests with a descriptive label Print quiz score with a descriptive label Print programming score with a descriptive label Print (final) average with a descriptive label your output Must have the same wording as below: LAB ACTIVITY Please enter your full name, including middle initials if have one: Please enter three (3) positive whole numbers (0-100) as test scores: Please enter one (1) whole positive number between 0 & 100 for a quiz score: 100 Please enter one real positive score (decimal 0-100) as a programming assignment score: 96.5 372672 2489694.qx3zqy7 Welcome to Your Average Grade Calculator Hello Nancy Brown, here is your report: 6 7 Test Scores: Test Average: Quiz Score: Programming Score: Average: 1 import java.util.Scanner; 2 3.22.1: Programming Assignment 1 3 public class GradeCalculator { 4 100, 80, 78 86.00 100 96.50 90.55 GradeCalculator.java public static void main(String[] args) { Scanner scnr= new Scanner(System.in); /* Type your code here. */ Nancy Brown 100 80 78. 0/50 Load default template... You are tasked to write a program to calculate the average for a given student based on the following information, each student has 3 test scores (60% of the grade), one quiz (10% of the grade) and a score for programming assignments (30% of the grade). Prompt user for their name and scores, then calculate the average and print the results nicely formatted. Name your program GradeCalculator.java. The following algorithm is given to help you develop the Java program. Make sure to follow the steps exactly as required to get the correct answers. A) Input (Use variables when reading data, and Constant (final) for the fixed set values.) Prompt user for Full name including any middle initials Prompt user for 3 test scores (Valid score must be between 0-100) integer type Prompt user for quiz score (Valid score must be between 0-100) integer type Prompt user for programming assignment score (Valid score must be between 0-100.0) 1) (2) 3) 4) real type 5) 6) 7) B) Process 1) 2) Set weight for test to 60% Set weight for programming assignments to 30% Set weight for Quiz to 10% Test Avg Average = Assignment Weight 1) 2) 3) 4) 5) 61 (TestScorel + TestScore2 + TestScore3 ) / 3.0 Test Avg * Test_Weight + QuizScore * Quiz Weight + AssignmentScore * C) Output Format Requirements: Display the results in nice format, all labels and values lined up and all real numbers should only show 2 digits after the decimal point. Print student Name Print 3 test scores with descriptive labels Print test average of the tests with a descriptive label Print quiz score with a descriptive label Print programming score with a descriptive label Print (final) average with a descriptive label your output Must have the same wording as below: LAB ACTIVITY Please enter your full name, including middle initials if have one: Please enter three (3) positive whole numbers (0-100) as test scores: Please enter one (1) whole positive number between 0 & 100 for a quiz score: 100 Please enter one real positive score (decimal 0-100) as a programming assignment score: 96.5 372672 2489694.qx3zqy7 Welcome to Your Average Grade Calculator Hello Nancy Brown, here is your report: 6 7 Test Scores: Test Average: Quiz Score: Programming Score: Average: 1 import java.util.Scanner; 2 3.22.1: Programming Assignment 1 3 public class GradeCalculator { 4 100, 80, 78 86.00 100 96.50 90.55 GradeCalculator.java public static void main(String[] args) { Scanner scnr= new Scanner(System.in); /* Type your code here. */ Nancy Brown 100 80 78. 0/50 Load default template...
Expert Answer:
Answer rating: 100% (QA)
Heres the Java program named GradeCalculatorjava that calculates the average grade for a student bas... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
How do anthropogenic perturbations, such as habitat fragmentation and climate change, disrupt trophic interactions and cascading effects within intricate biodiversity networks ? Explain
-
Write code using struct-defined data types Organize source code in multiple header and implementation files (.h and .cpp files). Create, initialize, read, update, and display the contents of struct...
-
The goal of this lab is to write a program that allows the user to play a version of Quispe, a dice-rolling game. The rules of the game are simple. In our version of the game, there are two players,...
-
Danis Inc is an American firm. The company will receive 626,000 British pounds (GBP) from one of its trading partners in 30 days. The company has obtained an analyst report for possible foreign...
-
The monthly demand function for x units of a product sold by a monopoly is p=5900-1/2 x2 dollars, and its average cost is C=3020+2x dollars. If production is limited to 100 units, find the number of...
-
The accounting staff of Best Company has assembled the following information for the year ended December 31, 2011: Cash sales . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
-
The following schematic diagrams illustrate the operation of a solar-assisted heatpump system and a solar system augmented with a heat pump. Discuss the advantages and disadvantages of each system...
-
Vernon Corporation builds sailboats. On January 1, 2015, the company had the following account balances: $40,000 for both cash and common stock. Boat 25 was started on February 10 and finished on May...
-
A seashore sand mixture contains 85% insoluble sand, 12% salt, and 3% water by weight. 100 kilograms of this mixture is to be washed by batch operations so that it will contain less than 0.2% salt...
-
Southeast Soda Pop, Inc., has a new fruit drink for which it has high hopes. John Mittenthal, the production planner, has assembled the following cost data and demand forecast: Quarter Forecast 1...
-
1. What was at issue in United States v. Virginia ? What did the court hold and why? 2. In Romer v. Evans , which level of scrutiny did the court apply? What did it hold? 3. Which tier of review...
-
If all of the shares sold are from your holdings, how much will the firm raise? What will be your percentage ownership of the firm after the IPO?
-
An adsorbing filter allows gas particles to stick to locations on the filter surface. Once a particle sticks to a location, that location is filled. The filter can no longer remove gas particles when...
-
What is an asset-backed security?
-
What is the distinguishing feature of how municipal bonds are taxed?
-
Six particles in a container can move in only one of six directions: up, down, left, right, forward, and backward. If the particles move randomly such that each collides and changes direction every...
-
Using an Arduino Uno, LCD, temperature sensor and a buzzer, show the circuit and program to do the following tasks: Case 1: If the temperature is between 25 to 30 degree Celsius, the buzzer does not...
-
Suppose that you could invest in the following projects but have only $30,000 to invest. How would you make your decision and which projects would you invest in? Project Cost $ 8,000 11,000 9,000...
-
Consider the subspace W of D, given by W = span (e2X, e2x cos x, e2x sin x). (a) Find the matrix of D with respect to B = {e2x, e2x cos x, e2x sin x}. (b) Compute the derivative of f(x) = 3e2x - e2x...
-
In Exercises 1-3, test the sets of polynomials for linear independence. For those that are linearly dependent, express one of the polynomials as a linear combination of the others. 1. {x, 1 + x} in...
-
In Exercises 29 and 30, verify that S and T are inverses. 1. S: R2 R2 defined by and T: R2 R2 defined by 2. S: P1 P1 defined by S(a + bx) = (- 4a + b) + 2ax and T: P1 P1 defined by T(a + bx) =...
-
Cooling pipes at three nuclear power plants are investigated for deposits that would inhibit the flow of water. From 30 randomly selected spots at each plant, 13 from the first plant, 8 from the...
-
With reference to Exercise 10.57, find a large sample 95% confidence interval for the true difference of the probabilities of failure. Data From Exercise 10.57 10.57 Two bonding agents, A and B, are...
-
Two hundred tires of each of four brands are individually placed in a testing apparatus and run until failure. The results are obtained the results shown in the following table: (a) Use the 0.01...
Study smarter with the SolutionInn App