Concept explainers
Write a grading program for an instructor whose course has the following policies:
- Two quizzes, each graded on the basis of 10 points, are given.
- One midterm exam and one final exam, each graded on the basis of 100 points, are given.
- The final exam counts for 50 percent of the grade, the midterm counts for 25 percent, and the two quizzes together count for a total of 25 percent. (Do not forget to normalize the quiz scores. They should be converted to percentages before they are averaged in.)
Any grade of 90 percent or more is an A, any grade between 80 and 89 percent is a B, any grade between 70 and 79 percent is a C, any grade between 60 and 69 percent is a D, and any grade below 60 percent is an F.
The program should read in the student’s scores and display the student’s record, which consists of two quiz scores, two exam scores, the student’s total score for the entire course, and the final letter grade. The total score is a number in the range 0 to 100, which represents the weighted average of the student’s work.
Define and use a class for the student record. The class have instance variable for the quizzes, midterm, final, total score for the course, and final letter grade. The class should have methods to compute the overall numeric grade and the final letter grade. These last two methods will be void methods that set the appropriate instance variables. Remember, one method can call another method. If you prefer, you can define a single method that sets both the overall numeric score and the final letter grade, bet if you do this, use a helping method. Your program should use all the methods described here. Your class should have a reasonable set of accessor and mutator methods, whether or not your program uses them. You may add other methods if you wish.
Want to see the full answer?
Check out a sample textbook solutionChapter 5 Solutions
Java: An Introduction to Problem Solving and Programming (8th Edition)
Additional Engineering Textbook Solutions
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
Electric Circuits. (11th Edition)
Modern Database Management
Web Development and Design Foundations with HTML5 (8th Edition)
Starting Out With Visual Basic (8th Edition)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
- Decription keyarrow_forwardStep 1: Write a function to create a new dataframe(s) for a given weight class. (Inputs should be base dataframe and weight class; Output should be a new dataframe containing only that weight class.) Use examples to justify that your dataframes have been created correctly. In [ ]: # Put your pseudocode and code here # List to help extract information from the base dataframe weight_class_list = frame_names_list ['47', '52', '57', '63', '72', '84', '84+', '59', '66', '74', '83', '93', '105', '120', '120+'] ['class_47kg','class_52kg','class_57kg','class_63kg','class_72kg','class_84kg','class_84pluskg',\ 'class_59kg','class_66kg','class_74kg','class_83kg','class_93kg','class_105kg','class_120kg','cl Step 2: Loop through all the weight classes and store the dataframes for each weight classs in a list (Lists can store all types of variables including Pandas dataframes!) In [ ]: # Put your pseudocode and code herearrow_forwardI need MATLAB CODE for this . Attach MATLAB code Don't reject again and againarrow_forward
- 4arrow_forwardPlease help programming (use flowchart) Modify the Downdog Yoga Studio program so that numeric class requests can be entered continuously until a sentinel value is entered. Then display each class number, name, and a count of the number of requests for each class.arrow_forwardThis assignment is to modify the rock-paper-scissors game f. As before, each of twoplayers enters P, R, or S. The program will announce the winner and the basis for determining thewinner: Paper covers rock, Rock breaks scissors, Scissors cut paper, or Draw, nobody wins.The players must be able to enter either upper-case or lower-case letters.There are two major changes. First, you will need to create an enumeration called choices thathas three values, ROCK, PAPER, and SCISSORS. You should then use the typedef keyword to createa type for this enumeration named Choice. When you read the player's choice in your getThrowfunction, you will need to return a Choice for that player rather than a char as before. This makesit so that the only part of the program that deals with character type variables is the getThrowfunction; the rest of your program should always use variables of the enumerated Choice type. Thismeans that your checkWinner function will take two Choices as parameters…arrow_forward
- Complete and fix this code C program ONLY. Please finish the function printMap and updateMap to make the maze project work.Your code should move the cursor to the starting point located at the first 0 from the topand left border, and then use w, a, s, or d keys to control it to move to E. When E isreached, your code will print a message on the screen “Maze solved!!!”Please notice that part of the code is already provided, and you need to understand the code and finish it by sending screenshotsarrow_forwardThe Issue: You have a function that accepts a variety of parameters. It is impractical to provide them as traditional parameters. So, what are you going to do?arrow_forwardPython programming only (PLEASE INCLUDE INPUT VALIDATION IF NEEDED) a province gathers local charges on the evaluation worth of the property, which is 60% of the property's real worth. For instance, assuming that a section of land of land is esteemed at $10,000, itsevaluation esteem is $6,000. The local charge is then 72¢ for each $100 of the appraisal value.The expense for the section of land evaluated at $6,000 will be $43.20. Write a program that asks for theactual value of a piece of property and displays the assessment value and property tax.arrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr