Question
Write C++ expressions for the following algebraic expressions: y = 5 x a =8 b +2 c y = X^2 g = y = 2.
- Write C++ expressions for the following algebraic expressions:
y = 5x
a =8b +2c
y = X^2
g =
y =
2. The formula for the volume of a cylinder is: volume = A=r^2h ,where is 3.14159, r is the radius of the tank and h is the height of the tank. Write the formula in C++ code.
3. Develop a pseudocode(C++) that creates a program that computes the total sales tax on a $825.81 purchase. Assume the state sales tax is 4 percent and the county sales tax is 2 percent (use the correct data types to declare state and county tax as constants). Declare the variable purchase to store purchase value $825.81. You can then use these variable in your calculations.
Total tax composed of state tax amount (purchase multiplied by state tax) and county tax amount (purchase multiplied by the county tax).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started