Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Python Expert

problem 1) prepare the algorithm, test cases (with expected outputs) and the Python program to compute the GPA for an indeterminate number of students. The program would prompt the user for the following information about each student:

• student number

• number of courses taken

• for each course:

a) name of course

b) number of credit hours

c) letter grade

A student number of zero would end the input.

The output of the program would be the following information:

• For each student:

a) student number

b) number of credits taken

c) number of credits attained

d) GPA (printed with three positions after the decimal point)

e) message if student is at Dean’s list (GPA > 3.5)

• Total number of students

• Total number of students on Dean’s list

The GPA is computed by dividing total quality points (sum of the product of credit hours and numeric grade) by the number of credits taken.

The program should contain following functions:

• main: ensures multiple students

• converting letter grade: convert the letter grade (A, B+, B, C+, C, D, F) to its numeric equivalent (4.0, 3.5, 3.0, 2.5, 2.0, 1.0, 0.0)

• processing information for each student (getting data about courses, validating, computing GPA)

• printing information for each student

The program should check that the number of credits is a positive number and that a valid letter grade is entered. In either case, the program should prompt the user until valid data has been entered.

Python, Programming

  • Category:- Python
  • Reference No.:- M94539

Have any Question? 


Related Questions in Python

This assignment will allow you to do a more open-ended

This assignment will allow you to do a more open-ended exploration of online social networking. The goal is to let you use some of the tools we've learned in class on your own. There are some requirements to constrain yo ...

Python codeyour version of pong will be more complete and

Python Code Your version of pong will be more complete and have the following features at a minimum: 1) The scores for each player should be displayed 2) Option for ball speed - Choose between three different speed level ...

Python program super pongyour version of pong will be more

Python program: super pong Your version of pong will be more complete and have the following features at a minimum: 1) The scores for each player should be displayed 2) Option for ball speed - Choose between three differ ...

Opengl programming in python 35write a program to render an

OpenGL Programming in Python 3.5 Write a program to render an animated humanoid walking robot. Specifications: Robot's body is a parallelogram box. Robot's head is a sphere. Robot's height is 60. Your robot must have two ...

Pythonprofessor merlin has asked you to help him he has 30

Python Professor Merlin has asked you to help him. He has 30 total students in his class, but he is not sure that all of them took his last exam. He wants to average the grades for his last exam in his medieval literatur ...

Programming problemwrite a python script called passmerger

Programming Problem Write a Python script called passmerger that will merge the contents of two simplified user account tables in a database as described below. The script uses one command line argument that represents t ...

Taskyou are to plan and then code a console-based program

Task: You are to plan and then code a console-based program in Python 3, as described in the following information and sample output. This assignment will help you build skills using selection, repetition, file input/out ...

Lab 1 functionslearning objectives for this lab include1

Lab 1: Functions Learning Objectives for this lab include: 1. Understand how functions work. 2. Know how to define and call a function. 3. Learn how to declare local variables. 4. Learn how to pass arguments to functions ...

Python program super pongyour version of pong will be more

Python Program: super pong Your version of pong will be more complete and have the following features at a minimum: 1) The scores for each player should be displayed 2) Option for ball speed - Choose between three differ ...

Write a python program to encode the plain text message and

Write a Python program to encode the plain text message and another Python program to decode the encoded message. Use the following as starter code: # # HW 5 Caesar Cipher: Encoder # Do not modify next 8 lines def encode ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen