Question: Your task is to develop a C + + program that simulates travel packages to Japan and South Korea offered by Lavender Tours & Travel.
Your task is to develop a C program that simulates travel packages to Japan and South Korea offered by Lavender Tours & Travel. This program allows users to choose from various packages, each featuring unique offerings. Users can navigate through the available options and organize their preferences based on the detailed pricing information provided in the table below.
Notes:
WB with bed
NB no bed
To accomplish this task, you are required to implement the following functionalities using selection statements, looping, functions, and array:
a Menu Display:
Introduce users to the program's purpose.
Provide instructions for data input.
Allow users to choose their desired travel operation.
Offer the option to exit the program.
b User Registration and Booking Number:
Allow users to register by providing their name and phone number.
Generate a personalize booking number combine the first letters of the user's name with the last digits of their phone number
c Package Purchase:
Enable users to book travel packages, considering details such as package options, pricing, and the number of people.
d Input Iteration:
Implement a loop for continuous interaction with the user.
Prompt users to specify preferences for travel packages, including options such as choosing package features, specifying the number of people, and organizing choices based on presented information.
e Calculate Total Price:
Compute the total price based on the selected package, number of people, and any additional options.
f Display Package Details:
Present detailed information about selected travel packages, including user registration, booking number, package purchases, and total prices.
Assignment Requirements
Implementation Techniques: The program should be implemented by using selection, looping, function, and array. This provides students with flexibility in choosing appropriate programming techniques.
Validations: Validations must be implemented to handle invalid input and null values from users. Error messages should be displayed, and users should be prompted to reenter correct input. This ensures robust error handling.
Naming Conventions: Students are required to follow naming conventions for variables and functions. This promotes consistency and readability in the code.
Design: The program should be designed neatly and efficiently. Students are encouraged to write code that is wellstructured and maintainable.
IDE Compatibility: The program should be compiled and executed using any IDE that can compile C program. This allows students to choose their preferred development environment.
Comments: Students are required to insert comments alongside their code to explain its purpose. Comments should summarize, when necessary, but not every line of code requires a comment. This encourages documentation and clarity.
Based on these requirements, students are expected to create:
Flowchart: to visualize the programs logic and flow.
Complete and Executable C Program: A working program that meets specified requirements, including the use of appropriate programming techniques.
Screenshots of the Program Testing: Provide screenshots of the testing procedure along with explanations for each screenshot. This helps to demonstrate the programs functionality and testing process.
Complete the CODE otherwise I will use dislike
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
