Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Calculate water bill based on water consumption as given Deiow. Usage first 20m3 charge is 40 cents per m3 Additional 20m3 charge is 20 cents

image text in transcribed

Calculate water bill based on water consumption as given Deiow. Usage first 20m3 charge is 40 cents per m3 Additional 20m3 charge is 20 cents per m3 Extra usage charge is 10 cents per m3 Input Process Output : Calculate phone bill based on the following term: Usage less than RM50 per month - no discount will be given Usage less than RM100 per month - get 5% discount Usage RM100 above per month - get 20% discount Input Process : Output : Read and determine the smaller and larger between two numbers. Print the smaller number followed by the larger number if they are not equal. Otherwise, print the message "The numbers are equal". Input Process: Output

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 In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

3. Define the attributions we use to explain behavior

Answered: 1 week ago