Answered step by step
Verified Expert Solution
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 Q
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 GRDWGT GRDWGT
GRDWGT with the following weights.Page of
ESB Programming Fundamentals for Engineers Lab Exercise
o stweight: o ndweight: o rdweight:
It will prompt the user for assignment marks any real number, each out of 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 decimal places, as shown in the sample output. Here is the mathematical expression you need to use:
finalGrade grade GRDWGT grade GRDWGT grade GRDWGT
where the sign represents the multiplication operator.
Note that the grades can be any real number between and We will trust that the user
of this code will input the correct values. No datavalidation 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: Input the second grade: Input the third grade:
The course grade is:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started