Earn Higher Grades With Instant Assignment Help.Ask Question!

Others
(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

Attachments:
(5/5)

Expert's Answer

54 Times Downloaded

Related Questions

CSI 1420 Introduction to C Programming & 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 majorconstructs of the C programming language – Fu

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

54 Times Downloads

Ask This Assignment To Be Done By Our ExpertsGet A+ Grade Solution Guaranteed

expert
joyComputer science
(4/5)
12 Answers Hire Me
expert
Robert DLaw
(4.8/5)
931 Answers Hire Me
expert
Dr Samuel BarberaStatistics
(5/5)
777 Answers Hire Me
expert
Tutor For YouEconomics
(5/5)
789 Answers Hire Me