subject

Write the pseudocode to solve the following problem: Assume that each input record contains a taxpayer's name, the value of a personal property belonging to the taxpayer and a code defining the type of personal property owned.
Each type of property is taxed at a unique rate.
The codes, property taxes, and tax rates follow:
Code Property Type Tax Rate 1 Bike 2 percent of value 2 Car 4 percent of value 3 Truck 5 percent of value Complete this program using the MODULAR format.
The program should have the following sections:
declarations(MAIN module), housekeeping, detail and finish module.
In the declarations section, declare all variables that will be needed and call the housekeeping, detail and finish module. In the housekeeping section create an input of your first record (this should be all that is in this section). The detail section of your program is to compute the tax for each property and to output a line specifying the taxpayer's name, value of property and computed tax for each record. The program should output counts of the number of bikes, cars, and trucks for which taxes are computed in your finish module. Assume that a code of 0 (zero) indicates the end of the input file. To help with this, after your first INPUT of your records, in the Main module, Include an initial IF statement to check to make sure the Code is not zero. If it is zero, the program should display a message such as "No data to process", If it is not zero then the program should go to the WHILE loop to process the instructions. In your detail portion of your program, you should determine the tax of the property and create the counter for the individual properties so that you can count the number of bikes, cars and trucks and the program goes through the loop process. Output "Invalid code has been entered" as an error message if the input contains an invalid code value.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
Read this excerpt from helen keller’s autobiography, the story of my life. have you ever been at sea in a dense fog, when it seemed as if a tangible white darkness shut you in, and the great ship, tense and anxious, groped her way toward the shore with plummet and sounding-line, and you waited with beating heart for something to happen? i was like that ship before my education began, only i was without compass or sounding-line, and had no way of knowing how near the harbour was. "light! give me light! " was the wordless cry of my soul, and the light of love shone on me in that very hour. . the morning after my teacher came she led me into her room and gave me a doll. the little blind children at the perkins institution had sent it and laura bridgman had dressed it; but i did not know this until afterward. when i had played with it a little while, miss sullivan slowly spelled into my hand the word "d-o-l-l." i was at once interested in this finger play and tried to imitate it. when i finally succeeded in making the letters correctly i was flushed with childish pleasure and pride. running downstairs to my mother i held up my hand and made the letters for doll. i did not know that i was spelling a word or even that words existed; i was simply making my fingers go in monkey-like imitation. in the days that followed i learned to spell in this uncomprehending way a great many words, among them pin, hat, cup and a few verbs like sit, stand and walk. based on this excerpt, which words best describe helen keller?
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
File account.java (see previous exercise) contains a definition for a simple bank account class with methods to withdraw, deposit, get the balance and account number, and return a string representation. note that the constructor for this class creates a random account number. save this class to your directory and study it to see how it works. then write the following additional code: 1. suppose the bank wants to keep track of how many accounts exist. a. declare a private static integer variable numaccounts to hold this value. like all instance and static variables, it will be initialized (to 0, since it’s an int) automatically. b. add code to the constructor to increment this variable every time an account is created. c. add a static method getnumaccounts that returns the total number of accounts. think about why this method should be static - its information is not related to any particular account. d. file testaccounts1.java contains a simple program that creates the specified number of bank accounts then uses the getnumaccounts method to find how many accounts were created. save it to your directory, then use it to test your modified account class.
Answers: 3
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
question
Computers and Technology, 24.06.2019 08:30
Formatting rows and columns is similar to cell formatting. in an openoffice calc spreadsheet, you can format data entered into rows and columns with the of the rows and columns options. you can insert rows and columns into, or delete rows and columns from, a spreadsheet. use the insert or delete rows and columns option on the insert tab. alternatively, select the row or column where you want new rows or columns to appear, right-click, and select insert only row or only column options. you can hide or show rows and columns in a spreadsheet. use the hide or show option on the format tab. for example, to hide a row, first select the row, then choose the insert tab, then select the row option, and then select hide. alternatively, you can select the row or columns, right-click, and select the hide or show option. you can adjust the height of rows and width of columns. select row and then select the height option on the format tab. similarly, select column, then select the width option on the format tab. alternatively, you can hold the mouse on the row and column divider, and drag the double arrow to the position. you can also use the autofit option on the table tab to resize rows and columns.
Answers: 1
You know the right answer?
Write the pseudocode to solve the following problem: Assume that each input record contains a taxpa...
Questions
question
Physics, 20.07.2019 10:00
Questions on the website: 13722361