Question: java Write a program that uses a Scanner object to read in a positive integer (N. Then using a loop your choice on type) read

java
java Write a program that uses a Scanner object to read in

Write a program that uses a Scanner object to read in a positive integer (N. Then using a loop your choice on type) read in N invoice totals (doubles from Dalhousie's Bookstore After reading in all the invoices, print the total of all the invoices and the average of all the invoices (don't worry about controlling for decimal places Examples Sample Input (on one line) 3 9.15 12.40 22.50 Sample Output $44.05 $14.683333333333332 5 14.30 7.05 19.35 25.80 56.90 S123.4 $24.68 Problem5.java Grading 2 Full Screen New Test Case 1 NOT RUN NO Test Case 2 NOT RUN

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!