15,668,735 members
See more:
`A construction company determines its charges as a percentage of the cost of a building. The charges are made up as follows: 10% of the first \$10 000.00 of the cost of a building and 5% on the remainder if the remainder is less than or equal to \$100 000.00 or 3% on the remainder if the remainder is more than \$100 000.00. Write a program to accept the estimated cost of a building and calculate and display the fee the company would charge.`

What I have tried:

I haven't tried anything because im lost
Posted
Updated 3-Mar-23 12:48pm
jeron1 3-Mar-23 10:44am
Sounds as though you need to talk to your instructor.
Gerry Schmitz 3-Mar-23 10:44am
Pretend it's a (high school) math question. Work it out on paper ... then start thinking about programming it.
Dave Kreskowiak 3-Mar-23 13:16pm
Get a code for this in c. Im new and don't know anything about programming

Then explain how you caught this assignment.

## Solution 1

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]

## Solution 2

Quote:
Im new and don't know anything about programming
Then is time to get a bit older and learning about. See, for instance
Basic Input and Output in C - GeeksforGeeks[^].
Arithmetic Operators in C - GeeksforGeeks[^].

## Solution 3

Quote:
I haven't tried anything because im lost

The question for me is why this is so. The task is really simple and it should be solvable even for absolute beginners. If you start from a "Hello World" program, which is probably presented first in every beginner's book or tutorial, this should also be usable here as a basis.

After that it would make sense to read the task and to think about a sequence for the single steps.

Simply programming on the fly would certainly not be the right strategy. Writing down the steps in the right order should always be done first on a piece of paper or a simple text file. It is best to write down one line for each small step, which you can also leave directly as a comment in the program.

Obviously, the first step is to enter the estimated building costs.