Questions: 11 448

Answers by our Experts: 10 707

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

create a class named 'student' with a string variable 'name' and an integer variable 'roll_no'. Assign the value of roll_no as '2' and that name as "john" by creating an object of the class student.


in a company an employee is paid as follows; if his basic salary is less than 50,000 then house allowance is 10% and inflation allowance is 5% of basic salary. if his salary is equal to or above 50,000 then his house allowance is equal to 10,000 and inflation allowance is 8% of basic salary. if the employee basic salary is input by the user, write a c++ program to find an employee's gross salary


write a c++ program that tells you if a number is odd or even


what will happen when you run the following program?

#include<iostream>

void main()

{

int i=10, j=5;

int modResult=0;

in divResult=0;

modResult=i%j;

cout<<modResult<< " ";

divResult=i/modResult;

cout<<divResult;

}


identify errors in the following c++ program

#include<iostream>

void main()

{

int i=0;

i=i+1;

cout <<i << " " ;

/*comment \*//i=i+1;

cout <<i;

}


after the execution of the following code, what will be the value of x?

int x=5;

if(x>5)

x=x+10;

else if(x<3)

x=x-5;

else x=100;


write a simple c++ program to compute the area of a circle


Produce a pseudocode, a flowchart, and a program that computes for the toll charge of trucks entering San Miguel and exiting Tipo. The toll charge is P 73.55 per kilometer. San Miguel starts at km 0 and ends at Tipo at km 63. The toll charge is inclusive of 8.25% tax.

Sample run:

Welcome to Toll Plaza

Please pay: P 4633.65

Tax: P 353.14

Amount tendered: P 5000

Change: P 366.35



 Create class PI with data members roll and name. Create another class AI with data members sub1 and sub2. Derive a class Student from PI and AI classes. Student class has one data member total to calculate the sum of sub1 and sub2.


Write a program that reads an integer between 0 and 1000 and adds all the digits in the integer. For example, if an integer is 932, the sum of all its digits is 14.


LATEST TUTORIALS
APPROVED BY CLIENTS