Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project 4 objective: The purpose of this lab project is to expose you to Loops, and enforce selection, and to strengthen your skills in writing

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Project 4 objective: The purpose of this lab project is to expose you to Loops, and enforce selection, and to strengthen your skills in writing programs. Problem Specification: semester. The program should accept Write a Python program to calculate a students GPA for the then for course the a student's name. and the number of courses helshe taking. following data is needed The course number a string e g. BU 101 Course credits "an integer The grade received for the course "a one character string." The program should display the student's name. ID#, the total number of credits for the semester. and grade point average for the semester. A warning message should be also printed if the GPA is less than 2.0 and a congratulatory message if the GPA is 3.0 or above. Requirements: Input student's name, IDi, course number, number of credits for the course and grade using proper prompts. Use a loop to repeat for multiple students until NT or 'n' is entered in response to a prompt. Add comments briefly, do not overkill, to clarify what you are doing. Create constants representing the points for each grade. A grade 4 points B grade 3 points C grade 2 points D grade 1 points F grade Calculate using the constants you defined, and whatever data the user enters. Include data validation for all data entered 0-9999 ID Range Number of courses 0-5 Grades are AB,CD, F Have your program print proper titles for the output Output the report as specified above. Comment thoroughly. Hints: Work from the inside out. That is, start the program with one course for one student without loops, when you know it works, then you include the loops The GPA for the semester is calculated as follows: Calculate the points for a course; add them to an accumulator that keeps the total points. course are calculated by multiplying the grade points by the number of credits for for The numbers of credits for a course are accumulated into total credits Find the GPA by dividing the total points by the total credits SAMSUNG

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions