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

Convert the expression into postfix notation and then verify if it is correct or not,direct answers for both 5conversion are not allowed for verification take dummy values for eachvariable.


a+b*(c/d-e)%(f+g*h)-i


Note:

1)No code is required.


Enter item price: 500
Price of item: R500.0
Final price of item: R475.0
Press any key to continue...
Enter item price: 1500
Price of item: R1500.0
Final price of item: R1425.0
Press any key to continue...
Enter item price: 100
Price of item: R100.0
Final price of item: R100.0

Convert the follwoing expressio to postfix notation. Show the state of stack and expression after each step.

( ( 2 * ( 6 + 3 ) ) / ( 4 - 6 + 4 ) ) / 5

Note:

1)no code is required.


Convert the given postfix expression into equivalent infix expression.Show all steps ,no marks will be given for direct answer.

a b + c -d e * /


Suppose that items A, B, C, D and E are pushed in the order, onto an initially empty stack S. S is then popped 4 times; as each item is popped of, it is inserted to an initially empty queue. If two items are then removed from the queue, what is the next item that will be removed from the queue?

NOTE:
Your rough work should b with the answer
Write pseudocode to represent the logic of the following program:
• The program allows the user to enter three values.
• The values represent hourly pay rate, the number of hours worked
this pay period, and percentage of gross salary that is withheld.
• The program multiplies the hourly pay rate by the number of hours
worked, giving the gross pay.
• Then, it multiplies the gross pay by the withholding percentage,
giving the with- holding amount.
• Finally, it subtracts the withholding amount from the gross pay,
giving the net pay after taxes.
• The program outputs the net pay.

An array list is one of the most important data structures used in many applications


Create a C++ Program that will identify the Discount Rate of a shopper based on issued loyalty card, take the following conditions:

Loyalty Card TypeDiscount (%)(1) Frequent Buyer10%(2) One Time Buyer0%(3) Senior Citizen15%



Write a program that will create 2 two-dimensional arrays then compares the content of each array location.. The program should create a third 2-dimensional array that displays the result of the comparison as either less than (<), greater than (>) or equal n(=).




Write a program that will enter integers into the array then search for an element inside the array. The program should tell the location where the element was found. The user will be the one to determine the number of integers to be entered into the array.


LATEST TUTORIALS
APPROVED BY CLIENTS