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 hisher 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 hisher name when heshe presses the
Enter key, whose ASCII code is xA The name is restricted to be not
more than characters.
Assuming that the user enters Onur followed by a carriage return
when prompted to enter hisher name, the output of the program looks
exactly like:
Please enter your name: Onur
Hello, Onur
Insert instructions at ad that will complete the program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
