|
||||||
| C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hello.. i'm a new learner of program
My teacher wan me to write a pseudocode ( C program ) but i donno how to do.. =.= Can any1 help me solve this please... The question is Write a C program tat creates customers' bills for a carpet company when the following information is given: Length of the carpet in meter Width of the carpet in meter Percentage of discount The carpet price and labour cost are fixed at RM8.20 and RM2.50 per square meter respectively. They are to be defined as constant . The input data consist of a set of three floating point data. The program will display the following information ( formulas of calculation are shown in brackets ) to a user: Area ( length * width ) Total carpet price ( area * carpet price ) Total labour cost ( area * labour cost ) Total charges ( total carpet price + total labour cost ) Discount ( total charges * percent of discount/100 ) Payment ( total charges - discount ) These is the question.. i juz learn few thin bout c program but teacher gives me a so difficult de work... help me!!! ![]() ![]() |
| Sponsored Links |
|
|
|
|||
|
Yeah your teacher gave you a real difficult program, lol. You can even do it in psuedo-code, how is that hard at all? Anyways, why do people insist on coming to forums and asking people to do their computer science assignments for them. You are taking the class, so I would think you'd want to learn and understand how this 'stuff' works. So why ask other people to do your assignmen for you? Go read some documentation, read some source code, and then come back with a specific problem about something you don't understand.
|
|
|||
|
Do you at least know how to use printf and scanf? We can start from there.
|
|
|||
|
The assignment says "write a C program", so that's why I asked if BabyAlice knew how to use printf and scanf.
|
| Sponsored Links |
|
|
|
|||||
|
a psedo C program is what he says right in the intro, so as long as the method of doing it is the same. such as if you were doing one for C++ it would use pointers were as if you did one for C# you would not. So he does not need the acaul synax just the methodology behined the language
__________________
"I would love to change the world ...... but they won't give me the sorce code"
|
|
|||
|
Well, BabyAlice, you seem to have all the formulas down, so you shouldn't have too much of a problem. What do you have so far?
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Do you like to solve programming problems? | Rhiever | General Programming | 1 | 03-21-2008 09:53 AM |
| Can Computers solve logic Puzzles | yarimay2007 | General Programming | 2 | 11-02-2007 12:01 AM |
| Scientists Solve Checkers | Kernel | Programming News | 3 | 08-28-2007 03:08 PM |
| can you solve this problem with java | kadriatil | Java Help | 6 | 05-29-2007 09:17 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |