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