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

After the success of Doctor Strange in the Multiverse of Madness UCP movie club decided to display this movie on a bigger screen in UCP auditorium. But you have to buy a ticket for the show. Following are the rates of tickets:

Type of Ticket (1, 2, 3) Price Tax

Student= 100 and 17%tax

Faculty= 200 and 17%tax

Staff= 150 and 17%tax

Write a C++ program in which, ask user about how many tickets they want to buy? And which type of ticket they want to buy. Calculate total bill and display it on console.



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

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS