Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
we assume you are invited to design an online shop for a public school, which sells lunch food and uniforms to year K-6 students
In this assignment, we assume you are invited to design an online shop for a public school, which sells lunch food and uniforms to year K-6 students. You also need to implement some initial functions.
Do and enjoy it.
A user needs to provide mandatory personal information for registration. The information includes username, password, full name, living address (an address in Australia only, including street number, street name, suburb/city, state and postcode), email address, the student’s name, class (note a family can have more than one child enrolled in the school), and credit card information.
The entered information should be validated before being submitted to the Web server. This can include the length of credit card number (we suppose 10 digits only), the expiry date, post code (i.e. 4 digits), and email address. A password should start with a letter and contain at least 1 number. The password contains totally 6-10 letters and numbers.
After successful registration, an email (#1) is sent to the user (parent) for notification. The email includes the all children’s names, classes, username and some information for confirming registration. The sender’s email address should be your MQ email address (you are the shop owner).
Only a registered user can browse lunch food/drinks and uniforms after logging into the system.
After successful login, the shop web page displays the student’s name and class information. The web page also provides links to lunch food/drinks and uniforms respectively. For each item available in the shop, provide a name, a picture, and the price. All product information except the picture should be read from the server side database. There should be at least 5 items in each category of “lunch food/drinks” and “uniforms”. A user can select items and add them to Order Pad (a kind of shopping cart). Note that each lunch food/drink item can be ordered for a day within a week (i.e. if today is Monday, oders can be placed for Monday to Friday). Orders for the current weekday can be placed by 10am.
A user should be able to see all items in the Order Pad, change the amount of an item, and delete any item. The total price of all items in the shopping cart is automatically calculated and displayed.
The user can order all the items added to the Order Pad. If the user confirms the order by clicking a button (e.g. “Checkout” button), an email (#2) is sent to the user including the list of ordered items, as well as the total cost.