Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write a c++ code for my pseudo code. I am take a class that is teaching me flow charts and pseudocode and I would

Please write a c++ code for my pseudo code. I am take a class that is teaching me flow charts and pseudocode and I would like to see the actual code so that I can start preparing myself for next semesters classes.

Here is the pseudo cod:

// Global constants for property tax

Constant Real ASSESS_PERCENT = 0.6

Constant Real PROPERTY_TAX_PERCENT = 0.0064

// main module

Module main()

// Local variables

Declare Real actualValue, assessValue, propertyTax

// Get the actual value

Call getActual(actualValue)

// Calculate the assessed value

Call setAssess(actualValue, assessValue)

// Calculate the property tax

Call setPropertyTax(assessValue, propertyTax)

// Display information about property tax

Call showPropertyTax(assessValue, propertyTax)

End Module

// The getActual module gets actual value and stores it

// in the actualValue reference variable.

Module getActual (Real Ref actualValue)

Display Enter the actual value.

Input actualValue

End Module

// The setAssess module sets the assessed value and stores it

// in the assessValue reference variable.

Module setAssess (Real actualValue, Ref assessValue)

Set assessValue = actualValue * ASSESS_PERCENT

End Module

// The setPropertyTax module sets the property tax value and stores it

// in the propertyTax reference variable.

Module setPropertyTax (Real assessValue, Ref propertyTax)

Set propertyTax = assessValue * PROPERTY_TAX_PERCENT

End Module

// The showPropertyTax module accepts assessValue, propertyTax

// as arguments and displays the transaction information.

Module showPropertyTax (Real assessValue, propertyTax)

Display "Assessed Value: $", assessValue

Display "Property Tax: $", propertyTax

End Module

Thanks

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

Students also viewed these Databases questions

Question

Use the general approach to problem-solving groups.

Answered: 1 week ago

Question

2. Define identity.

Answered: 1 week ago

Question

1. Identify three communication approaches to identity.

Answered: 1 week ago

Question

4. Describe phases of majority identity development.

Answered: 1 week ago