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

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

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

Post by answerhappygod »

Cell Phone Sales The Purpose Of This Project Is To Practice Interactive Input Mathematical Operations Loops Arrays An 1
Cell Phone Sales The Purpose Of This Project Is To Practice Interactive Input Mathematical Operations Loops Arrays An 1 (50.87 KiB) Viewed 50 times
Cell Phone Sales The Purpose Of This Project Is To Practice Interactive Input Mathematical Operations Loops Arrays An 2
Cell Phone Sales The Purpose Of This Project Is To Practice Interactive Input Mathematical Operations Loops Arrays An 2 (54.95 KiB) Viewed 50 times
Cell Phone Sales The purpose of this project is to practice interactive input, mathematical operations, loops, arrays and formatting output using manipulators. 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 phone 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 *** Note: Must use loops to input data, process sales, and display results 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 Monday Tuesday Wednesday Thursday # Galaxy sold 5 4 6 5 3 5 7 Friday Saturday Sunday

Sample output Total Total Total WeekDay # Iphone sold #Galaxy sold Iphone Sales Galaxy Sales Day Sales Mon 5 4 XOOOOK ХХХХ соох Tue 4 6 XCOOK xxx XOOOOX Wed 6 5 XOXOOOK XXOOOK XXXX Thu 3 8 XOXOXOOC XXXXX XOOOOX Fri 7 5 XO000 XOOOOC XOXOOK Sat 4 XXXOOK XXXXX XXOOK Sun 2 3 XOXOOOX XOOOOC XOOOOX Highest number of IPhones sold is: 7 on Friday Highest number of Galaxy sold is: 8 on Thursday Grading Criteria: Program documentation: Use of mnemonic variable names: 10 Use of constants 5 Programming style 10 Comments added. 6 20 10 Program runs and produces the intended results Output alignment Arrays Declarations Use of loops to input, process and display data 15 20 Due date 05/11/22. you can submit it any day before due date.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply