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.