Professional Documents
Culture Documents
CASE STUDY - Comp223: Sample Output
CASE STUDY - Comp223: Sample Output
1. CURRENCY
Create a program that will convert different currency into peso. The user must first
select currency available, input the amount to be converted and then convert it into peso. If
the user input an invalid choice, for example 5, the user is prompted that he entered an
invalid choice and has to enter a valid choice. This will be repeated until the user entered a
valid choice in the selection. The user is also prompted if he wants to convert again or exit
the program. If the user wants to continue and convert again, the program will clears the
screen and begin to start. If the user doesn’t want to continue, the program will exit and
return control to operating system.
1 US Dollar = 43pesos
1 AU Dollar = 40pesos
1 Dinar = 76pesos
1 Euro = 150pesos
Sample output:
Valid Choice:
Choice: 1
Invalid Choice:
Create a program that will prompt the user to enter a 4-digit passcode. The user
passcode is then compared with the preset passcode. If the passcodes are not the same, the
program will ask the user for another passcode. This will be repeated until the user has
entered the matching passcode. In this case, the compare string instruction (CMPSB) is used
to compare the elements of both passcodes (strings) in order to determine whether they
are the same or different.
Sample outputs:
Passcode correct!
Enter passcode:
Deadline of Submission:
January 28, 2011 until 9pm only, NO EXTENSION!!!
Submitted by:
Lastname, Firstname MI
Year&Section
Submitted to:
Engr. Maria Diorella A. Paguio
Date Submitted