Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6 A customer who rents a car will be charged RM60 if he rents for only 24 hours or less. Otherwise, RM5 per hour will

image text in transcribed

6 A customer who rents a car will be charged RM60 if he rents for only 24 hours or less. Otherwise, RM5 per hour will be charged for additional hours. Calculate and display the charge of a car rental. Input Process Output An allowance for a part time lecturer will be paid monthly based on the total lecture hours per month. Payment rate is as follows: First 12 hours - RM 100 per hour Additional hours - RM 50 per hour Calculate the monthly allowance for a part time lecturer. Input Process : Output : Calculate electric bill based on the electricity usage in watt as given below: Usage up to 1000 watt - charge is 20 cents per watt. Additional usage after 1000 watt - charge is 10 cents per watt. Input Process : Output : PART D: SELECTION (MULTIPLE) 1 Determine whether the number keyed in by user is positive, negative or zero. Input Process : Output : Create a program that will ask a user to enter age for two people. Display "The first person is older" when agel is greater than age2, else display "The second person is older". If both are not true. display "Both person are same age". Input Process : Page 49

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

Students also viewed these Databases questions

Question

4. Support and enliven your speech with effective research

Answered: 1 week ago

Question

3. Choose an appropriate topic and develop it

Answered: 1 week ago