Skip to content

Python-Coding-Assignments/Restaurant-Ratings-Part-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

video_poster_1

Table of Contents
  1. About the Project
  2. Getting Started
  3. Contact

About the Project

This project simulates a simple application where information about a restaurant is made available to the user. The user can do any of the following: print all restaurants (including information about each restaurant), print all ratings for a restaurant specified by the user, add more ratings to a restaurant he or she specifies, and lastly print a specified restaurant's rating.

The objective of this program is to demonstrate the following:

  • show a basic understanding of classes and how they work, including the init constructor, setters, and getters
  • utilize packages to organize classes and functions in different directories
  • display an understanding of mutable and immutable variables and how/if they are modified by a function

In this program, the user can enter anything, even when prompted with entering an integer menu selection, and the program will still function as intended.

Getting Started

To run the program, download the contents of the project and simply run make in the terminal.

Once the project is open, you will be prompted with a menu display different menu options. To continue, you will need to enter a letter that corresponds to one of the menu options; otherwise; an error message will be displayed.

For some menu options, the program ask for a restaurant index and rating index input from the user. The restaurant/rating index that the program is requesting is the index in which the user's chosen restaurant/rating appears in the already initialized list. Recall, in a list, the first element is at index zero, the second element is at index one, and so forth. To see which restaurants are at which restaurant index, you can input the character "A" for the menu selection, and then a list of the restaurants at their specified index is printed to the screen.

For menu option D, the program will request the restaurant index from the user, which we just went over above. Then, the program will request the rating index from the user. The logic regarding the ratings indices parallels that of the restaurant indices; however, there is no menu option to print all of the ratings a given restaurant has. Each restaurant that has been initialized by the program begins with two ratings; therefore, if no ratings have been added to a restaurant at a specified index, then the only valid inputs for menu option D are "0" and "1". Once new ratings have been added to a restaurant, then valid rating index inputs will contain more strings than simply "0" and "1", such as "2", "3", and so forth.

Contact

Name: Garrett Ellis
Project Link: https://github.com/Python-Coding-Assignments/Restaurant-Ratings-Part-2

About

This project simulates a simple application where information about a restaurant is made available to the user.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published