136k views
4 votes
You are writing a program that inputs a date in the form of mm/dd/yyyy.

a. Write the output statement to prompt an inexperienced user to enter a date.
b. Write the output statement to prompt an experienced user to enter a date.

User Colder
by
8.5k points

1 Answer

2 votes

Final answer:

Inexperienced users are provided with a descriptive prompt for entering the date, while experienced ones receive a concise version.

Step-by-step explanation:

a. For an inexperienced user, the output statement could be more descriptive to ensure clear instructions:

Please enter the date today in the format: month (mm), day (dd), year (yyyy). For example, you would write May 5, 2023, as 05/05/2023.

b. For an experienced user, the prompt can be concise, assuming they are familiar with standard date formats:

Enter the date (mm/dd/yyyy):

User Abhishek D K
by
7.9k points