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

Design a base class staff (staffno, name, salary) and two derived classes as teaching staff(subject) and nonteaching staff(post). Write necessary member function to accept and display information of all staff members

Write a program that prompts the user to enter the day number of a week and hours passed, and displays the day and remaining hours. For example, if the user entered day number 2 and hours passed 4, the program should display Today is Monday and Remaining Hours: 20. If the user entered day number 7 and hours passed 12, the program should display Today is Saturday and Remaining Hours: 12

Using a while loop write a program that will ask the user to input 5 positive numbers then the program will calculate the sum Ang display all odd numbers the calculate the sum of all odd and even numbers entered




Sample output:




Please enter 5 positive numbers: 1 14 2 13 3



The odd numbers are: 13 3



The sum of odd numbers is: 16



The sum of all numbers is: 33

Write a two dimensional array program that reads student scores and then assigns grades based on the following scheme:


Grade is A if score is > = 90;

Grade is B if score is > = 80;

Grade is C if score is > = 70;

Grade is D if score is > = 60;

Grade is F otherwise.


The program prompts the user to enter the total number of students, then prompts the user to enter all of the scores, and concludes by displaying the grades. 




A survey asks a person the percent of time at work they spend working, web-surfing, socializing, eating, and daydreaming. The person should enter the percents as 5 integers that should add to 100. Read 5 integers, and output OK if they sum to 100. Otherwise, output "Total should be 100. Your total: ___".

If the input is 20 30 10 10 30, the output is: OK

If the input is "80 10 10 10 5", the output is:

Total should be 100. Your total: 115

Create class BinaryStore & Byte


overloaded +=in BinaryStore

overloaded + for Byte Class

overloaded - Byte Class

overloaded || for Byte Class

overloaded && for Byte Class

overloaded == Byte Class


int main()

{

// address 4 bit bytes 8 bit long


BinaryStore b1(10);

b1+="0011";

b1.Add("0011",Byte("00000010"));

cout<<b1;

b1+="0110";

b1.Add("0110",Byte("00000110"));

b1+="1010";

Byte nb=b1.Get("0011")+b1.Get("0110");

b1.Add("1010",nb);

Byte nb2=b1.Get("1010")+b1.Get("0110");

bool r=b1.Get("0011")==b1.Get("0110");

cout << r <<b1;

Byte nb3=b1.Get("1010");

bool r1=nb3==b1.Get("1010");


cout<< r1 ;

Byte nb4=b1.Get("0011") || b1.Get("1010");

Byte nb5("00001100");


Byte nb6= nb4 && nb5;

b1+="1011";

b1.Add("1011",nb6);

cout<<b1;

}


Create a class of complex number having two attribute real and imaginary. Write a function to add two complex number and print the result. You need to write parameterized constructor. In main, create two objects of complex number, call the addition function and print the result.


Write a c++ program using constructor overloading to implement the following tasks:



1. Print sides of the cube


2. Print radius and height of the cylinder


3. Calculate and display the volume of the cube


4. Calculate and display volume of the cylinder


Write a C++ program to count number of digits in a number n which will be input by the user.


Write a C++ program to print all odd number between 1-100


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS