Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using java netbeans please help me with this program and kindly screenshot the program and its output thankyou! Conditional Statement Outcomes: . At the end
Using java netbeans please help me with this program and kindly screenshot the program and its output thankyou!
Conditional Statement Outcomes: . At the end of this activity the students will be able: Create a program solution of the given problem applying Java conditional statements Differentiate If, if-else and if-else if-else statements Use comparison and logical operators to handle conditional statements in java program Instruction: Read and analyze each problem. Provide a JAVA program to satisfy the required machine functionality. Import all java utilities using the syntax: Import java.util.*; Machine Problem: Create a java program that would compute and display the total mobile services fee incurred by a customer. Mobile services include text messages, calls in minutes and mobile data usage in megabytes. Each customer was given a customer ID that would indicate the type of mobile plan he/she availed. PLAN A Customer ID ending with O. Loyal member has 5 digits and above ID number. PLAN B Customer ID ending with 5. Loyal member has 5 digits and above ID number. PLANC - Customer ID ending with 2. Loyal member has 5 digits and above ID number. - monthly fixed rate of P500.00 monthly fixed rate of P750.00 - monthly fixed rate of P1,200.00 - allows free text messaging up to 250 messages. Beyond that, each message is charged 90 centavos. allows free text allows free text messaging of up to 500 messaging of up to messages. Beyond 1,000 messages. that, each message is Beyond that, each charged 70 centavos. message is charged 50 centavos. All-net calls up to 120 mins. Exceeding -All-net calls up to 240 minutes applies mins. Exceeding P5/min. minutes applies P5/min. All-net calls up to 60 mins. Exceeding minutes applies P5/min. P5/MB. Free use of mobile data up to 80MB. - P5/MB. Free use of mobile data up to 100MB. -P5/MB. Free use of mobile data up to 500MB. - 20% discount from the total charge for Loyal member. - 40% discount from the total charge - 60% discount from the total charge. Input: The first line of the input file will contain a single integer N that represents the Customer ID number. Next line consists of 3 integer T, C and D, separated by commas (). Tis the total number of text messages; C is the total number of calls in minutes and D is the total data usage in MB. Output: The total mobile fee of the customer applying all charges given in the description and discounts if applicable. In addition, the program must also display an offer to upgrade the plan type for customers who have exceeded their monthly fixed ate by 200%. Ex. Plan 1- total bill of P1,860.00 means the customer exceeded by P1,360.00 or 272% from his/her monthly fixed rate of P500 (P1,860-500=1,360). TEST CASE: Customer ID: 39480 300 128 100 Total bill: P 788.00 Customer ID: 5645 800 677 345 Total bill: P 4970.00 Please consider upgrading your planStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started