logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Brewster’s Used Cars, Inc. employs several salespeople. Brewster, the owner of the company, has provided a file

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Sales Report

Brewster’s Used Cars, Inc. employs several salespeople. Brewster, the owner of the company, has provided a file that contains sales records for each salesperson far the past month. Each record in the file contains the following two fields:

  • The salesperson’s ID number, as an integer
  • The amount of a sale, as a real number

 

The records are already sorted by salesperson ID. Brewster wants you to design a program that prints a sales report. The report should shaw each salesperson’s sales and the total sales for that salesperson. The report should also shaw the total sales for all salespeople for the month. Here is an example of how the sales report should appear:

Brewster's Dsed Cars, loc

 

                            Sale Aoeoot

 

100                                                          $10,000.00

 

100                                                          $12,000.00

 

100                                                          $5,000.00

 

Total sales for this salesperson: $27,000.00

 

101                                                          $1Q,0O0.OO

 

101                                                          $18,000.00

 

101                                                          $12,500.00

 

Total sales for this salesperson: $43,500.OO

 

102                                                           $13,500.00

 

102                                                          $14,500.00

 

102                                                          $20,000.00

 

Total sales for this salesperson: $4fi,000.OO

 

Total of all sales: Sl19,500.00

(5/5)
Attachments:

Expert's Answer

1847 Times Downloaded

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

1847 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

742 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

955 Answers

Hire Me
expert
Husnain SaeedComputer science

572 Answers

Hire Me
expert
Atharva PatilComputer science

946 Answers

Hire Me

Get Free Quote!

326 Experts Online