Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello - help would be greatly appreciated with the following assignment. You are asked to build a prototype program for a company that intends to

Hello - help would be greatly appreciated with the following assignment. You are asked to build a prototype program for a company that intends to produce a product called Alexa. Your program should begin by asking the user (within a loop) to make selection from a menu. The menu should include the following choices (you can re-word the menu if you like). Your program should loop until option 6 is selected. 1)Build/Add to two lists one for songs and one for authors/singers. This option must be able to prompt the user and append to the current list. This list is not restricted in length. (I can add 1000 songs if I like). Hint: initialize your empty arrays in the main before the loop. Then pass the arrays to the function as arguments. Review the Wk 7 Lecture and TireCost program. 2)Display the entire list of songs and the corresponding singer/author. Hint: pass both arrays as arguments. 3)Play the entire list of songs using the given function PlayOneSong (do not edit this function). Hint: The function PlayOneSong should be in a loop. The function only plays one song at a time. Do not prompt the user. Optional challenge: Play the list of songs randomly You will need the random module. 4)Display the date/time using the given function DisplayDateTime. You must edit this function to display a correct format it is broken. Expected output format should be: Today's date: 18 December 2022 Current time: 8:34:18 am 5)Add your own option (a or b) a) What is the weather today?. Create a list of 5 responses. Prompt the user for a number 0,1,2,3,4. Use this number as the index to the list and display the appropriate response. Optional challenge: Display the weather response randomly instead of the prompt. You will need the random module. b)Display the current volume. Within a loop, prompt the user to enter a volume. Valid values are 0 thru 9. Display new setting as a number and as a horizontal bar (or list of characters you decide on the character to use. i.e. X # * = ). Use some multiplier. If the user enters 3, then display 3 times some multiplier (example below the multiplier is 2) Examples:. Volume 3 xxxxxx Volume 8 **************** Allow the user to save an exit the loop. When the function is called again, the saved value should be displayed before the prompt to reset the volume. 6)Quit the program. Your program should have a function for each menu choice except the last. Your menu selections MUST accept a response of a single digit or single character (case insensitive i.e. a A performs the same choice). [This is so I dont have to type a lot for choices when running your program]. Suggestions: You can test your functions and the given functions separately just by executing them like you have been doing the main().

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions