Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!