C++ Answers

Questions answered by Experts: 9 913

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

write a C++ program that prompt user to input a character and convert the character to the ASCII number


Describe the problem analysis-coding-execution cycle


Develop an OOP to find the sum of “n” terms of the following series.       

1^3 + 3 x 2^2 + 3^3 + 3 x 4^2 + 5^3 + 3 x 6^2 + . . . . . 


Prepare a c++ scores must input by the user to compute its total quiz.


  Name Quiz1   Quiz2   Quiz3    Quiz4    Total Quiz

                    (20/20)  (30/30) (15/15)  (25/25)     90/90

Jessa Lee 12          15     15        20                 

Bino  Ang

Cora Tan

Keni  Lao

Cala Mansi

Dala Gan


The marks obtained by a student in different subjects are input by the user.The student gets as per the following rules;

>=70% grade A

Between 60 and 70% grade B

Between 50 and 60% grade C

Between 40 and 50% grade D

Below 40% grade E

Write a c++ program to compute and display the grade obtained by a student whenever the user enters the marks


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;

}


LATEST TUTORIALS
APPROVED BY CLIENTS