Skip to content

Latest commit

History

100 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

cs200

https://github.com/zhuoli99/cs200

Github desktop software: https://desktop.github.com/

Manager class keeps track of logged in user and all available data ( user services ) and handles actions of user interface. when you add new services to the program , you should also add them to Manager class.

Step is the state of the user interface, there are four steps in our program.For example, step 0 is the home page, step 1 is the main menu, step 2 is buyer page, step 3 is seller page.

In each step, user can choose to take actions, which takes them to next step. For example, in step 0 , user can choose createAccount or signIn... Graph below shows all step and action relationships.

img_1149

Graph below is the output screenshot.

screen shot 2017-11-19 at 5 32 22 pm

/*
step 0:
createAccount : addUser firstName lastName email
sign in : signIn(email)
step 1:
buyMenu -> step 2
sellMenu -> step 3
viewMyService
withdrawMoney
signOut -> step 0
step 2:
displayAvailableSerive
buyService
addMoney
checkOut -> 1
goBack -> 1
step 3:
displayServiceOption
addService(serviceName, date, time, price, duration, location)
5.clearAllData
clear
eg:
createAccount Andrew Fearing andrew@gmail.com
signIn andrew@gmail.com
displayServiceOption
addService carwash 11/12 2pm 2234 clinton street, new york, 30, 30
displayBuyandSell
createAccount zhuo li aliciali666@gmail.com
signIn aliciali666@gmail.com
displayAvailableSerive
buyService 2
buyService 4
buyservice 5
addMoney 20
checkOut
displayBuyandSell
*/

Sqlite

introduction: http://sqlite.org/

Sqlite3 is a database to save, retrieve and update data.

Sqlite3 Tutorial: https://www.codecademy.com/learn/learn-sql

Sqlite3 C++ interface: https://www.tutorialspoint.com/sqlite/sqlite_c_cpp.htm

In order to save our class data like user information and updated service information, we need to include this tool to our project.

I've written a sample class on how to use it.

Setup instructions are below:

Xcode: https://www.appcoda.com/sqlite-database-ios-app-tutorial/

Visual Studio: https://dcravey.wordpress.com/2011/03/21/using-sqlite-in-a-visual-c-application/

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages