Question: Shown below is a partially constructed program. The program asks the user his / her name and stores the sentence Hello, name as a string

Shown below is a partially constructed program. The program asks the
user his/her name and stores the sentence "Hello, name" as a string
starting from the memory location indicated by the symbol HELLO. The
program then outputs that sentence to the screen. The program assumes
that the user has finished entering his/her name when he/she presses the
Enter key, whose ASCII code is x0A. The name is restricted to be not
more than 25 characters.
Assuming that the user enters Onur followed by a carriage return
when prompted to enter his/her name, the output of the program looks
exactly like:
Please enter your name: Onur
Hello, Onur
Insert instructions at (a)-(d) that will complete the program.
Shown below is a partially constructed program.

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!