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

Write a c++ program using while loop to display all the multiples of 5 from 100 to 50


Implement a structure, Car. The structure has the following data member:

1. int petrolLevel – that indicates the liters of petrol in the car’s petrol tank. PetrolLevel for

this car can only be in the range 0 – 45 liters.

The structure has the following member functions:

1. void setPetrolLevel(int petrolLevelVal) – a setter for petrol level, cannot set value greater

than 45.

2. int getPetrolLevel() – a getter for petrolLevel

3. Car() – a default constructor

4. Car(int petrolLevelVal) – a parametrized constructor

5. bool MoveCar(int distanceKM) – a function that takes an integer as an argument and

moves the car to the argument value which is in Km. Provided the petrol tank has enough

fuel. Successful movement of the car returns true otherwise returns false. Moving for

each km causes the petrolLevel to go low by one.

6. void Refill() – a function that refills the car tank to the maximum value of petrolLevel

7. bool isEmpty() – a function that tells whether the Petrol tank is Empty or not


2) Draw a flowchart for a program that will display a message “The number is 1” when the value of NUMBER is 1, “The number is 2” when then value of NUMBER is 2, “The number is not 1 or 2” when the value of NUMBER is not 1 or 2.


Mr. Tunan needs a directory that contains the following information.

(a) Name of a person

(b) Address

(c) Telephone Number

(d) Mobile Number

(e) Head of the family

He also needs a functionality to search the information of any person. Now develop a solution

using C++ for Tunan where you need to use a constructor to insert the information and a friend

function to show the output.


NAVANA LIMITED has imported 50 new TOYOTA COROLLA CROSS.

So, the Managing Director has instructed the concerned department to keep all the information

of these 50 cars for future development and statistics. For that reason, the GM of Sales and

Marketing department has marked out the mandatory information which are Customer_Name,

NID_Number, Purchase_Date, Engine_No, Registration_No. Also, they want some

functionality which are like inserting the information, showing all the sold list of Car and

Changing the ownership of the car. Now develop a solution using C++ to help NAVANA

LIMITED implementing this system following the below instructions.


Air traffic landing statistics is another interesting data. A dataset is available

(https://data.world/sanfrancisco/fpux-q53t). However, there might be other dataset as well. Your

goal is to find for more dataset and then identify task (that generates some meaningful insight)

and prepare that dataset accordingly.

Instructions regarding the Projects:

a. Data collection

b. Data Preprocessing and Cleaning

c. Data Visualization

d. Data Statistics(Summary of statistics)

e. Hypothesis Testing

f. Prediction Task(Using Machine Learning Model)

Any kind of interesting facts about data(e.g., kind of different studies which can be done

using the collected data), innovative ideas, and/or research ideas (Manipulation or

enhancements of existing techniques for better results) will also be considered during

evaluation and will be highly appreciated.


Explain what internet architecture is using an example.


Cumulative Sum

given an array integers, write a JS program to get the cumulative sum of the items in the array


sample input1

[1, 10, 100, 1000]

sample output1

[1, 11, 111, 1111]


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});


process.stdin.on("end", (_) => {

 inputString = inputString

  .trim()

  .split("\n")

  .map((str) => str.trim());


 main();

});


function readLine() {

 return inputString[currentLine++];

}


function main() {

 let integers = JSON.parse(readLine());


 /* Please do not modify anything above this line */


 /* Write your code here */

}



Mr. Tunan needs a directory that contains the following information.

(a) Name of a person

(b) Address

(c) Telephone Number

(d) Mobile Number

(e) Head of the family

He also needs a functionality to search the information of any person. Now develop a solution

using C++ for Tunan where you need to use a constructor to insert the information and a friend

function to show the output.


Develop a program by creating an 'Employee' class having the following functions and print the

final salary.

1 - 'getInfo()' which takes the salary, number of hours of work per day of employee as parameters

2 - 'AddSal()' which adds $10 to the salary of the employee if it is less than $500.

3- 'AddWork()' which adds $5 to the salary of the employee if the number of hours of work per

day is more than 6 hours.


LATEST TUTORIALS
APPROVED BY CLIENTS