Questions: 9 913

Answers by our 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 & Filtering

Government of Pakistan apply a tax on education sector in which, if your annual fee is greater than 2,00,000 than you have to pay 10% of exceeding amount as tax. If your annual fee is lesser or equal to 2,00,000 than your tax is zero. Write a C++ program in which, read fee of two semesters and identify either user have to pay tax or not. If user have to pay tax than calculate total fee with tax.


Create a one (1) program that will apply all polymorphism techniques such as function, runtime and operator overloading.


Use three functions to perform the following tasks:


- Accept two integers from user. A function capture should do this using its


local variables fnum and snum.


- Modify the contents by multiplying the original values by 10. The function


modify should modify the values of fnum and snum as stated.


- Display the new value to the user. The function display should print to the


user the new values of fnum and snum variables.



2.Construct a program in C++ to compute the sum of the digits of the numbers input from the user. Apply all the control structures. Display the number input by the user as well as the sum. Use for loop control structure.


Example display in Console Application

Input number: 93

———output——-

You input number 9 and 3.

The sum of the digits 9 and 3 is 12.


1. Create a C++ program that asks the user to input full name 5times using for, do while and while loop. Then,display.

1.a. For loop

1.b. While loop

1.c Do while loop



Example display in console application


—-This program can accept 5 full names from the user——


Please enter five full names :

Carlo Adam

Justin Doe

Liam Baird

Mike Tan

John Davis


//Expected output:

You entered the following names:

Carlo Adam

Justin Doe

Liam Baird

Mike Tan

John Davis

Congratulations!


Use three functionsto perform the following tasks:



modify should modifythe values of fnum and snum as stated.



-Modify the contents by multiplying the original values by 10. The function



-Display the new value to the user. The function displayshould print to the



local variables fnumand snum.



-Accept two integers from user. A functioncaptureshould do this using its



user the new values of fnum and snum variables.

Use a single-subscripted array to solve the following problem. A company pays its salespeople on  a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for  that week. For example, a salesperson who grosses $3000 in sales in a week receives $200 plus 9  percent of $3000, or a total of $470. Write a C program (using an array of counters) that determines  how many of the salespeople earned salaries in each of the following ranges (assume that each  salesperson’s salary is truncated to an integer amount): 

a) $200–299 

b) $300–399 

c) $400–499 

d) $500–599 

e) $600–699 

f) $700–799 

g) $800–899 

h) $900–999 

i) $1000 and over 




Write a c++ program that emulates basics calculator function.





The input should be two int numbers, taken from the user i.e cin.





The output should be number of data type int.





A third decision variable should be of char type.





This should also come from the user.





Use if-block to check the decision char variables and decide upon the mathematical operation(+, -, *,/, %)





Divide by zero should not be allowed for divide and modulus operator.





Check for result for overflow and underflow

Use three functionsto perform the following tasks:



modify should modifythe values of fnum and snum as stated.



-Modify the contents by multiplying the original values by 10. The function



-Display the new value to the user. The function displayshould print to the



local variables fnumand snum.



-Accept two integers from user. A functioncaptureshould do this using its



user the new values of fnum and snum variables

Amjad reached Emporium with his family. They are all excited since he successfully passed his test for BSCS admission and now, they are here to celebrate. All the family members are interested in watching the movie while having popcorn. You must ask Amjad the number of people with him. Emporium Cinema is offering different type of tickets for the film: [Student (S) 250, Normal (N) 400, and Executive (E) 750]. Any choice other than mentioned is considered as invalid input. Ask them what ticket choice will they prefer. Before the start of the film, all the family members decide to have popcorn also. Popcorn stall is offering three different flavors. [Simple (S) 100, Tacos (T) 150, and Caramel (C) 200]. Any choice other than mentioned is considered as invalid input. Ask them what popcorn choice will they prefer.


Calculate and print the amount used for the film and popcorn separately and the total expense at the end. Your solution should show proper menu-based system.

LATEST TUTORIALS
APPROVED BY CLIENTS