1. Write a program that prompts the user to enter the amount of consumed water in gallons...
Fantastic news! We've Found the answer you've been seeking!
Question:
1. Write a program that prompts the user to enter the amount of consumed water in gallons and electricity in watts. The program calculates the bill assuming that the water and electricity rates are as in the following table:
Input/Output Sample:
Enter the consumed water : 1025
Enter the consumed electricity : 3110
The bill for 1025 gallons of water and 3110 watts pf electricity is 3116 dirhams.
2. Write a program that prompts the user to enter three words. The program sorts and prints the words in ascending order.
Enter three words: Banana Apple Cherry
Apple Banana Cherry
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: