Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program ( according to the specifications outlined below ) that calculates a weighted grade of a course that has three assignments. Specifications: Create

Write a program (according to the specifications outlined below) that calculates a weighted grade of a course that has three assignments.
Specifications:
Create a package named Q3.
Give your java class an appropriate name.
The program will print your info and a message that describes its mission as shown in the
sample output.
The program will declare three constant grade weights GRD1_WGT, GRD2_WGT,
GRD3_WGT with the following weights. Page 14 of 16
ES1036B - Programming Fundamentals for Engineers Lab Exercise 02
o 1stweight:0.2 o 2ndweight:0.3 o 3rdweight:0.5
It will prompt the user for 3 assignment marks (any real number, each out of 100), A final course grade will be computed based on the user inputs and will be displayed on the standard output using printf() method up to 2 decimal places, as shown in the sample output. Here is the mathematical expression you need to use:
finalGrade = grade1 GRD1_WGT + grade2 GRD2_WGT + grade3 GRD3_WGT
where the * sign represents the multiplication operator.
Note that the grades can be any real number between 0 and 100. We will trust that the user
of this code will input the correct values. No data-validation is required.
Note:
o Remembertodeclarevariablesbeforeattemptingtousetheminaprogram.
o Youarenotexpectedtouseanylooporarrayinthiscode.
o Paycloseattentiontodifferentvariabletypes,andwhenitisappropriatetouse
them. Sample Output:
**************************************************** Full Name:
Student Number:
Date:
Brief description of the task: *****************************************************
Input the first grade: 80 Input the second grade: 70 Input the third grade: 90
The course grade is: 82.00************************************

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases 11th British National Conference On Databases Bncod 11 Keele Uk July 7 9 1993 Proceedings Lncs 696

Authors: Michael F. Worboys ,Anna F. Grundy

1993rd Edition

3540569219, 978-3540569213

More Books

Students also viewed these Databases questions

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago

Question

5. How would you describe your typical day at work?

Answered: 1 week ago

Question

7. What qualities do you see as necessary for your line of work?

Answered: 1 week ago