Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SALES INFORMATION Given weekly (5 working-day) employees' sales information with the following format. The unit entry of this table is RM (Ringgit Malaysia). Salesman 1
SALES INFORMATION Given weekly (5 working-day) employees' sales information with the following format. The unit entry of this table is RM (Ringgit Malaysia). Salesman 1 Salesman 2 Salesman 3 Salesman 4 Salesman 5 Monday (Day 1) 146.16 119.63 87.89 457 14 389.56 Tuesday (Day 2) 87.13 464.84 135.04 113.36 301.10 Wednesday Thursday Day 3) (Day 4) 105.53 63.76 205.62 413.55 271.87 35.67 290.84 274.01 192.06 137.68 Friday Day 5) 202.69 300.65 266.39 310.19 331.78 QUESTION 1 (30 minutes: solution by 4.30pm) Create a program that calculate the following Total amount of sales in a specific day (X). Total amount of sales by a specific salesman (1) Input format: First line is an integer N, represents the number of salesman. Followed by N lines, where each line contain 5 working day sales information. Then, followed by two integers, X and Y where X represents the respective day and Y represents the respective salesman of interest Output format: First line is the name of day, followed by a symbol colon, then the total amount Second line is the salesman info, followed by a symbol colon, then the total amount. Example of input and output: Output Tuesday: RM1121.47 Salesman 3: RM796.86 Input 5 146.16 87.13 105.53 63.76 202.69 119.63 484.84 205.62 413.55 300.65 87.89 135.04 271.87 35.67 266.39 457.14 113.36 290.84 274.01 310.19 389.56 301.10 192.06 137.68 331.78 23
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started