Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 2 (30 minutes: solution by 5.00pm) Based on Question 1, create a program that calculate the following; The name of day with the highest

image text in transcribed

QUESTION 2 (30 minutes: solution by 5.00pm) Based on Question 1, create a program that calculate the following; The name of day with the highest total amount of sales. The salesman info with the highest total amount of sales. If there are more than one salesman or day with same highest value, choose the earliest one. 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. Output format: First line is: the name of day with the highest total amount. Second line is the salesman info with the highest total amount. Example of input and output: Output Friday Salesman 2 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

More Books

Students also viewed these Databases questions

Question

2. What type of team would you recommend?

Answered: 1 week ago