Question: Question 3 Design a program, using Pseudocode, that requires the user to enter their name as well as the current date. The program should display

Question 3
Design a program, using Pseudocode, that requires the user to enter their name as well as the current date. The program should display these details back to the user.
Next, call a function that prompts the user to enter five unique, non-zero, positive numbers. Each number must be validated by another function before the user can enter the next number. The validation function should perform the following operations:
Receive the number.
Check if it is a positive, non-zero number.
Prompts the user to re-enter the number if it is invalid.
Return the valid number to the calling function.
Once all five numbers are entered successfully, the first function should sort them and choose the second-highest number. This number should be returned to the main program, which will double it and DISPLAY the resulting value.

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 Programming Questions!