Reference no: EM133740584
Case Study
The exciting integration of Restaurants online and mobile platforms provides restaurateurs with a complete digital management platform to increase online order sales, eliminate the need for restaurant staff to manually manage orders, and automate order data flow to the kitchen.
B2B 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 Creative software company, you are required to design and develop the mobile ordering program. The programming team leader assigns each member of the development team nine predefined independent tasks that will be later on integrated to form the platform. Before the application release deadline, you are required to submit the following nine programming tasks:
Question 1: Customers details: You are requested to enable the customer to insert their details to create a new account. Each customer will be asked to insert the following:
the customer's name,
mobile number,
year of birth,
current city
email address to register for promotions.
The application must calculate the customer's age (assume the current year is always 2023) and confirm to the customer with a greeting message by displaying all the details if the customer is more than 21 years of age.
Question 2: Restaurant Capacity: Write a program to advise the restaurant manager on how many customers the restaurant can accommodate based on the restaurant dimensions. Your program will ask the manager to insert the width and length of the restaurant in centimetres. Assuming that a person occupies 1.3 square meters of space. The program should output the number of people that can be accommodated in the restaurant (The output should be an integer).
Note: if the calculated number of people that the restaurant can accommodate is more than 70, the program must print the message that A Maximum of 70 persons are allowed.
Question 3: At the end of each week the manager would like to assess the average per person sale and compare it to the previous weekend. Write a program to ask the manager for the following input:
Current weekend's day wise sale and number of persons visited.
Last weekend's day wise sale and number of persons visited.
Calculation:
Note:
You must use a list.
The weekend includes Friday, Saturday, and Sunday.
Question 4: Create a program to calculate and print the amount of change to be returned to the customer,
| after paying the bill, based on the manager's inputs in the system. |
|
| Sample Input: |
|
| Invoice Number: |
P001 |
| Total Invoice amount (In Dollars): |
200 |
| Amount of Tip (In Cents): |
10 |
| Total Payment received by Card: |
160 |
| Service Charge on Payment made by Card: |
4% |
| Total Payment received in Cash (In Dollars): |
100 |
| Output: |
|
| Change to be returned to the customer (In Dollars) against Invoice number P001 is: |
|
|
|
| 53.5 |
|
Note: If the return to customer amount is negative, then it must print "Outstanding amount against Invoice number P001 and need to be paid by customer:", and the amount need to be paid.
Question 5: Write the program to provide the user with an amount he/she needs to pay including the delivery and packaging charges. The program should ask the user for the following input:
His full address
The amount of order placed
The distance in KM between the address provided and the restaurant
The total charges must be calculated based on the bellow rates:
Packaging Charges for:
Order Amount more than 20 AUD to 35 AUD 10%
Order Amount more than 35 AUD to 50 AUD 8%
Order Amount more than 50 AUD 6%
Delivery Charges for:
i. More than 0 to 4 Kilometres $3
ii. More than 4 to 8 Kilometres $6
iii. More than 8 to 12 Kilometres $10
iv. More than 12 Kilometres No Delivery can be done.
Based on the input entered by the user the program must calculate and displays the all the details effectively.
Question 6: Write a program to calculate the total charges of a placed order at the restaurant. Additional charges apply based on the order type selected from the options of:
dine in: Additional service charges of 8% apply
pick up: no additional charges
delivery: additional delivery charges of 10% apply
The program should ask the user to insert the order base cost in AUD and the order type (1 or 2 or 3), and then the program should output the total amount to be paid.
Question 7: Write a temperature conversion program. The program should offer two forms of conversions:
from Centigrade to Fahrenheit
From Fahrenheit to Centigrade
The program should ask the user to insert the temperature value and then conversion option (1 or 2).
The program should output the converted temperature.
Your program should print a warning message for invalid values of temperature.
Any Other option selected: Invalid Entry.
Question 8: Write a program to help the manager calculating the net monthly income of the employee after the tax is deducted. Assume a fixed income tax of 18 %. The program should ask the manager to insert the following input:
the position of the employee (chef, waiter, delivery or cleaner).
the number of monthly hours the employee worked.
If hours are entered in decimal format, the calculations will be executed by rounding the hours to the nearest positive value.
The pay rate is calculated as follows:
Chef $30 Per hour,
Waiter $28 Per hour,
Delivery $25 Per hour,
Cleaner $ 24 Per hour
Note: you should ensure a correct output regardless of the input case (upper case, lower case and more).
Question 9: Create a program that ask the user to enter user credential signing up a new account. The program should ask the user to insert the following:
mobile number
password
The program should print the output "Valid credentials" if:
the mobile number is having exactly 10 digits.
the password has a minimum of 7 characters and maximum 11 characters.
The password must contain at least one special character, either @ or $
The password must end with a digit
Note: The program should print "invalid credentials" otherwise. (2 Mark)
Important: Incorporating input validation is a critical step to guarantee the proper functioning of the aforementioned programs and prevent any unexpected errors. Input validation plays a pivotal role in addressing possible problems like invalid data, values beyond permissible ranges, or erroneous user inputs.