Question: Hi, i want to create a python and c++ program that does the following: create a program that has a function that will accept an

Hi, i want to create a python and c++ program that does the following:

  • create a program that has a function that will accept an array

    • once again you can just randomly generate 10 numbers

    • the function MUST use a loop

      • it will find the largest value in the array and pass it back as a single variable

  • you MUST use a loop, you can not use a built in "max" function!

example :

Hi, i want to create a python and c++ program that does

Here is a list of random numbers: The random number 1 is: 30 The random number 2 is: 71 The random number 3 is: 63 The random number 4 is: 60 The random number 5 is: 10 The random number 6 is: 25 The random number 7 is: 76 The random number 8 is: 42 The random number 9 is: 63 The random number 10 is: 54 The largest number is 76 Done

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!