Calculate the weighed score for the homework assignments

Assignment Help Basic Computer Science
Reference no: EM13306896

For this program, you are going to modify your previous program so that it will now read multiple inputs for each homework assignment (you will need to have a flag to end inputting assignments), upto 3 parts for the midterm exam instead of 1 midterm exam score and exactly two parts for the final exam. It will then calculate the letter grade of the class.

The weight of the assignments and exams are still the same, except that the maximum score will now differ.

  • Homework Assignments - Weight is 50
  • Midterm exam - Weight is 20
  • Final exam - Weight is 30

You will write different functions for this program, as follows:

  • One function to read all the input for all the homework assignments, which will then calculate the weighted score for the homework, and return that score.
  • One function to read all the grades for the parts of the midterm exam, after which it will calculate the weighted score of the midterm exam and return that score,
  • Another function to read the 2 parts of the final exam, which will also then calculate the weighted score of the final exam and return that score.
  • One function to take in all the weighted scores for the 3 parts and calculate the letter grade and return the letter grade.
  • One function to print the output.

Your function to read all the assignments should do the following:

Until the user indicates that they have finished inputting data, you should read the score for each homework assignment and the maximum possible score for each assignment. Once the user has finished inputting the data, you then need to calculate the weighed score for the homework assignments.

Eg: assume that these values were input:

21 out of 25 possible points

30 out of 30 possible points

10 out of 12 possible points

55 out of 60 possible points

Then your total would be 116 out of 127 possible points. In which case, your weighted score would be 45.67 (116*50/127).

 

Reference no: EM13306896

Questions Cloud

Disk city annual fixed costs : Disk City, Inc. is a retailer for digital video disks. The projected net income for the current year is $2,320,000 based on a sales volume of 230,000 video disks. Disk City has been selling the disks for $19 each. The variable costs consist o..
Determine the drag coefficient for the sign type : The pressure on the back side is negative; its magnitude is 0.5 times the (negative) stagnation pressure on the back side. Determine the drag coefficient for the sign type
What is the specific volume of superheated steam at psia : What is the specific volume of superheated steam at 42 psia and 340 degrees fahrenheit
Determine the radius of wheels neglecting rolling resistance : If the coefficient of kinetic friction between the 12.5 mm diameter axles and the wheels is mu_k = .3, determine the radius of the wheels. neglect rolling resistance of the wheels on the surface.
Calculate the weighed score for the homework assignments : For this program, you are going to modify your previous program so that it will now read multiple inputs for each homework assignment (you will need to have a flag to end inputting assignments).
Sketch and label vi-vo and vn versus time : An inverting amplifier is implemented with a R1=10 kilo Ohms and R2= 100 Kilo Ohms, and an op amp with finite open-loop gain a=10^3 V/V. Sketch and Label Vi,Vo,and Vn versus time if Vi is a 1-kHz triangular wave
Write a vba function that receives a variable name : Write a VBA function that receives a variable name plus four known values and then solves the ideal gas equation for a specified variable.
Foreign currency transactions and hedging foreign : Foreign Currency Transactions and Hedging Foreign Exchange Risk 433 EXCEL CASE-DETERMINE FOREIGN EXCHANGE GAINS AND LOSSES
What is the water depth 300 m upstream from the outfall : A horizontal rectangular concrete channel terminates in a free outfall. The channel is 4m wide and carries a discharge of water 12 cms. What is the water depth 300 m upstream from the outfall

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the copy constructor for a weighted digraph in c++

What is the copy constructor for a weighted digraph in c++?

  How entry level manager adjust able to grow into upper level

How do you think an entry level manager has to adjust to be able to grow into an upper level manager

  Create cron file which will regularly perform backup

Create a cron file that will regularly perform the following back ups: performs a level 0 backup once per month and performs a level 2 dump one day per week

  Control signals and label

Draw a diagram showing how the 68000 processor connects to a 64 KWord (64KB even + 64 KB odd) RAM IC. Show all relevant address, data, and control signals and label them correctly. Also show the MAD (memory address decoder) in your circuit diagram.

  What value is read into the variables by the following code

What value is read into the variables by the following code?

  What happens if the best effort is not good enough

IP is described as "best effort delivery service". What exactly does this mean?....What happens if the "best effort" isn't good enough?

  In what ways does it planning help managers exercise

In what ways does IT planning help managers exercise control in a situation? Does IT impact the truck driver of a company who delivers supplies to its customer?

  Explaining sites appropriate for mobile devices

What do you think are some of the types of sites that would be appropriate for mobile devices? What types of sites do you think are inappropriate?

  What is the final value of loopcount

What is the final value of loopCount after control exits the following loo? loopCount = 1; NL while ( loopCount

  Which machine has better performance

Which machine has better performance? By how much? Justify your answers. Instruction Class Cycles needed Instruction Frequency

  Write java program convert sorted array into balanced tree

Balanced Search Tree Write a program (in Java) that can convert a sorted array into a balanced binary search tree. For this project, a balanced binary tree is one where the size of the left and right subtrees at each node differs by at most one.

  How many books must be sold for this project to break even

(a) How many books must be sold for this project to break even? (b) Suppose the publishers wish to take a total of $40,000 in salary for this project. How many books must be sold to break even, and what is the break-even point, in dollars?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd