Project 2: Travel Agency
Implement a program that manages the data of a travel agency. The agency manages the list of hotels that accommodate tourists. For each hotel the agency has the following data: name, address, city, country, number of starts, price per night and a list of facilities. The data are stored into a json file. The application should manage the following characteristics: add a new hotel , remove existing hotel (identified by name) , show hotels of a specific city or country, show hotels that provide a specific facility (e.g., free wifi)
Changes need to be stored back in the file. The above functionalities are implemented through methods of a class named TravelAgency. The application interacts with the user through a menu where the user is asked for the next action to undertake (e.g., 1 -Add new hotel, 2- Remove existing hotel, etc.) Put comments on your code.
Project 1: Phonebook
Implement a program that manages a smartphone phonebook. Each contact might have the following data: name, surname, birthday and a set of Phone Numbers (to the same contact we may assign several phone numbers). The data are stored into a json file. The application should manage the following characteristics: create and add new contact the book ,remove existing contact (contacts are identified by name) , show all the contact , show the list of persons among your contact the has the birthdate
Changes need to be stored back in the file. The above functionalities are implemented through methods of a class named PhoneBook. The application interacts with the user through a menu where the user is asked for the next action to undertake (e.g., 1-Add new contact, 2- Remove Existing contact, etc.) Put comments in your code
You Just got your 1st internship as C++ developer CONGRATULATIONS, your manager gives you your 1 st task to solve below. PROBLEM SPECIFICATION Your company wants to collect the total number of age groups within the company and calculate the average age of employees and the classification (see below table) within the company. You are required to write a program in C++ that will ask the user to enter the integer age. Determine in which group allocation each employee belong (refer to table below) and calculate the total Age sum and the company average age. The program should populate a report showing all the information. The user should enter a negative value to indicate that they are done.
Description and Age group
A. Young employees From 19 till 35
B. Middle Age group 36 till 49 (inclusive)
C. Elderly 50 till 65
Please note the below points:
1. Demonstrate the use of loops to solve this problem.
2. A sentinel should be utilised.
True or False Statements
1.1 The body of a loop executes at least once in a post-test loop.
1.2 Nested loop is a process of having an if statement inside another if statement.
1.3 A pseudocode includes all the declarations and all types of statements.
1.4 When the loop-continuation condition in an iteration statement never becomes false then that loop can become an infinite loop.
1.5 Continue and break statements may be embedded only within iteration statements.
Write a C++ one dimensional array program that prompts and reads in the sales for each salespeople in a company. If then prints out the ID and amount of sales for each salesperson and the total sales.
a. Compute and Print the average sale.
b. Find and print the maximum sale. Print both the ID of the salesperson with the max sale and the amount of sale.
c. Do the same for the minimum sale.
d. After the list, sum, average, max and minimum have been printed, ask the user to enter a value. Then print the ID of each salesperson who exceeded that amount, and the amount of their sales. Also print the total number of salespeople whose sales exceeded the value entered.
Create a stack of size M for storing integer data. Our task is to insert a node at position P = M/2. If P is a decimal number, then P can be rounded to the nearest integer. please send me answer of this question . thank you.
How do I implement minimum heap on date and time, e.g. 23/7/2021 23:45, 24/5/2021 22:10, 20/5/2021 20:00. To implement minimum heap on the example.
Productivity software (such as Excel or Google Sheets) is used by almost every business. Think in terms of your own field of study and future profession, in what ways could you use productivity software to increase efficiency in your work?
Make a class with name as your arithematic.
Class one add two integer.second class subtract.third class multiply.four classes one main class.other feriend classes.using friend class.display output.
1.Create a stack of size M for storing integer data. Our task is to insert a node at position P = M/2. If P is a decimal number, then P can be rounded to the nearest integer.
Hint: A temporary stack can be used to store the data while inserting a new node. Use header file math.h and routine round(P), to round P to the nearest integer.