Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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.

Martin your friend has declared a class called Employee with the following members; Employee ID, Employee Name, Basic Salary, Allowance, and Net Salary. a) Write a code for a member function called get_input that will be used for data input. (3 Marks) b) Write a code for a member function called Calculate that will be used to calculate net salary as the sum of basic salary and allowances. (2 Marks) c) Write a code for the default constructor that will assign values to the variables in the Employee class. (3 Marks) d) Write a code for the default constructor. (3 Marks) e) Write a complete program that captures and includes all the details in (a-d) above. Run the code and show your output. 


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


I have a problem with a coding assignment and am becoming clueless as to how to solve it.


I am working with PGM images and I have read the data and saved it into a buffer (2D array ex. data[width][height])


I have been asked to then transfer that data into an array of 2d arrays of size 8x8 for the 2d arrays and the number of arrays is width*height/64.


How would I go about storing the data from the 2D buffer into the array of 8x8 2D arrays?


  • The program must start by calling a mainMenu() function that will display the following:

*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.

  • Requirements:

*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

  • While inside a particular operation the user must have the option to continue more of the same operation or to get back to main menu. This requirement is voided when working inside the random operations. While inside a particular operation, statistic of the number of questions, right answers and wrong answers must be kept. When the user decides to go back to the main menu the program must display such statistic to the user and then go back to the main menu.

2. Which Color?

My favorite color is blue. What's your favorite color? Never mind it doesn't matter, as long as you know how to identify which color is given.


Instructions:

  1. Input a string that represents a color.
  2. Print "Red" if the color is red, "Blue" if it is blue, "Green" if it is green, and "None of the Above" if it isn't any of the three colors.
  3. Inputting the strings "ReD" or "rED" should still output "Red", this also applies to the other colors, so make sure to use one of the functions discussed previously!

Input

A line containing a string.

red

Output

A line containing a string.

Red

Write a program to take as input an array of N names, an array of N ids and an array of N salaries where the name, id, and salary of the 𝑖 th index belongs to the same person. Store them in a structure and sort them according to salaries (ascending) and then by ids (ascending). Print the person in the sorted order.

Sample input:

5

Mr. Kamal

Ms. Zara

Nitu Roy

Rakib Hasan

Samira Haque 32 28 29 25 30

165 163 165 178 165


Sample output :

Ms. Zara 163 28

Nitu Roy 165 29

Samira Haque 165 30

Mr. Kamal 165 32

Rakib Hasan 178 25


Write a Java program that creates an Array of string values and displays the duplicate values.


Write a program to take as input the name, height in cm and age of n employees, and


sorts it according to height in descending order. If two employees have the same height, then it sorts


according to age in descending order. Print the employees in the sorted order.



Sample input:


5


Mr. Kamal


165 32


Ms. Zara


163 28


Nitu Roy


165 28


Rakib Hasan


178 25


Samira Haque


165 28



Sample output:


Rakib Hasan 178 25


Mr. Kamal 165 32


Nitu Roy 165 28


Samira Haque 165 28


Ms. Zara 163 28


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. 


LATEST TUTORIALS
APPROVED BY CLIENTS