Project name: Travel Planning Helper
Youtube link: https://youtu.be/ahpJqJZBrNM
The user first enters the traffic budget and selects the current location. The program shows the area where you can go from that location, and the user chooses the area you want to go. The program then shows the means of transportation, each price and time. If the user chooses, the program will show the remaining budget, and ask users to continue traveling to another area. If the total cost exceeds the traffic budget after the user chooses the means of transportation, the program tells the user that transportation costs exceeded the budget. After finishing the plan, the program shows and make textfile about the total transportation cost and time and tourist attractions in each area that user decided to go.
If you move without planning when you travel in Korea, traffic expenses often exceed traffic budgets, and sometimes you take too much traffic time. The program prevents that situation, and show time and money to spend on total transportation, and informs tourist attractions in the travel area. Finally, you can receive your total plan as a text file.
There are 4 files(main.c, list.txt, place.txt, travel.txt) in total.
main.c: C code file
list.txt: Text files for transportation, use weight value (First, Second numbers are 1. Jeonju 2. Seoul 3. Busan 4. Ulsan 5. Daejeon 6. Suwon. Third number is 1. Train 2. Bus 3. Airplane)
place.txt: Text files for tourist attractions, use weight value (First numbers is 1. Jeonju 2. Seoul 3. Busan 4. Ulsan 5. Daejeon 6. Suwon)
travel.txt: Text files for result
-
Complile main.c file. ex) $ g++ main.c -o main.o
-
Run main.o file. ex) $ ./main.o
-
Type Budget and select starting point.
- Select place to travel and trasportation to use.
- Choose whether or not you plan to go to the next area for trip.
- Show result and make text file when you finished.
If you have any questions or would like more information, please contact at [email protected].
I wrote the full codes.