Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Basic program writing help, please?
Im in a class that is teaching me the basics of programming and I have to write a basic program using a program called raptor. Here it is.
Acme has a variety of vehicles on the lot for its big
36-month no interest, no sales tax promotion
(actually Acme will pay the sales tax). Acme needs a
program to handle a sale and determine the monthly
finance payments for the purchaser. Specifically, the
program should:
•Prompt the salesperson to input the vehicle's price,
the buyer's trade-in value (or zero if none), and the
buyer's cash down payment (could also be zero).
•Calculate the net price to the customer and the monthly
payments on the 36-month no interest finance plan.
•Generate a sales report (in currency format) that outputs
all of the data above.
My professor also wants a pseudocode, and I don't know what that is. The problem above isn't that I dont believe I'd be able to write the scripts, but I dont know what a 32 month no interest sale does and how i calculate finances etc. Can someone please help me?
1 Answer
- ?Lv 710 years ago
You can look up pseudocode online (Google) for examples. Basically, it's just a general idea/script of what your program will do, without writing any source code. Example:
Get vehicle sale price from user
Get trade in value from the user
Get buyer's cash down payment from the user
Calculate net price of vehicle
Generate Sales Report.
Often times pseudocode does not have to be any more detailed than that. (But it can be.)
The net price is the vehicle price - trade in value - down payment. Your pseudocode may or may not mention this. (It can't hurt, I suppose.)
Example: If the original price of the vehicle is $1,000 and the trade in value is $200 and the down payment is 300, the net price is $500.
Divide the net price, $500, by 36 (36 months... a three-year plan) to determine the monthly payments.
That's it. Since there is no tax and no finance charges, your calculation is very easy.
Then, simply generate the report as described.