Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 2 Lncs 8056

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013th Edition

3642401724, 978-3642401725

More Books

Students also viewed these Databases questions

Question

When are people mostand leastlikely to help?

Answered: 1 week ago

Question

Describe the menstrual cycle in a woman.

Answered: 1 week ago

Question

Explain methods of metal extraction with examples.

Answered: 1 week ago