![]() |
|
#1
|
|||
|
|||
Need help on simple Programming ProjectI just got transfered into this class and it seems as though I have an assignment due at 11p.m. tonight I have to email my teacher for make up. I have no idea how to do this because I have not gotten an example or anything. Sorry to post this here but I am just desperate for some help so I don't make a fool out of myself in front of my teacher. This is not meant to be in any special code or anything, just simple solving to build tactics in programming. I am not asking anyone to do this for me, but simply some help on how to do this.. perhaps an example. Thanks.
The Problem: Write an algorithmic solution to the problem of finding the largest number out of three numbers. List the specific steps that would enable another person to find the largest among three numbers presented. Make sure that you desk-check your solution and verify that it works. It must include an IPO chart, and assumptions whatever that means... |
|||
|
#2
|
|||
|
|||
|
Quote:
I can give you some clue on how your algorithm should look like Lets say i have 3 nos a,b & c. Lets assume a variable "max" that hold the largest no. now the program should look like if (a>b) then max=a else max=b if (max>c) then (print max and exit we have got largest number) else max=c (now C is the lagest among the three.Print c) if you want C program it looks like this CPP / C++ / C Code:
Thanks, |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 16:41 |
| Beginning C Programming | ToyMachine22122 | C Programming Language | 7 | 30-May-2004 11:07 |
| Help with project. | anignna | C Programming Language | 12 | 27-Apr-2004 08:51 |
| Anyone need a PHP project done? | geedubya15 | New Member Introductions | 2 | 25-Jun-2003 12:29 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The