# C++ Complier

• 09-17-2010
ebonie10
C++ Complier
I need help with this ?

The East Cost sale division of a company generates 62 percent of total sales. Based on that percentage, write a program that will predict how much the East Coast division will generate if the company has \$4.6 million in sales this year. Display the result on the screen.
• 09-17-2010
Salem
So what?
C Board - Announcements in Forum : C++ Programming

Make an effort or just drop the course now and find something else to do.

Because this is about as easy as it gets, and if you're already scouting for free homework on a plate this early in the course, then you're just going to fail.
• 09-17-2010
ebonie10
thx really not looking for answer just help on how to start i know how to create program didn't know if i need to use Modulus
• 09-17-2010
alizzle
This is a very simple assignment. I just started programming 3 weeks ago and can already tell you how to make it in 10 minutes.

The best way to design a program is to write out the algorithm you wish to solve.

Problem: Find profit_kept when the company only keeps 68% of total sales
Step by step solutions:
Step 1: Find out total_sales from the user (hint: cin!)
Step 2: Find out how much of total_sales is profit_kept (hint: you'll need to be able to display 2 decimal points!)
a. y = x * 0.68
Step 3: Let the user know how much profit is kept (hint: cout!)

If you read between the lines, you'll notice i gave you 2 good suggestions for your variables' names, the type of variable declaration you should use, and even how it should be done.

Post up your code that you write, and I'll proof it for you.... Again, I won't give you the answers but I'll point you in the right direction.

Side note: Let me summarize the forum rules for ya....This forum is not a "do my homework for me" forum. You should take your education seriously, after all, you pay for it! Now if you get stuck, this is where you seek advice. The reason I'm leading you to the answer rather than flat out giving it to you is because that is the best way to learn. Hell, if I told you HOW to work out a math problem and you understood (granted it wasn't basic addition/subtraction/multiplication/division), do you think you would be able to score a 100% on a 50 question test, right after I taught you, on the same material? I'd put my money on probably not!

Practice, Practice, Practice!!!

Good luck, I'll be checking back to see if you throw up some code! :)
• 09-17-2010
ebonie10
Thx,, Sorry this is my first assignment online course... but in between work I am writing a program and I will post it thanks....
• 09-17-2010
alizzle
Quote:

Originally Posted by ebonie10
Thx,, Sorry this is my first assignment online course... but in between work I am writing a program and I will post it thanks....

No need for apologies! You may find Salem's response a little rude, but understand regular gurus like him see posts like this daily, and just like you find a skipping cd irritating on the ears, Salem finds posts like this irritating to all senses of his/her being! LOL

Make sure when you post your code, you use the forum function for code so it's actually legible (i.e. type [.code] paste all your code, then cap it off with [./code]

Obviously, remove the 'periods' i inserted before code for the function to work (if i didn't include them, they would put what i just wrote in the following format:

Code:

``` See how pretty it looks           and                 I  can format it                       anyway  I please!```
Again, best of luck to you!