ICS 104 Homework a3 (Due Wednesday November 23, 2022 at midnight) - Please note the following regarding homework submissions: - No email submissions will be accepted under any circumstances. - The deadline for all homework assignments will be at midnight. - The submission after the deadline will be opened for 6 hours (Le, until 6.00am next morning) and submissions will be marked as Late. However, you will not lose any marks because of that. - After 6:00am, submission will be closed. Failure to submir before that time results in an automatic zero. Instructions: - Solve Quentions 1 in the respective cell below. Make sure you fal in any place that says YOUR COOE MERE. + Make sure that your program output matches the sample runs. - Aso, make sure that you use the same strings in the print statements. - After you are done writing your code, uncomment the first line in the answer cell and run the cell in order to generate the Python program file Ho301.py. This link (hatpa://www.gradescope.com/coursev/4423.89/assignimentm/2436581) is where you are supposed to upload file by dragging and dropping it from your file system to gradescope, as shown below. To ald a wa phoce device moteri ast inother phoce or previ inter to fiesthi 1. Priat all phorei date in a tatular fornat 1 - Prict phinen inforsation based in trient tefer year chosce or "wale" to ealt : I If you make a mistake, you can resubmit. The gradescope wifl consider the last submission. + The grade distribution is as follows: - Programming style (comments and variable names): 10 pints
- It you make a mistake, you can resubmit. The gradescope will consider the last submission. - The grade distribution is as follows: - Programming syle fcomments and variable namea): 10 pints - Question 1t - Correct Code: 90 points. Note: - You should write comments to help other programmers understand yoar code. - Do not ase magic numbers and define the constants value as a constant vartable. - Name your varlables hased on Variable Naming Convearions rules. - You can assume that the aser will provide a valld input for all requeits anless. mentioned ocherwise. Question (90 points) Write a Python program that stores information about mobile phone devices in a dictionary. Then it perform some search tasks as showni in the sample ran befow. Your program needs to have the following functions: add_pihones its role is to interact with the Itser to read the phone information, create a dictionary and refurns it. Each line of information is entered as shown below. It consists of serial number (to be used as kry). brand, model, color, and memory. They are separated by commas, main: The role of the main function is display the menu and interacts with the user until he enters 'quir', then the program will terminate. In addition to the above functions, your solution mest contain as many functions as needed. You seed to divide the question inte small taks and each tak handled by a fusction. Your code must behave as shown in the program sample runs described below. Sample Program runs: Sample ran 1: To adt a arw phone device enters
To add a new ghone device entern adf awother plone or press fater to findici "*user Neruct 1. Print all ghomes data in e tabular fermat. 2. Print phenes anformatsin tased on the phone serial mater 3 - Print phowes informution tased on trand finter pour chosce or "quat" to ealt a d "+iner Reme"t \( \mathbf{1} \) - Print all phines deta is o tadular forast 2 - Print phowe information based on the phone serial nuber 3 - Print phones inforeation based on brand Enter your chodee or "oult" to exbt t a Cinter the phone serial nutuerirable - Thier Rerwio 1. - Print all phones data in a tatular foraut 2 - Brim ghowes information based on the ghure serial namer 3 - Print phones intoration based on brand Enter your cholke or "euit" to ealt + J tnter the ptone aerial muberifgifid Bevice not texnd. "Hyer Renw" 1 - Frint all phomes deta is a tabular foreat 2. Print phones information banied an the phone herial namber. 3. Print thomes ledoration baied on brimd tinter your chodes or "quit" no extt \( t 3 \) Enter the ghone Bratifiasuy. I. Print all phonei date in a tabular formit I . Drint shoces information waset on the shent serlal. 1 - Print phoset information haset en trand finter your chases or "asit" te wit a b. Inter the pbere Mrardideogle