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

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 ...

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 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 ...

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 ...

Questions for python programing answer each question with

QUESTIONS FOR PYTHON PROGRAMING (answer each question with at least 5 sentences) 1. Discuss the basic elements of a computer program and how they are put together. (Hint: If you write a paper for class, the elements are ...

Pythondirectory mergerwrite a python script that will

PYTHON Directory Merger Write a python script that will implement the following command: merge sourcedirectory1 sourcedirectory2 destinationdirectory The idea is that the contents of sourcedirectory1 and sourcedirectory2 ...

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 programming assignmentin this assignment you will

Python Programming Assignment In this assignment you will write a program which reads a data file containing information in different formats, validates this data, and prints out a report incorporating this data. The dat ...

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 ...

Objectivesthe objectives of this assignment are- to gain

Objectives The objectives of this assignment are: - To gain experience in designing algorithms for a given problem description and implementing those algo- rithms in Python 3. - To demonstrate the ability to: - Implement ...

  • 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