Lost Password?


Go Back   CodeCall Programming Forum > Software Development > C and C++

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.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-12-2008, 09:16 PM
BabyAlice BabyAlice is offline
Newbie
 
Join Date: Jul 2008
Posts: 3
Rep Power: 0
BabyAlice is on a distinguished road
Unhappy Help me solve it please.. i'm new

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!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 07-12-2008, 09:42 PM
MeTh0Dz MeTh0Dz is offline
SLICE OWNZ YOUR SOUL
 
Join Date: May 2008
Posts: 294
Last Blog:
Ternary Operator CPP
Rep Power: 0
MeTh0Dz has a spectacular aura aboutMeTh0Dz has a spectacular aura aboutMeTh0Dz has a spectacular aura about
Default Re: Help me solve it please.. i'm new

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-12-2008, 10:51 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 793
Last Blog:
Programs Under the Hoo...
Rep Power: 13
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: Help me solve it please.. i'm new

Do you at least know how to use printf and scanf? We can start from there.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-13-2008, 02:10 AM
zeroradius's Avatar   
zeroradius zeroradius is offline
Programming Professional
 
Join Date: Feb 2008
Location: Ohio
Posts: 311
Rep Power: 5
zeroradius will become famous soon enough
Send a message via AIM to zeroradius Send a message via Yahoo to zeroradius
Default Re: Help me solve it please.. i'm new

pseudocode means fake code. You don't acualy need to know how to do the C code for this. you just kinda make somthing up. for example if you are planning to do a small program that checks to see if a variable named login is yes, and if it is you would go to a function called profile. you would just do somthing kinda like this.

Code:
Housekeeping()
main(
if login = 'yes' then goto profile() 
else 
   goto sorrynotcorrect()
)
Because this is for school I won't answer the question for you (if you had attempted it and were having problems and had asked about a specific problem we could answer you better but we can not do your home work for you it is un-ethical
__________________
"I would love to change the world ...... but they won't give me the sorce code"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-13-2008, 10:02 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 793
Last Blog:
Programs Under the Hoo...
Rep Power: 13
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: Help me solve it please.. i'm new

The assignment says "write a C program", so that's why I asked if BabyAlice knew how to use printf and scanf.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 07-14-2008, 12:00 AM
zeroradius's Avatar   
zeroradius zeroradius is offline
Programming Professional
 
Join Date: Feb 2008
Location: Ohio
Posts: 311
Rep Power: 5
zeroradius will become famous soon enough
Send a message via AIM to zeroradius Send a message via Yahoo to zeroradius
Default Re: Help me solve it please.. i'm new

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"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-14-2008, 10:31 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 793
Last Blog:
Programs Under the Hoo...
Rep Power: 13
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: Help me solve it please.. i'm new

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-15-2008, 01:52 AM
BabyAlice BabyAlice is offline
Newbie
 
Join Date: Jul 2008
Posts: 3
Rep Power: 0
BabyAlice is on a distinguished road
Default

ya. i know how to use printf and scanf.... help me solve it plzz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-15-2008, 01:53 AM
BabyAlice BabyAlice is offline
Newbie
 
Join Date: Jul 2008
Posts: 3
Rep Power: 0
BabyAlice is on a distinguished road
Default Re: Help me solve it please.. i'm new

ya. i know how to use printf and scanf.... help me solve it plzz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 07-15-2008, 09:03 AM
Oigen Oigen is offline
Learning Programmer
 
Join Date: Jul 2008
Posts: 40
Rep Power: 2
Oigen is on a distinguished road
Default Re: Help me solve it please.. i'm new

it's in pseudocode. The teacher wants to see if you can make up a good algorithm.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT -5. The time now is 11:04 AM.

Contest Stats

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

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 101%


Complete - Celebrate!

Ads