Earn Higher Grades With Instant Assignment Help.Ask Question!

Python Programming
(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

Attachments:
(5/5)

Expert's Answer

6 Times Downloaded

Related Questions

CSI 1420 Introduction to C Programming & 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 majorconstructs of the C programming language – Fu

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

6 Times Downloads

Ask This Assignment To Be Done By Our ExpertsGet A+ Grade Solution Guaranteed

expert
joyComputer science
(4/5)
12 Answers Hire Me
expert
Robert DLaw
(4.8/5)
779 Answers Hire Me
expert
Dr Samuel BarberaStatistics
(5/5)
742 Answers Hire Me
expert
Tutor For YouEconomics
(5/5)
569 Answers Hire Me