logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Design a program that asks the user to enter a store’s sales for each day of the week.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

#1 - Store Sales

General Description:

Design a program that asks the user to enter a store’s sales for each day of the week (7 days). Assuming day 1 is "Monday" and day 7 is “Sunday”, create an array with the days of the week. Prompt the user for their input using the actual name of the day in the prompt.

 

Example: Enter the sales for Monday

 

The sales amounts should be stored in an array. Use a loop to calculate the total sales for the week and display the result (Total Sales). Finally, show a message informing the user which day of the week had the most sales and the name of the day.

Example: Wednesday had the most sales: $ 485.00

 

Specifics:

  • Days of the week and the Sales Amount arrays MUST be declared in the Main() and cannot be global

  • You must ask for the daily sales inside of a loop in the Main()

  • Use a Function to prompt the user for the sales amount for a given day. The function header needs to accept one argument: dayOfWeek as a string. The function will return the sales for that

 

Turn In:

  • Flowchart

  • Pseudo Code

#2 - Phone Number Lookup General Description:

Design a program that has two parallel arrays: a String array named friendList that is initialized with the names of 10 of your friends, and a String array named phoneNumbers that is initialized with your friends’ phone numbers (please use fake data). The program should allow the user to enter a person’s name (or part of a person’s name). It should then search for that person in the friendList array. If the person is found, it should get that person’s phone number from the phoneNumbers array and display it. If the person is not found in the people array, the program should display a message indicating so.

Specifics

  • The friendList and phoneNumbers array can be declared

  • Use a function that accepts a single argument: personNumber as an integer, to return the phone number from the

phoneNumbers array.

 

Turn In:

  • Flowchart

  • Pseudo Code

(5/5)
Attachments:

Expert's Answer

1561 Times Downloaded

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

1561 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

623 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

614 Answers

Hire Me
expert
Husnain SaeedComputer science

755 Answers

Hire Me
expert
Atharva PatilComputer science

970 Answers

Hire Me