02 - Team Do-while
Runhe Zhong 101016659
Jie Ji 101022463
Xinting Wang 101055027
Tiancheng Zhao 100988646
- locate at the folder in terminal
- bash run
- open terminal
- locate at the interface folder
- type /home/student/Qt/5.13.0/gcc_64/bin/qmake
- type make
- type ./SCAPES
This SCAPES software allowed the user to create, load, save, compile, and run a program that was written by SCAPES language. The strategy pattern is used for handling different kinds of statements. This pattern allows choosing a specific algorithm during the runtime. It includes context class, strategy class, and different concrete strategy classes. The context class will refer to the strategy API for performing a certain algorithm. The strategy class will have some virtual functions that different concrete strategy classes that are inherited from it could assign their functions. In our program, the program class is context class, the statement class is the strategy class, and different statement classes are different concrete strategy classes. When the user tried to compile or run a SCAPES program, the type of a statement could be determined during the software run time. Apart from it, each statement's behavior could be modified easily. It means that we can add or remove or edit a class without touching other classes.
-
largeNumberPrint.scp - Allow user to input two numbers, and the program will print the large number.
-
secretNumberGues.scp - Allow one user to input a secret number, and then second user to input a number to guess the secret number, the loop will keep going on until the second user's number is larger than the first user's.
- SP1.scp - Allow user to input two integers, keep asking until the two inputs are not equal. Output is an array: the first element is the smaller input integer, the second element is the larger input integer, the third element is the sum of these two integers Contains all the instructions
- SP1.scp - This is a game that allows user to guess a secret number within 5 chances. User can decide if they want to restart the game again or not after game is over. Contains all the instructions Contains two loops, one is a nested loop
Be Aware! Your program must have an ‘end’ to indicate the end of the program. Otherwise, it won’t compile.
- icons:{compile_icon.png, new_icon.png, open_icon.png, run_icon.png, save_icon.png}, all icons credited to LogoMakr.com, "Created my free logo at LogoMakr.com"