Create a program that dynamically displays a report of sales by quarter for a company with four sales regions (Region 1,

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: 899603
Joined: Mon Aug 02, 2021 8:13 am

Create a program that dynamically displays a report of sales by quarter for a company with four sales regions (Region 1,

Post by answerhappygod »

Create A Program That Dynamically Displays A Report Of Sales By Quarter For A Company With Four Sales Regions Region 1 1
Create A Program That Dynamically Displays A Report Of Sales By Quarter For A Company With Four Sales Regions Region 1 1 (49.7 KiB) Viewed 89 times
Create a program that dynamically displays a report of sales by quarter for a company with four sales regions (Region 1, Region 2, Region 3, and Region 4). Console Sales Report Region 2 Q3 01 Q2 Q4 $1,540.00 $2,010.00 $2,450.00 $1,845.00 $1,130.00 $1,168.00 $1,847.00 $1,491.00 $1,580.00 $2,305.00 $2,710.00 $1,284.00 $1,105.00 $4,102.00 $2,391.00 $1,576.00 Total Sales by region: Region 1: $7,845.00 Region 2: $5,636.00 Region 3: $7,879.00 Region 4: $9,174.00 Total Sales by quarter: Q1: $5,355.00 Q2: $9,585.00 Q3: $9,398.00 Q4: $6,196.00 Total annual sales, all regions: $30,534.00 Specifications • The quarterly sales numbers for each region should be hard coded at the beginning of the program as a list of lists like this: sales = [[1540.0, 2010.0, 2450.0, 1845.0], [1130.0, 1168.0, 1847.0, 1491.0], [1580.0, 2305.0, 2710.0, 1284.0], [1105.0, 4102.0, 2391.0, 1576.01j • Create output that follows the formatting shown in the display above. • Use a formatting that dynamically changes based on the computer's locale setting. • Use for loops to calculate and display the totals by quarter and region, as well as the final total annual sales. # Region 1 # Region 2 #Region 3 Region 4
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply