Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Help with Fake Code homework


Recommended Posts

We have only been taught some very bare basics like variables and modules. We have not yet been taught how to actual write and run a program yet.

I was hoping someone here with programming knowledge would look at this and tell me what they think.

Property Tax

It is suppose to make use of modules, ask the user for actual value of land, and call a module to calculate assessment value, and display the result, then call another module to calculate the property tax and display that result. 

How does this look to you guys?


Module main()
Declare Real actualValue1
Display "Enter actual value of land."
Input actualValue1
Declare Real assessmentValues
Call getAssessmentValue (actualValue1)
Declare Real propertyTaxation
Call PropertyTaxation (assessmentValues)
End Module

Module PropertyTaxation(Real assessmentValues)
Declare Real propertyTaxation
Set propertyTax = (assessmentValues / 100) * 0.64
Display "Property tax is:", propertyTaxation
End Module  

Module getAssessmentValue(Real value)
Set assessmentValues = value * 0.60
Display "Assessment value is:", assessmentValues
End Module

Link to comment
Share on other sites

This was just 1 part of three parts I had to turn in. 

There was an error found ( my professor made a program to read pseudocode and check it for errors lol) 

The program found that I forgot to declare assessmentValues ( this is so great I actually understand what that means! Before this class I had no idea about anything with programming.) 

Combining all three parts of the assignment, I made a A, but just barely.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...