0% found this document useful (0 votes)
112 views

MP3 - Machine Problem 4 - Switch Case (Dagdag)

The document contains instructions for 3 programming problems: 1) A program that takes a password as input and checks if it matches "JRU" or "jru", displaying "Password Accepted" or "Invalid Password" accordingly. 2) A program that takes a user's choice as input based on a given table and performs the corresponding action. 3) A program that takes a student's name, average, and tuition fee as input, calculates any discount based on the student's average, and outputs the total tuition fee after applying the discount.

Uploaded by

John Dagdag
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)
112 views

MP3 - Machine Problem 4 - Switch Case (Dagdag)

The document contains instructions for 3 programming problems: 1) A program that takes a password as input and checks if it matches "JRU" or "jru", displaying "Password Accepted" or "Invalid Password" accordingly. 2) A program that takes a user's choice as input based on a given table and performs the corresponding action. 3) A program that takes a student's name, average, and tuition fee as input, calculates any discount based on the student's average, and outputs the total tuition fee after applying the discount.

Uploaded by

John Dagdag
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/ 3

MP3 - Machine Problem 4 -

Switch Case

JOHN LUIS B. DAGDAG


BSIT-102I
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”)

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

3. Write a JAVA program that will input the following data: Student Name, Average, Tuition
Fee and output Total Tuition Fee.
Formula:  Total Tuition Fee = Tuition Fee – Discount
If average is:       95 – 100            100% discount
90 – 94              25% discount
                                    85 – 89              10% discount
                                   84 -80      no discount

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy