Question: I want to create the following program in python and c ++ also both programs have to have a function and a main create a

I want to create the following program in python and c ++ also both programs have to have a function and a main

  • create a program that will accept marks (0 to 100) repeatedly from the user

    • you are not sure how many marks the user will enter

  • place the values in list

  • when the user enters "-1", it sends the list to a function that calculates average and returns it as an integer (rounded off)

example:

I want to create the following program in python and c ++

lease enter 1 mark at a time. Enter -1 to end. What is your mark? (as 8): 40 What is your mark? (as $): 30 What is your mark? (as $): 10 What is your mark? (as %): 90 What is your mark? (as $): -1 The average is 42%

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!