Cell Phone SalesThe purpose of this project is to practice interactive input, mathematical operations, loops, arrays andformatting output using manipulators.Write a C++ program that will process a cell phone sales for one weekProblem specifications:An electronic store sells two types of cellphones; Iphone and Galaxy. For each day of the week youshould enter the number of items sold for each type. In your program you should calculate the totalsales amount for each type then calculate the total sales amount for both types. The program shouldfind 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,SundayCreate one array for the number of items sold for the IPhone for each dayCreate one array for the number of items sold for the Galaxy for each dayCreate one array for the Iphone sales amount for each dayCreate one array for the Galaxy sales amount for each dayCreate one array for the total sales amount for both types for each dayConstants:Declare constant for the SIZE of the arrays, 7Declare constant for the Iphone price = $675.50Declare constant the Galaxy price = $650.25Sample inputWeek Day # Iphone sold # Galaxy soldMonday 5 4Tuesday 4 6Wednesday 6 5Thursday 3 5Friday 7 8Saturday 4 4Sunday 2 3Sample outputTotal Total TotalWeekDay # Iphone sold # Galaxy sold Iphone Sales Galaxy Sales Day SalesMon 5 4 xxxxx xxxxx xxxxxTue 4 6 xxxxx xxxxx xxxxxWed 6 5 xxxxx xxxxx xxxxxThu 3 8 xxxxx xxxxx xxxxxFri 7 5 xxxxx xxxxx xxxxxSat 4 4 xxxxx xxxxx xxxxxSun 2 3 xxxxx xxxxx xxxxxHighest number of IPhones sold is: 7 on FriHighest number of Galaxy sold is: 8 on ThuGrading Criteria:Program documentation: ........................................................10Use of mnemonic variable names:...........................................10Use of constants........................................................................5Programming style ..................................................................10Comments added......................................................................5Program runs and produces the intended results ....................25Output alignment....................................................................20Arrays Declarations .................................................................15
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here