View Full Version : I need help with Pseudocodes!

01-17-2005, 10:33 PM
1) Write a program that will accept an employee's total sales, her commission rate and calculate and display her salary

2) CAU Grocers would like for you to compute the unit price for products sold there. THe program should accept the product code, price, and weight in 0z. the unit price per Oz should be displayed.

Write a program that will calculate the monthly payment for a car owner. The program will accept the loan amount (L) the APR(R), and the # of monthly payments (N)

01-17-2005, 10:45 PM
Sorry but you need to do your homework yourself. We will not do it for you here at CodingForums.

01-18-2005, 03:29 AM
I really need help

01-18-2005, 03:51 AM
Well you can ask specific questions and we can guide you in the right direction but we will not do the work for you. Just posting the problems and saying help is not specific enough. The first place you should go though is to ask your teacher for help. That is what they are there for.

01-18-2005, 04:06 AM
I dont know how to start the procedure, if you could just guide me that would be great

01-18-2005, 04:16 AM
Since this is in "server side issues", I'll assume that you are using a server-side language of some kind and your input will come from HTML forms and your output will be in HTML format.

What you'll need to know:
- How to create HTML forms
- How to process HTML forms in your server-side language
- How to output HTML in your server-side language

That should be enough of a start without actually doing any of your homework for you. Honestly, this is a pretty simple task for any server-side language, esp. if you don't actually have to store any data anyway.

01-18-2005, 04:24 AM
The problem is this, the information is very new to me. I'm a freshman in college and I have never heard of pseudocodes. I just know I must use pseudocode language like end,if,while,etc.

01-18-2005, 04:47 AM
pseudocode (http://dictionary.reference.com/search?q=pseudocode) != control structures (http://dictionary.reference.com/search?q=control%20structure)

don't read too much into that control structures link, I was trying to make a point ;)

Control Structures in PHP (http://www.developer.com/lang/php/article.php/947911)
Control Structures in ASP (http://www.raritanval.edu/departments/cis/full-time/Schwarz/asp/aspch5.htm)
Control Structures in Java (http://www.cs.rit.edu/~afb/20012/cs1/slides/javacontrol.html)
Control Structures in PERL (http://www.unix.org.ua/orelly/perl/prog3/ch01_06.htm)

I found them all randomly on google searches, but they should contain the information you need on control structures for whatever server-side programming language you're learning

01-18-2005, 05:24 AM
Maybe you first need to understand what pseudocode is. Pseudocode is really a barebones rough draft of a program written pretty much in plain english. It is sort of a blueprint on how to write the actual program without acutally using any programming language. There is no standard pseudocode syntax or anything like that. Here is an acutal definition of the term


Basically you solve the problems in plain english before you apply any programming language syntax.

01-18-2005, 02:46 PM
That really doesn't help me at all. I just need someone to help me start the programming for each problem

01-18-2005, 05:32 PM
It sounds to me like you need someone to talk to about it ... any fellow students, teachers or anyone else at the college you can ask for help?

01-18-2005, 08:04 PM
I'll "help" a little on the first one...

1) Write a program that will accept an employee's total sales, her commission rate and calculate and display her salary

Look at the problem. You have several tasks here that you need to program. In fact, I see three.

1) Read input from the user
2) Calculate the result
3) Display the result.

1 and 3 should be in your text book (it varies depending on how you're going to read and present data - web page perhaps???).

Number 2 boils down to creating an algorithm and logic to correctly display the desired result. I can't help you beyond that because, a) I don't know what the how the salaries are calculated and b) you should have more than enough to figure this out if you're a college freshman. It's simple logic after that point.

01-18-2005, 08:53 PM
Thank You very much! That really helps.