Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON PROGRAMING #1. For this program you will be looking at future tuition at your university. In 2017, the tuition for a full time student

PYTHON PROGRAMING

#1.

For this program you will be looking at future tuition at your university.

In 2017, the tuition for a full time student is $6,450 per semester. The tuition will be going up for the next 7 years at a rate of 3.5% per year. Write your program using a loop that displays the projected semester tuition for the next 7 years. You should display the actual year (2018, 2019, through 2024) and the tuition amount per semester for that year.

#2.

Write a program that asks the user to enter a student's name and 8 numeric tests scores (out of 100 for each test). The name will be a local variable. The program should display a letter grade for each score, and the average test score, along with the student's name. There are 12 students in the class.

Write the following functions in the program:

calc_average - this function should accept 8 test scores as arguments and return the average of the scores per student

determine_grade - this function should accept a test score average as an argument and return a letter grade for the score based on the following grading scale:

90-100 A

80-89 B

70-79 C

60-69 D

Below 60 F

Data for the program:

Lucy Miller 45 69 70 66 87 82 75 73

Frank Jones 90 93 87 84 91 93 90 88

Nancy Franklin 99 97 92 90 88 89 87 90

Judy Forsyth 72 86 59 69 72 78 80 82

Tony Spirit 87 83 86 90 79 76 80 88

Ruth Ames 66 69 72 61 69 73 71 70

John Smith 100 98 89 93 82 86 91 93

Andrew Barnes 78 77 75 83 80 87 80 78

Becky Stone 98 94 90 89 84 83 79 93

Marvin Decker 59 54 61 45 39 66 70 72

Steve Parker 71 78 73 62 66 72 64 70

Frank Harper 89 86 90 92 91 85 88 93

#3

The Marietta Country Club has asked you to write a program to gather, then display the results of the golf tournament played at the end of March. The Club president Mr. Martin has asked you to write two programs.

The first program will input each player's first name, last name, handicap and golf score and then save these records in a file named golf.txt (each record will have a field for the first name, last name, handicap and golf score).

The second program will read the records from the golf.txt file and display them with appropriate headings above the data being displayed.

If the score is = Par, then display 'Made Par'

If the score is < Par, then display 'Under Par'

If the score is > Par, then display 'Over Par'

There are 16 players in the tournament. Par for the course is 80. The data is as follows:

Andrew Marks 11.2 72

Betty Franks 12.8 89

Connie William 14.6 92

Donny Ventura 9.9 78

Ernie Turner 10.1 81

Fred Smythe 8.1 75

Greg Tucker 7.2 72

Henry Zebulon 8.3 83

Ian Fleming 4.2 72

Jan Holden 7.7 84

Kit Possum 7.9 79

Landy Bern 10.3 93

Mona Docker 11.3 98

Kevin Niles 7.1 80

Pam Stiles 10.9 87

Russ Hunt 5.6 73

#4

Write a program that allows the user to enter the total rainfall for each of 12 months into a list. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest rainfall amounts.

Data:

January 7.9 inches

February 10.1 inches

March 3.4 inches

April 6.7 inches

May 8.9 inches

June 9.4 inches

July 5.9 inches

August 4.1 inches

September 3.7 inches

October 5.1 inches

November 7.2 inches

December 8.3 inches

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: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

Why should accountants have a sound understanding of business?

Answered: 1 week ago

Question

1. Discuss the main incentives for individual employees.pg 87

Answered: 1 week ago