Requirements: Plan each program by writing pseudocode. Add more comments as needed in each program to explain what your code is doing. Choose descriptive variable names in all programs. Currency format. Use f-strings to generate currency outputs. Question: Write a program that contains main and another custom function that generates a specified number of random integers in a specified range. The main function should prompt the user to enter three values for the desired number of random integers, the minimum value for the integers, and the maximum value for the integers. These three inputs should be passed as arguments to the custom function in main. The custom function should print the specified number of random integers in the specified range, all on one line separated by spaces as shown in the Sample Output below. The custom function should also determine and return the total of the random integers to main where it should be printed. Sample output: (See attached photo)
Python Question
Requirements:
- Plan each program by writing pseudocode.
- Add more comments as needed in each program to explain what your code is doing.
- Choose descriptive variable names in all programs.
- Currency format. Use f-strings to generate currency outputs.
Question:
Write a program that contains main and another custom function that generates a specified number of random integers in a specified range. The main function should prompt the user to enter three values for the desired number of random integers, the minimum value for the integers, and the maximum value for the integers. These three inputs should be passed as arguments to the custom function in main. The custom function should print the specified number of random integers in the specified range, all on one line separated by spaces as shown in the Sample Output below. The custom function should also determine and return the total of the random integers to main where it should be printed.
Sample output: (See attached photo)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images