Write a Python program that reads from the command prompt the name, the university id number, and the marks of a student

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a Python program that reads from the command prompt the name, the university id number, and the marks of a student

Post by answerhappygod »

Write A Python Program That Reads From The Command Prompt The Name The University Id Number And The Marks Of A Student 1
Write A Python Program That Reads From The Command Prompt The Name The University Id Number And The Marks Of A Student 1 (125.49 KiB) Viewed 57 times
Write a Python program that reads from the command prompt the name, the university id number, and the marks of a student and then calculates his/her final mark. The marks consist of the assignments and quizzes mark L, the tests mark M, and the final examination mark F. The quizzes and assignments mark is the average of the marks obtained on three assignments and three quizzes. The overall final mark should be computed according to the following formula: Overall Final Mark = (1 - f)E + FL Where F = final examination mark (out of 100) M = tests mark (out of 100) E = 0.7F + 0.3M L = quizzes and assignments mark (out of 100) f = 0.005 150 - El +0.005E - 0.25 The user will be prompt to input the following marks: 1. Three assignments each out of 20. 2. Three quizzes each out of 10. 3. Three tests each out of 30. 4. The final examination out of 70. The marks M and L will be computed as follows: M = Average of the best two test marks out of 100. L = Average mark of the three assignments and quizzes out of 100. The final examination mark will be computed out of 100. The best two test marks will be computed as follows: M1 = max (Test1, max (Test2, Test3)) M2 = (Test1 + Test2 + Test3) - min (Test1, min (Test2, Test3)) – M1 You need to import the math library in your project import math and use the max and min functions defined there. The output must be written to the command prompt showing the name, the identification number, the marks, and the final grade of the student. Student Name: Student Number: Quizzes: Assignments: Tests: Final Mark: Final Grade: Linda 2054893 9, 8, 9.5 18, 17.5, 17 29, 22.5, 24 62 88.2
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply