Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
29 views18 pages

MP3 - Machine Problem 4 - Switch Case: Computer Programming 1

The document provides instructions for 3 programming problems: 1) Write a program to test a password input and display if it is accepted or invalid, with the correct passwords being "JRU" or "jru". 2) Write a program to take a user input based on a provided table and display their choice. 3) Write a program to take inputs of a student's name, average, and tuition fee and output their total tuition fee.

Uploaded by

Aldrin Inocencio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views18 pages

MP3 - Machine Problem 4 - Switch Case: Computer Programming 1

The document provides instructions for 3 programming problems: 1) Write a program to test a password input and display if it is accepted or invalid, with the correct passwords being "JRU" or "jru". 2) Write a program to take a user input based on a provided table and display their choice. 3) Write a program to take inputs of a student's name, average, and tuition fee and output their total tuition fee.

Uploaded by

Aldrin Inocencio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

COMPUTER PROGRAMMING 1

MP3 - Machine Problem 4 - Switch Case

1. Write a program that will input a password and test if the password is correct
and display the message “Password Accepted” otherwise, display “Invalid
Password”. (Note: Password is “JRU” or “jru”)
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1

2. Write a program that will input a user’s choice based on the table below.
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1

3. Write a JAVA program that will input the following data: Student
Name, Average, Tuition Fee and output Total Tuition Fee.
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1
COMPUTER PROGRAMMING 1

You might also like