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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:20
[a] create a class called “cycle” which has two instance integer variables as properties, “numberofwheels” and “weight.” create a constructor with two parameters, using the same variable names in the parameter list. assign each variable to numberofwheels” and “weight” respectively. write a separate application to test the class and display its properties. note: do not change the names of the instance variables or the variables listed in the constructor’s parameter list. [b] edit your class cycle by adding a default constructor which will assign the default values of 100 to represent the numberofwheels, and 1000 to represent the weight, by invoking a call to the other constructor. modify your application created in [a] to test the class.
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
Need asap assignment directions: think of an organization (business, religious institution, volunteer organization, sports team) with which you have been involved. imagine outfitting it with an it infrastructure. prepare a plan for what you would do to support outfitting it. draw a map of a network connecting all the individuals, give them pcs and printers, and lay out the design as best you can. the purpose is to begin working with these concepts, not to build a perfect network.
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Three out of five seniors remain undecided about a college major at the end of their senior year.
Answers: 3
question
Computers and Technology, 23.06.2019 08:00
Match the items with their respective descriptions.
Answers: 1
You know the right answer?
Ineed .

you are to create a python program to calculate the total number of gold medals...
Questions
question
Mathematics, 04.06.2021 19:30
question
Mathematics, 04.06.2021 19:30
question
Mathematics, 04.06.2021 19:30