Please write a program that calculates the final score of multiple students using different weight of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Please write a program that calculates the final score of multiple students using different weight of exams and assign their final grade using the following criteria: If the average grade is 90 or above; grade 'A', If the average grade is between 80 and 89; grade 'B', If the average grade is between 70 and 79; grade 'C', If the average grade is between 60 and 69, grade 'D', If the average grade is below 59, grade 'F'. Students have taken 2 midterm exams and 1 final exam, where midterm exams has 30% of weight on the final grade and final exam has 40% of weight. a) Write the program to display the final grade for the student. b) Program should also create a text file to write the student's midterm and final exam scores, as well as the final grade. The text file should include the student's name and each exam's name and scores. You must copy your code to the answer box below, upload your Python code as .py file AND the text file as .txt file to this answer! Example: Student: Tolga ERCAN Midterm 1: 60.0 Midterm 2: 70.0 Final Exam: 80.0 Final Grade: C Please write a program that calculates the final score of multiple students using different weight of exams and assign their final grade using the following criteria: If the average grade is 90 or above; grade 'A', If the average grade is between 80 and 89; grade 'B', If the average grade is between 70 and 79; grade 'C', If the average grade is between 60 and 69, grade 'D', If the average grade is below 59, grade 'F'. Students have taken 2 midterm exams and 1 final exam, where midterm exams has 30% of weight on the final grade and final exam has 40% of weight. a) Write the program to display the final grade for the student. b) Program should also create a text file to write the student's midterm and final exam scores, as well as the final grade. The text file should include the student's name and each exam's name and scores. You must copy your code to the answer box below, upload your Python code as .py file AND the text file as .txt file to this answer! Example: Student: Tolga ERCAN Midterm 1: 60.0 Midterm 2: 70.0 Final Exam: 80.0 Final Grade: C
Expert Answer:
Answer rating: 100% (QA)
Heres an example program in Python that calculates the final score ... View the full answer
Related Book For
An Introduction to the Mathematics of Financial Derivatives
ISBN: 978-0123846822
3rd edition
Authors: Ali Hirsa, Salih N. Neftci
Posted Date:
Students also viewed these programming questions
-
An algorithm has been written in pseudocode to input some numbers. It only outputs any numbers that are greater than or equal to 100. The number 999 is not output and stops the algorithm. INPUT...
-
a program that calculates the final course grade by reading student grades from a text file. Design a class MyGrade with the following instance variables holds the sum of all homework grades...
-
Climate-change concerns are resulting in investment in fuels that dont produce greenhouse gases. Although solar and wind power garner a lot of attention, nuclear power from uranium is also a...
-
Desert sand is very hot in the day and very cool at night. What does this indicate about its specific heat capacity?
-
Creating economically competitive sports leagues stands a better than average chance of eliminating the ills in professional sports. Here we are talking about parity in professional sports. Is it...
-
To test the null hypothesis that the difference between two population proportions equals some constant \(\delta_{0}\), not necessarily 0 , we can use the statistic which, for large samples, is a...
-
The American supply and demand curves for potatoes cross at $5 a pound, but potatoes are available in any quantity from abroad at $2 a pound. Each week, American sellers produce 500 pounds of...
-
2. Density of Si and GaAs. (a) Calculate the volume density of atoms, namely the number of atoms/cm3 ) for Si and GaAs crystals, knowing the crystal structure for Si is diamond and for GaAs is...
-
Using the intermediate value theorem, determine, if possible, whether the function f has at least one real zero between a and b. f(x) = 5x - 2x - 4; a = -5, b=-1 Select the correct choice below and,...
-
You are designing a diffraction grating that will disperse white light into its spectrum \((400-\mathrm{nm}\) violet to \(700-\mathrm{nm}\) red). In the first-order spectrum, you want the angular...
-
How fast must a proton move in order to have the same de Broglie wavelength as the electron in Example 34. 4, \(1.5 \times 10^{-10} \mathrm{~m}\) ? Data from Figure P34.13ddd
-
For an eye in which the pupil has a radius of \(3.0 \mathrm{~mm}\), what is the smallest angular separation that can be resolved (a) when two violet \((\lambda=400 \mathrm{~nm})\) objects are placed...
-
A negative charge is located inside the swim ring. Is there any location on the surface of the swim ring where the electric field line flux is positive?
-
The red brake lights of a car are \(2.00 \mathrm{~m}\) apart. Standing \(300 \mathrm{~m}\) away from the rear of the car, you use a \(f=50 \mathrm{~mm}\) lens with an aperture of diameter \(d=4.00...
-
Define the key aspects of Western Civilization and discuss the different ways historians might understand the term. How west is the West, for example? What are the most important changes, in your...
-
Discuss whether responsible human resources management should apply different standards for the home company and suppliers, for developed countries and developing countries, and for large companies...
-
Describe briefly the 'stocksheet system' which may be used for a client's stocktaking.
-
List eight environmental quality control elements audit firms should implement to help ensure that high quality audits are performed by the firm.
-
The level of pollution because of vehicular emissions in a city is not regulated. Measurements by the local government of the change in flow of vehicles and the change in the level of air pollution...
Study smarter with the SolutionInn App