Question: Write the statements for a script / program , that will do the following: main: * Prompts the user for their first name and stores

Write the statements for a script/program, that will do the following:
main:
* Prompts the user for their first name and stores the name entered in a variable called firstN (suppress output).
* Prompts the user for a number and stores thenumber entered in a variable called userIn (suppress output).
* If userIn is greater than 0 and not equal to 13, display 'Very good!'.
* If userIn is not greater than 2 or is equal to 4, display 'Hmm!'.
* If firstN is 'None', display 'Name Ignored!'.
* Use sprintf() to create a string that contains the phrase 'Thank you, ', the value of firstN, and an exclamation point. Store the string in the variable outl.
* Display out1.

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!