Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#TO DO USING PYTHON LANGUAGE# Case Study Online ordering has enabled many restaurants to manage their peak business hours very effectively. Thanks to online

#TO DO USING PYTHON LANGUAGE#


Case Study 
Online ordering has enabled many restaurants to manage their peak business hours very effectively. Thanks to online ordering, many people manage to prevent the painful experience of wasting time in a long queue. A2C is one of the biggest restaurant chains in Australia. They decided to offer their customers a convenient and contactless mobile ordering solution in response to the growing business need and COVID restrictions. As part of the development team in the SAS software solutions, you are required to design and develop the mobile ordering program. Before the application release deadline, you are required to submit the following deliverables: 1- A design of the application process using a Flow Chart diagram 2- Python program for the three tasks as per the description that follows in this document. image

Part 1 - Make a Flow chart diagram relevant to Part2 Task

 

Part 2 :

 

Part 2A: 

To start using the mobile app, users should signup an account. You are required to make a Python program for the signup process. The users will be asked to enter their full name, contact number, date of birth, password, and password confirmation. 

 

1. 

The signup process will not be successful until: 

a. The mobile number has 10 digits starting with 0. 

b. The Password must initiate with alphabets followed by either one of @, & and ending with numeric. (For Example: Sam@0125, Sam&25) 

c. The password confirmation matches the initial entered password. 

d. The DOB is in the format DD/MM/YYYY 

e. The user is at least 16 years old. The age should be calculated based on the year entered in the DOB (Only consider year).

 

2. 

If any of the above-mentioned condition is not fulfilled; the sign-up process should fail, and descriptive message should be displayed for the user explaining what has gone wrong and providing hints on the correct expected input. The program should keep asking the user to re-enter his details as long as one or more of the input fields are not correctly entered. If all fields are entered successfully, the program should stop asking the user to re-enter his details and display a message that the signup process has been completed successfully. If any field is entered incorrectly, some examples of sample outputs are given below. 

image

3. If all of the above-mentioned conditions are successful, the user data is saved in appropriate data structure (Hint: List can be used) to enable data checks during the login process described in part 2. image

Part 2B.

 

In continuation to part 2A, you are required to writa a python program to allow the signed-up users to Login the application: User must be asked to select from one of the 2 options from Signup or Login, until he selects the option to exit from the application.

image

During the signup, same process must be applied as mentioned in part 1. 

 

The Application must save the User'sinformation of all the Successful Signupsin the appropriate data structure (Hint: List can be used), for verification purposes. 

 

Please try your program with multiple signups at once to ensure the login details are saved for verification purposes.

 

During the login the program must verify the user id and password before confirming the user for successful login. 

 

Once the login is successful the user's name must be displayed in the greeting message. 

 

After the login the user must be asked the optionsto sign-out and reset the password.

image

If the user has not signed up with the entered username (mobile number), the program must ask the user to sign up first. image

If the user selects the Sign-out option, the user is back to the home screen with the options of Signup, Sign in and Quit Application. image

 

Part2C: -

 

 In Continuation to Part 2B: Resetting the password 

 

Part 1 - Reset Password from Menu 

 

Post Login the user must be shown an option to reset the password, and sign-out, where the user must enter his username, old password, and new password. 

image

Part 2 - Reset Password due to Unsuccessful Login attempts

 

User is allowed with only 3 attempts for unsuccessful login, and then must be shown the option to reset the password. 

 

During the reset password the user must be asked to enter the username (mobile number), which must be verified before asking the user to enter his DOB. 

 

Once the DOB is verified with the details saved in the memory, the user must be provided with the option to enter a new password, in the provided format.

 

If valid, the user's password must be replaced with the previously entered password, and if not the process of resetting the password must be restarted from entering the username and password.

image


Program Description: In this program you have to create a mobile ordering application for a restaurant. The restaurant has variety of cuisines to offer their customers. When the program starts, the user is given the following options: 1- Sign up 2- Sign in 3- Quit application Output: Please Enter 1 for Sign up. Please Enter 2 for Sign in. Please Enter 3 for Quit. Your program should keep running and enable multiple users to sign up and log in, until the quit application option is selected. Output: If User enters 3 Thank You for using the Application.

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_2

Step: 3

blur-text-image_3

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

International Marketing And Export Management

Authors: Gerald Albaum , Alexander Josiassen , Edwin Duerr

8th Edition

1292016922, 978-1292016924

More Books

Students also viewed these Programming questions

Question

On what previous language was Cs switch statement based?

Answered: 1 week ago