C++ Complier

This is a discussion on C++ Complier within the C++ Programming forums, part of the General Programming Boards category; I need help with this ? The East Cost sale division of a company generates 62 percent of total sales. ...

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    3

    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.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,855
    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.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    3
    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

  4. #4
    Registered User
    Join Date
    Sep 2010
    Posts
    8

    Wink

    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.

    In your case:

    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!
    Last edited by alizzle; 09-17-2010 at 02:27 PM.

  5. #5
    Registered User
    Join Date
    Sep 2010
    Posts
    3
    Thx,, Sorry this is my first assignment online course... but in between work I am writing a program and I will post it thanks....

  6. #6
    Registered User
    Join Date
    Sep 2010
    Posts
    8
    Quote Originally Posted by ebonie10 View Post
    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!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Borland C++ Complier Error Missing cox32.obj
    By Bill Agnor in forum C++ Programming
    Replies: 1
    Last Post: 05-04-2010, 01:18 PM
  2. DOS C complier.
    By curious in forum C Programming
    Replies: 15
    Last Post: 06-23-2008, 12:50 AM
  3. Which complier?
    By sreenadh in forum C++ Programming
    Replies: 6
    Last Post: 03-18-2006, 02:56 AM
  4. complier with bios.h
    By neuflex in forum C Programming
    Replies: 6
    Last Post: 03-08-2005, 07:27 AM
  5. complier design
    By condorx in forum C Programming
    Replies: 1
    Last Post: 04-06-2002, 09:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21