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

9: write a program uses for loop that add up the even numbers between 1 and 20, and add up odd numbers between 1 and 20 the
Write a program that prompts the user to enter the number of students, each
student’s score, and finally display the highest score
Question 10: write a program uses for loop that print all 20 numbers with plus signs between them and a blank on either side, that is, 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20+
Question 6: write a program uses for loop that print the square of each odd number, that is, 1 9 25 49 81 121 169 225 289 361



Question 7: write a program uses for loop that print those numbers divisible by 3, that is, 3 6 9 12 15 18
Question 4: write a program uses for loop to print numbers 1 to 20

Question 5: write a program uses for loop that print only the even numbers between 1 and 20, that is, 2 4 6 8 10 12 14 16 18 20

An Islamic bank wants you to develop a Zakat Calculator for them. The calculator shall take the input of the 1) name of zakat donor, 2) Bank_Balance, 3) zakat_amount. Create constructor to initialize variables with default values which will be called on the time of object instantiation. There should be a method named “Cal_zakat()” which calculates the zakat of each donor and set in zakat_amount. The program adds up the zakat of each donor hence calculating the total_zakat of the bank. Use a “display()” which displays not only the data of the donor but also the total amount of zakat of the bank. It should keep in mind that the zakat will be calculated only if Bank_Balance is greater than or equal to 20,000. (You should implement the concept of overloading, copy constructor or overriding wherever it is applicable) 


What are the benefits of web-based e-mail services, like those offered by Yahoo! and MSN, for home

users? Why are companies unlikely to use these services for business purposes?


An Islamic bank wants you to develop a Zakat Calculator for them. The calculator shall take the input of the:

1) name of zakat donor,

2) Bank_Balance

3) zakat_amount.

Create constructor to initialize variables with default values which will be called on the time of object instantiation.

There should be a method named “Cal_zakat()” which calculates the zakat of each donor and set in zakat_amount. The program adds up the zakat of each donor hence calculating the total_zakat of the bank. Use a “display()” which displays not only the data of the donor but also the total amount of zakat of the bank. It should keep in mind that the zakat will be calculated only if Bank_Balance is greater than or equal to 20,000. (You should implement the concept of overloading, copy constructor or overriding wherever it is applicable)

Note: Zakat will be calculated by the formula (Bank_Balance *2.5)/100. 


1) Create a class Worker with attributes name, age and salary. This class contain default constructor, getData, Display and a pure virtual function named as calculate commission with a virtual destructor.


a) A class Salaried that inherits from Worker contain parameterize constructor and a function that calculates the commission of the worker and display total salary constantly.


b) A class Hourly that inherits from Worker calculates the commission of Worker with of 5% and display total salary constantly. Instantiate Salaried and Hourly classes polymorphically.


Note: Commission of an employee of Salaried class is 10% and for class Hourly employee is 5%.  


C++: write a program that uses for loop and print the number between 3 to 10
LATEST TUTORIALS
APPROVED BY CLIENTS