From essays to dissertations, we have experts for all of your assignments!

dot
  • 1.provide your instructions
  • 2.choose an expert in your field
  • 3.track the order progress

paython Program I

Program I
Due Monday, 29 June 2020, 11:59 PM
Time remaining: 3 days 9 hours
Please choose one of the two programs below.

The program should do the following:

1. football.py: Ask the user to enter two team names. Then, ask the user to enter in the number of touchdowns (6 points), the number of extra points (1 point), and the number of field goals (3 points) (you can ask for safeties if you wish) for each team. Print out the final score of the game. For example, if the user enters Panthers and Warriors with the Panthers having 3 touchdowns, 3 extra points, and 2 field goals, and the Warriors score 2 touchdowns, 1 extra point, and 1 field goal, the program should print:

Panthers 27 – Warriors 16

2. restaurant.py: Ask the user for his/her name. Ask the user for the number of hamburgers ($3.50), cheeseburgers ($4.50), fries ($1.50), and drinks ($1.25) he/she would like. Print out the itemized receipt and the total. For example, if the user’s name is Suzie, and she orders 2 cheeseburgers, 2 fries, and 2 drinks, your program should print the following:

Order Name: Suzie
Hamburgers: 0
Cheeseburgers: 2
Fries: 2
Drinks: 2
Total: $14.50

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes