subject

Ineed .

you are to create a python program to calculate the total number of gold medals won by your country at the (entirely fictitious) 2017 olympic games in antarctica. the requirements for the program are as follows:
 ask the user to input the name of the country you’re counting the medals for.
 you will need to use a loop structure to input the gold medals your country has won in a number of sports. you can do this in one of two ways, and you can decide which to use. either:
o use a while loop that asks the user if they wish to add another sport every time it runs, or
o ask the user how many sports they wish to submit medals for, assign the input to a variable and then use a for loop to repeat the correct number of times.
 ask the user to enter the name of a sport. then ask them how many gold medals the country has won in that sport.
 if using a for loop, this should just carry on to the next sport. a while loop will ask if there are more sports to add (you should add at least three). if the answer is y, continue.
 when the for loop ends (or the user replies n if using a while loop), the program should calculate the total number of gold medals won.
 the program should print out a message including the name of the country and the number of gold medals.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, lindseyreneesmith7
Digital information is stored using a series of ones and zeros. computers are digital machines because they can only read information as on or off –1 or 0. this method of computation is known as the system
Answers: 1
image
Computers and Technology, 23.06.2019 05:20, reeeeeee32
What did creator markus “notch" persson initially call his game
Answers: 1
image
Computers and Technology, 23.06.2019 11:00, danielcano12281621
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
image
Computers and Technology, 24.06.2019 07:40, daebreonnakelly
What type of multimedia are live news feeds? live news feeds are examples of multimedia.
Answers: 2
You know the right answer?
Ineed .

you are to create a python program to calculate the total number of gold medals...

Questions in other subjects:

Konu
Mathematics, 26.07.2021 17:40
Konu
World Languages, 26.07.2021 17:40
Konu
English, 26.07.2021 17:40
Konu
Mathematics, 26.07.2021 17:40
Konu
Mathematics, 26.07.2021 17:40