Please solve this question in Python language

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: 899604
Joined: Mon Aug 02, 2021 8:13 am

Please solve this question in Python language

Post by answerhappygod »

Please solve this question in Python
language
Please Solve This Question In Python Language 1
Please Solve This Question In Python Language 1 (123.72 KiB) Viewed 29 times
CSIS230 Python File 10 Spring 2022 Write a program to read an input file of data containing student Grades in the following format first namel , last namel, homework average testi, first name2, last name2 homework average, testi, test2 test2 first pamer , last namen, homework average, testi test2 the program should then calculate the students final numeric class grade and letter grade and print it to a new output file with the output data sorted into ascending order by first name The program should start by asking the user for the input file name and the output file name. Here is a sample of the program running: Enter Input file name: students 230input.txt Enter Output file name: student230 output.txt Thank you... file read successfully and printed successfully. Input file data will be of the following format: First name, ast name, homework, testi, test2 Example if input file: Al Nadia, Aidan, Ahmad, Al Damba 75, 70, 80 85, 80, 90 Then, the output file should have the same data as the input file with the addition of the following: 1. The final numerical grade calculated and a corresponding letter grade 2. The records are sorted in ascending order by first name Example of output file, based on the example input file above: Note, each student has their final numeric grade calculated and its corresponding letter grade, in addition to the student records are sorted in ascending order: Ahmad, Al Damha 90, [85 B] Al Nadia, Aidan, 75, 7080, [75 C] 85, 80, This is just sample data with 2 records but your program should be able to read any size input file. Notes 1. First name can be composed of more than one word, example Abu Al-first name 2. Last name can be composed of more than one word, example Abu Al Last name 3. Delimiter in input file will be the comma 4. You can assume all input grades are out of 100 5. The course assessment is same as our course: 30% homework, test1 35% and test2 35%
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply