WhatsApp GroupJoin Now
Telegram GroupJoin Now

Module 2 Assignment Programs

The Program 4-1 does the following:
1.clears the screen
2.sets the cursor to the center of the screen, and
3.starting at that point of the screen, displays the message "This is a test of the display routine".

The Program 4-2 Performs the following:
1. clears the screen
2.sets the cursor at the beginning of the third line from the top of the screen.
3. Accepts the message "IBM perSonal COmputer" from the keyboard.
4. Converts lowercase letters of the message to uppercase.
5. Displays the converted results on the next line.

The Program 4-3 prompts the user to type in a name. The name can have a maximum of eight letters.
After the name is typed in, the program gets the length of the name and prints it to the screen

Program 4-4
Write a program to perform the following:
1. clear the screen
2. set the cursor at row 5 and column 1 of the screen
3. prompt "There is a message for you from Mr.Jones. To read it enter Y". If the user enter 'Y' or 'y' then the message "Hi! i must leave town tomorrow, therefore I will not be able to see you" will appear on the screen.If the user enters any other key, then the prompt " No more messages for you" should appear on the next line.


1 Comments

  1. Al’s Trailers is an Oregon RV dealer and major provider of RV parts, Supplies and Accessories. We specialize in New and Used RV Sales, RV Service, RV Parts and Accessories
    https://www.alstrailers.com/

    ReplyDelete

Post a Comment

Previous Post Next Post