Need the code in Python for this, please!

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Need the code in Python for this, please!

Post by answerhappygod »

Need the code in Python for this, please!
Need The Code In Python For This Please 1
Need The Code In Python For This Please 1 (252.28 KiB) Viewed 36 times
Need The Code In Python For This Please 2
Need The Code In Python For This Please 2 (30.03 KiB) Viewed 36 times
Assignment 10a Car Sales Report CISP 300 - Chapter 10 - File BRAND-WISE SALES REPORT CARS JUNE 2018 Car Report Arc Auto Sales is a new car dealership in town that sells BMW, Toyotas, Hyundais and Chevys. Arc Auto Sales has 3 salespersons on site: Pat, Bob and Avery. You are going to open the sales.dat file (provided with this assignment), read the records from the file and print out a sales report. Each record in the file will be formatted as follows: Example: salesperson, carBrand, carModel, price Bob, Chevy, Silverado, 42000 User Inputs (records in sales.dat file) Processing 1. salesperson 2. carBrand 3. car Model 4. price a. open sales.dat file b. read and store all records in an array c. close sales.dat file d. calculate total number of each car brand sold e. calculate total number of each car model f. calculate total number of cars each salesperson sold g. calculate total cost of cars sold by each salesperson Print title of report Print d-g above, each on its own line Always use meaningful variable names. • Always print descriptive labels on the outputs Outputs Notes/Hints

Bob, BMW, M340i, 153000 Bob, BMW, 530e, 48000 Pat, BMW, M5501, 88000 Bob, BMW, X6, 72000 Avery, BMW, M340i, 65500 Pat, BMW, 530e, 47780 Bob, BMW, M550i, 92000 Bob, BMW, X6, 68000 Avery, BMW, M3401, 65501 Pat, Chevy, Corvette, 74400 Bob, Chevy, Silverado, 47700 Avery, Chevy, Corvette, 73000 Pat, Chevy, Silverado, 46000 Bob, Chevy, Corvette, 69900 Avery, BMW, M340i, 65500 Pat, BMW, 530e, 47780 Bob, BMW, M5501, 92000 Bob, BMW, X6, 68000 Avery, BMW, M340i, 65501 Pat, Chevy, Corvette, 74400 Bob, Chevy, Silverado, 47700 Avery, Chevy, Corvette, 73000 Pat, Chevy, Silverado, 46000 Bob, Chevy, Corvette, 69900 Avery, Chevy, Silverado, 49000 Bob, Chevy, Corvette, 70001 Avery, Chevy, Silverado, 42130 Avery, Hyundai, Tucson, 33295 Pat, Hyundai, Palisade, 43321 Bob, Hyundai, Veloster, 29012 Avery, Hyundai, Tucson, 29999 Pat, Hyundai, Palisade, 39521 Bob, Hyundai, Veloster, 36573 Pat, Hyundai, Tucson, 31111 Pat, Hyundai, Palisade, 34342 Bob, Hyundai, Veloster, 34847 Bob, Toyota, Corolla, 26987 Avery, Toyota, Camry, 31285 Pat, Toyota, Rav4,36952 Bob, Toyota, 4Runner, 39844 Avery, Toyota, Tundra, 46554 Pat, Toyota, Corolla, 29357 Bob, Toyota, Camry, 34963 Avery, Toyota, Rav4, 29999 Pat, Toyota, 4Runner, 34195 Bob, Toyota, Tundra, 42777 Avery, Toyota, Corolla, 31000 Pat, Hyundai, Palisade, 43321 Bob, Hyundai, Veloster, 29012 Avery, Hyundai, Tucson, 29999 Pat, Hyundai, Palisade, 39521 Bob, Hyundai, Veloster, 36573
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply