Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The average is the total score divide by the number of entries. As a team, develop and submit a Mark Calculation Program (CourseMark.py) Your program
The average is the total score divide by the number of entries.
As a team, develop and submit a Mark Calculation Program (CourseMark.py) Your program will calculate and display the CSCI 120C final course mark in % and as letter grade for one student. The student's name, the participation score, the scores for the two quizzes and the project, the midterm and the final exam scores are entered by the user. The program needs to validate the input, only scores between 0 and 100 are accepted. The program works as follows: Enter your name: Zhenzhu Enter your participation mark: 100.6 mark not valid, try again Enter your participation mark: 100 Enter your quiz 1 mark: 78.3 Enter your quiz 2 mark: 67.1 Enter your quiz 3 mark: 65.1 Enter your midterm exam mark: 75.1 Enter your final exam mark: 65.2 The CSCI 100 final mark for Zhenzhu is 75.0% (B) 1. In this assignment use a main() function. As your starting point, use the top level design of the main() function in the file CourseMark.py. (Please download). Refine the steps, given as comments (no coding yet!) 2. Which functions are needed in each step? Define their headers, i.e. their names and parameter lists. For value-returning functions: Which value do they return? Are there any functions you want to use several times (those need a parameter to make them more flexible to use)? 3. Which variables are needed to store data in your program? (Remember: Data entered into the program (with input) must be stored in a variable.) 4. In your team, define and test all the functions needed. You may split up the work, and you may use functions from previous labs. 5. In the body of the main() function, after each comment, call the functions with the correct arguments at their appropriate positions. def main(): # input: get name and all (valid!) scores # processing: calculate the final mark and the letter grade # output: display the course result # call the main function main()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started