Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

develop a code INSTRUCTIONS: 1. In the NetBeans, create a project name in your computer based on this format: A221_STLA1113_Lobtest_cyour matric for mberample: A221_5TIA1113_LabTest_12345. 2.

image text in transcribedimage text in transcribed

develop a code

INSTRUCTIONS: 1. In the NetBeans, create a project name in your computer based on this format: A221_STLA1113_Lobtest_cyour matric for mberample: A221_5TIA1113_LabTest_12345. 2. In the project name, create a meaningful class name for the question below. 3. Naming convention must be applied correctly for all the identifiers such as class, variable, . and constant (if any). 4. Indentation also will be assessed in your program 5. Write your name and matric number as a comment on top of your class name. 6. Zip or compress the folder name using winzip or winrar. The compressed file will be A221_STLA1113_LabTest_12345.zip or A221_ST1A1113_LabTest_12345.rar 7. Submit the zip file into UUMOL. 8. You are given only 1 hour and 30 minutes to submit you answer via UUMOL. Late submission will get O mark. QUESTION: 1. Write a program that calculates and prints the bills for a cellular telephone company. The company has it own line that starts with 019xxxxxxxx. The cost of monthly rent is RM10.00. The company offers several rates as follows: a. Call rates - same operator (019 to 019) - RMO.10/ minute - different operator (019 to any operator) - RMO.20/ minute b. SMS rates - same operator (019 to 019) - RM0.05/ minute - different operator (019 to any operator) - RMO.10/ minute- Your program should prompt the user to enter an account number) customer name, (phone number, and the number of minutes or SMS). The service tax is charged at ( 5% of the overall total cost. Your program should display input and output the following information as follows: Enter the Account number: 1234567 Enter the customer Name: Ahmad Kamil Bin Hassan Enter the Phone number: 01912345678 Menu 1CaI1 2-SMS 3-Exit Your choice =1 Enter the minute call =4 Enter the destination of phone =019222222 Menu == 1- Ca1 1 2-SMS 3-Exit Your choice =1 Enter the minute call =10 Enter the call destination of phone =012222222 In order to develop this small system, you must apply the concept of i. Input statements ii. output and formatting statements using printf.(2 decimal point) iii. Arithmetic Calculation of the above formula iv. Selection control structure (if statement) v. Looping structure

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions