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

  Explain the uses and advantages of the chips

Explain the uses and advantages of the chips. Mention likely privacy objections and refute them - making a presentation to a large retail chain to convince them to buy the chips to install in their products.

  Productcost and productprice are numeric variables

if productCost and productPrice are numeric variables, and productName isa string variable, which of the following statements are valid assignments

  What does cissp stand for

What does CISSP stand for? Using the internet, find out what continuing education is required for the holder of a CISSP t remain current and in good standing.

  Eliminate unit productions from the following

Eliminate unit productions from the following CFG S->AB A->a B->C/b C->D D->E E->a

  Design a program that prompts the user to enter a number

Design a program that prompts the user to enter a number within the range of 1 to 10. The program should display Roman numeral version of that number. If the number is outside the range of 1 to 10, the program should display an error message.

  Describe three of your favorite features of word

Each feature you describe should be a two to three sentence paragraph. b. The letter should be free of spelling and grammar errors.

  What would be the ieee 754 single precision binary represent

What would be the IEEE 754 single precision binary representation of the floating point value -314159265.3589? Express your final answer as an 8-hexdigit number and explain how your answer was obtained for full credit

  How to add validation to a web application

How to add validation to a web application

  Override the insert method in bst

You should override the insert method in BST. Your overriding method should first call the method it is overriding. When 50 insertions have been performed since the last rebalancing.

  Structured analysis and object-oriented techniques

A frequently asked question is "Can structured techniques and object-oriented techniques be mixed?

  Apply the cartesian product construction

Apply the Cartesian product construction to (i) and (j) to obtain an automata recognizing the union of their languages. i. {w|w every odd position of w is a 1} j. {w| w contains at least two Os and at most one 1}

  What is the difference between text i/o and binary i/o

What is the difference between text I/O and binary I/O?

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