For this assignment, you will write a program to calculate a student's final course grade based on the student's homework, quiz, and scores. The first input to the program will be the name of the course (as a string), followed by the average amount of time the student spen per week in minutes (as an int). Then, the program will then read 4 integers representing the student's homework scores, 2 decimals student's quiz scores, and finally, a decimal representing the student's final exam score. The program should then output the course name and the average time spent for the course in a week in hours and minutes. This s by the average homework grade, the average quiz grade, and the final exam grade (as doubles), and an overall grade (as an int). The overall grade should be computed as a weighted average. The weights are as follows: • Average homework grade - 35% Average quiz grade -15% • • Final exam grade -50% The overall grade should be rounded to the nearest integer (NOT just truncated to the integer below). When you write the code to produce your program's final output, take extra care to ensure all the labels used are exactly as shown including the colon after each label. The program which grades your solution will look for the values after these labels, so if they do your solution may not be graded correctly. Sample Run: Please enter the course name. AP Computer Science A Please enter the average time spent in a week for this course in minutes. 135 Please enter the homework grades for this course. 75 99 80 100 Please enter the quiz grades for this course. 89.2 Sample Run: Please enter the course name. AP Computer Science A Please enter the average time spent in a week for this course in minutes. 135 Please enter the homework grades for this course. 75 99 80 100 Please enter the quiz grades for this course. 89.2 98.1 Please enter the final exam grade for this course. 87.58 Course name: AP Computer Science A Weekly time spent: 2h15 Average homework grade: 88.5 Average quiz grade: 93.65 Final exan grade: 87.58 Overall grade: 89

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
I need help with this code!!
2:52 1
For this assignment, you will write a program to calculate a student's final course grade based on the student's homework, quiz, and
scores.
The first input to the program will be the name of the course (as a string), followed by the average amount of time the student spen
per week in minutes (as an int). Then, the program will then read 4 integers representing the student's homework scores, 2 decimals
student's quiz scores, and finally, a decimal representing the student's final exam score.
The program should then output the course name and the average time spent for the course in a week in hours and minutes. This si
by the average homework grade, the average quiz grade, and the final exam grade (as doubles), and an overall grade (as an int).
The overall grade should be computed as a weighted average. The weights are as follows:
• Average homework grade -35%
• Average quiz grade -15%
• Final exam grade -50%
The overall grade should be rounded to the nearest integer (NOT just truncated to the integer below).
When you write the code to produce your program's final output, take extra care to ensure all the labels used are exactly as shown
including the colon after each label. The program which grades your solution will look for the values after these labels, so if they don
your solution may not be graded correctly.
Sample Run:
Please enter the course name.
AP Computer Science A
Please enter the average time spent in a week for this course in minutes.
135
Please enter the homework grades for this course.
75
99
80
100
Please enter the quiz grades for this course.
89.2
Sample Run:
Please enter the course name.
AP Computer Science A
Please enter the average time spent in a week for this course in minutes.
135
Please enter the homework grades for this course.
53
75
99
80
100
Please enter the quiz grades for this course.
89.2
98.1
Please enter the final exam grade for this course.
87.58
Course name: AP Computer Science A
Weekly time spent: 2h15
Average homework grade: 88.5
Average quiz grade: 93.65
Final exam grade: 87.58
Overall grade: 89
Milestones
As you work on this assignment, you can use the milestones below to inform your development process:
Milestone 1: Create code that prompts the user for input, taking a String for the course name and an int for the weekly time spent
Write code that displays this course name and the number of hours and minutes from the total number of minutes.
Milestone 2: Write code for four int inputs (homework), followed by a pair of doubles (quizzes) and a single double (final exam). All
stored in appropriate variables.
Milestone 3: Calculate and display (as doubles) the average of the homework grades, the average of the two quiz grades and the si
grade. Hint: store the averages calculated as variables so you don't need to calculate them again later.
ſatuchake and dentace them contat
The problem has been solvec
You'll get a detailed solution from a subject r
expert that helps you learn core concep
See Answer
chegg.com
Transcribed Image Text:2:52 1 For this assignment, you will write a program to calculate a student's final course grade based on the student's homework, quiz, and scores. The first input to the program will be the name of the course (as a string), followed by the average amount of time the student spen per week in minutes (as an int). Then, the program will then read 4 integers representing the student's homework scores, 2 decimals student's quiz scores, and finally, a decimal representing the student's final exam score. The program should then output the course name and the average time spent for the course in a week in hours and minutes. This si by the average homework grade, the average quiz grade, and the final exam grade (as doubles), and an overall grade (as an int). The overall grade should be computed as a weighted average. The weights are as follows: • Average homework grade -35% • Average quiz grade -15% • Final exam grade -50% The overall grade should be rounded to the nearest integer (NOT just truncated to the integer below). When you write the code to produce your program's final output, take extra care to ensure all the labels used are exactly as shown including the colon after each label. The program which grades your solution will look for the values after these labels, so if they don your solution may not be graded correctly. Sample Run: Please enter the course name. AP Computer Science A Please enter the average time spent in a week for this course in minutes. 135 Please enter the homework grades for this course. 75 99 80 100 Please enter the quiz grades for this course. 89.2 Sample Run: Please enter the course name. AP Computer Science A Please enter the average time spent in a week for this course in minutes. 135 Please enter the homework grades for this course. 53 75 99 80 100 Please enter the quiz grades for this course. 89.2 98.1 Please enter the final exam grade for this course. 87.58 Course name: AP Computer Science A Weekly time spent: 2h15 Average homework grade: 88.5 Average quiz grade: 93.65 Final exam grade: 87.58 Overall grade: 89 Milestones As you work on this assignment, you can use the milestones below to inform your development process: Milestone 1: Create code that prompts the user for input, taking a String for the course name and an int for the weekly time spent Write code that displays this course name and the number of hours and minutes from the total number of minutes. Milestone 2: Write code for four int inputs (homework), followed by a pair of doubles (quizzes) and a single double (final exam). All stored in appropriate variables. Milestone 3: Calculate and display (as doubles) the average of the homework grades, the average of the two quiz grades and the si grade. Hint: store the averages calculated as variables so you don't need to calculate them again later. ſatuchake and dentace them contat The problem has been solvec You'll get a detailed solution from a subject r expert that helps you learn core concep See Answer chegg.com
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Program on Numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education