Cell Phone Sales The purpose of this project is to practice interactive input, mathematical operations, loops, arrays and formatting output using manipulators. Write a C++ program that will process a...


Cell Phone Sales
The purpose of this project is to practice interactive input, mathematical operations, loops, arrays and

formatting output using manipulators.

Write a C++ program that will process a cell phone sales for one week

Problem specifications:
An electronic store sells two types of cellphones; Iphone and Galaxy. For each day of the week you

should enter the number of items sold for each type. In your program you should calculate the total

sales amount for each type then calculate the total sales amount for both types. The program should

find the highest number of cell phones sold for each type and the day where the highest number sold.
Program specification:
Create one array for the days of the week: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday,

Sunday
Create one array for the number of items sold for the IPhone for each day
Create one array for the number of items sold for the Galaxy for each day
Create one array for the Iphone sales amount for each day
Create one array for the Galaxy sales amount for each day
Create one array for the total sales amount for both types for each day
Constants:
Declare constant for the SIZE of the arrays, 7
Declare constant for the Iphone price = $675.50
Declare constant the Galaxy price = $650.25
Sample input
Week Day # Iphone sold # Galaxy sold
Monday 5 4
Tuesday 4 6
Wednesday 6 5
Thursday 3 5
Friday 7 8
Saturday 4 4
Sunday 2 3Sample output
Total Total Total
WeekDay # Iphone sold # Galaxy sold Iphone Sales Galaxy Sales Day Sales
Mon 5 4 xxxxx xxxxx xxxxx
Tue 4 6 xxxxx xxxxx xxxxx
Wed 6 5 xxxxx xxxxx xxxxx
Thu 3 8 xxxxx xxxxx xxxxx
Fri 7 5 xxxxx xxxxx xxxxx
Sat 4 4 xxxxx xxxxx xxxxx
Sun 2 3 xxxxx xxxxx xxxxx
Highest number of IPhones sold is: 7 on Fri
Highest number of Galaxy sold is: 8 on Thu
Grading Criteria:
Program documentation: ........................................................10
Use of mnemonic variable names:...........................................10
Use of constants........................................................................5
Programming style ..................................................................10
Comments added......................................................................5
Program runs and produces the intended results ....................25
Output alignment....................................................................20
Arrays Declarations .................................................................15


Sample input<br>Week Day<br># Iphone sold<br># Galaxy sold<br>Monday<br>5<br>4<br>Tuesday<br>4<br>6.<br>Wednesday<br>6.<br>5<br>Thursday<br>3<br>5<br>Friday<br>7<br>8.<br>Saturday<br>4<br>4<br>Sunday<br>2<br>3<br>Sample output<br>Total<br>Total<br>Total<br>WeekDay<br># Iphone sold # Galaxy sold Iphone Sales Galaxy Sales<br>Day Sales<br>Mon<br>4<br>XXXXX<br>XXXXX<br>XXXXX<br>Tue<br>4<br>6.<br>XXXXX<br>XXXXX<br>XXXXX<br>Wed<br>6.<br>XXXXX<br>XXXXX<br>XXXXX<br>Thu<br>3<br>8<br>XXXXX<br>XXXXX<br>XXXXX<br>Fri<br>7<br>5<br>XXXXX<br>XXXXX<br>XXXXX<br>Sat<br>4<br>4<br>XXXXX<br>XXXXX<br>XXXXX<br>Sun<br>2<br>3<br>XXXXX<br>XXXXX<br>XXXXX<br>Highest number of IPhones sold is: 7 on Fri<br>Highest number of Galaxy sold is: 8 on Thu<br>

Extracted text: Sample input Week Day # Iphone sold # Galaxy sold Monday 5 4 Tuesday 4 6. Wednesday 6. 5 Thursday 3 5 Friday 7 8. Saturday 4 4 Sunday 2 3 Sample output Total Total Total WeekDay # Iphone sold # Galaxy sold Iphone Sales Galaxy Sales Day Sales Mon 4 XXXXX XXXXX XXXXX Tue 4 6. XXXXX XXXXX XXXXX Wed 6. XXXXX XXXXX XXXXX Thu 3 8 XXXXX XXXXX XXXXX Fri 7 5 XXXXX XXXXX XXXXX Sat 4 4 XXXXX XXXXX XXXXX Sun 2 3 XXXXX XXXXX XXXXX Highest number of IPhones sold is: 7 on Fri Highest number of Galaxy sold is: 8 on Thu
Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here