Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write C++ expressions for the following algebraic expressions: y = 5 x a =8 b +2 c y = X^2 g = y = 2.

  1. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago