Question 2a: Explain further on the three main principles of Object-Oriented Programming
You will be simulating an airport where 8 planes go out on tours repeatedly. Each tour will be
for exactly 12 passengers and last approximately 30 seconds. In performing the simulation,
you must make sure that no plane tries to leave a gate with less (or more) than 12 passengers
and that no plane lands or takes off at the same time as another plane is landing or taking off.
The first thing your program should do is read the following from the command line (in the
order specified):
• the total number of passengers that are in the airport.
• the sum total number of tours that all of the planes are to do. (NOT the number of tours
that each plane is to do, the total number of tours that all planes will do when their
number of completed tours is added together.
You are required to build a program for ABC Builders, they have various models of houses which are all build on 1 canal area, the three models with costs are
House Models Building Cost Double
Story House 10000000
House with basement 20000000
Single Story 5000000
The property dealer give them the latest prices for area their house covers and the construction price building each model. The price of area is 1 crore, Calculate the total cost of whole house after construction. Suppose you have two users for this program, take input from them and based on their inputs calculate the total cost for their choice of house
*Welcome to your arithmetic training. This program tests your skills with basic mathematical operations between two numbers. Please select one of the following actions:
1. Addition.
2. Subtraction
3. Multiplication
4. Module Operation.
5. Random Arithmetic operations.
6. Exit.
*Values to sum, module operations, and number difference values must be up to 2 digits
*For products one of the factors must be one digit and the other up to 2 digits
You are required to build a program for ABC Builders, they have various models of houses which are all build on 1 canal area, the three models with costs are
House Models Building Cost Double
Story House 10000000
House with basement 20000000
Single Story 5000000
The property dealer give them the latest prices for area their house covers and the construction price building each model. The price of area is 1 crore, Calculate the total cost of whole house after construction. Suppose you have two users for this program, take input from them and based on their inputs calculate the total cost for their choice of house.
Write a C++ program to find roots of a quadratic equation using Ternary conditional
operator.
Select all devices that can be used by the Arduino as inputs
Motors
Pressure sensor
Electromagnets
Lights
Display devices
Select all devices that can be used by the Arduino as outputs
Speakers
Gas sensor
Lights
Buttons
Light sensor
why this switch statment is not valid??? reason
switch (n % 10)
case 2:
{
case 4:
case 6:
case 8:
cout << "Even";
break; case 1:
case 3:
case 5:
case 7:
cout << "Odd"; break; }
Select all devices that can be used by the Arduino as inputs
Lights
Touch sensor
Speakers
Gas sensor
Display devices