Question: 1. Prepare a program that can read the price (RM) of two books. A user must be able to insert the price. Calculate and

1. Prepare a program that can read the price (RM) of two

1. Prepare a program that can read the price (RM) of two books. A user must be able to insert the price. Calculate and print the total price (RM) of the two books. Based on the given problem, the student need to: i. Write the Java program. ii. Display the output. Sample input and output: Sample 1: Input price of book 1 RM 100 Input price of book 2 RM 200 Total price is RM 300.0 Sample 2: Input price of book 1 RM: 50.50 Input price of book 2 RM 90.99 Total price is RM 141.49 [100% marks] Activate

Step by Step Solution

3.31 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a Java program that reads the prices of two books from the user and calculates the ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!