Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your OOP teacher has assigned you a project. The project is to develop a Restaurant ranking system where anyone can rank (ranges from 1 to

Your OOP teacher has assigned you a project. The project is to develop a Restaurant ranking system where anyone can rank (ranges from 1 to 10) a restaurant. When a restaurants information in entered into the system for the first time, the rank (which is the average of all ranks entered by the users) of that restaurant will be 0 as no one has yet ranked the restaurant. Each time a person ranks the restaurant, the average rank of that restaurant will change. The application should have the following features. 1) Add a new Restaurant with its detail info in to the system. 2) Rank a restaurant -This functionality is used when a customer of a restaurant wants to rank the restaurant. This will take the rank from user and update the average rank. [Hints: Similar to CGPA calculation] 3) Display the details of a specific restaurant e.g. name, category (Chinese, fast food, ethnic, fine dining etc.), average rank and the number of users who have ranked the restaurant. 4) Display the of list of restaurants and their details (same as above) 5) Display the list of restaurants which are above a specific average rank. 6) Display the list of restaurants of a specific category which are above a specific rank.

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

DB2 11 The Ultimate Database For Cloud Analytics And Mobile

Authors: John Campbell, Chris Crone, Gareth Jones, Surekha Parekh, Jay Yothers

1st Edition

1583474013, 978-1583474013

More Books

Students also viewed these Databases questions

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago