Problem

This is a discussion on Problem within the C++ Programming forums, part of the General Programming Boards category; hi can anyway help me with this,help me make a program iam noob with tc ty! this: A bicycle salesperson ...

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    3

    Unhappy Problem

    hi can anyway help me with this,help me make a program iam noob with tc ty!
    this:
    A bicycle salesperson is offered a choice of wage plans: (1) a straight salary of $300 per week; (2) $3.50 per hour for 40 hours plus a 10% commission on sales; (3) a straight 15% commission on sales with no other salary. Write a program that takes as input the salespersons expected weekly sales and outputs the wages paid under each plan as well as announcing the best-paying plan.

    Sample Layout 1

    Plan [1]: A straight salary of $300
    Plan [2]: $3.50 per hour for 40 hrs plus 10% commission on sales
    Plan [3]: A straight 15% commission on sales with no other salary

    Input weekly sales : $500

    Your salary in plan 1 is $300
    Your salary in plan 2 is $190
    Your salary in plan 1 is $75

    The best paying plan is PLAN 1

    Sample Layout 2

    Plan [1]: A straight salary of $300
    Plan [2]: $3.50 per hour for 40 hrs plus 10% commission on sales
    Plan [3]: A straight15% commission on sales with no other salary

    Input weekly sales : $3000

    Your salary in plan 1 is $300
    Your salary in plan 2 is $440
    Your salary in plan 3 is $450

    The best paying plan is PLAN 3

    MPM10

    Write a program to compute the interest due, total amount due, and the minimum payment for a revolving credit account. The program accepts the account balance as input and then adds on the interest to get the total amount due. The rate schedules are as follows: The interest is 1.5% on the first $1,000 and 1% on any amount over that. The minimum payment is the total amount due if that amount is $10 or less; otherwise, it is $10 or 10% of the total amount owed, whichever is larger.


    Sample layout 1

    Enter account balance: $5000
    Interest: $55
    Total amount Due: $5055

    The minimum payment: $505.50

    Sample layout

    Enter account balance: $8
    Interest: $0.12
    Total amount Due: $8.12

    The minimum payment: $8.12
    MPM11

    Writes a program that reads in the radius of a circle and then outputs one of the following depending on what the user requests; circumference of the circle, area of the circle; or diameter of the circle.
    Formula: A = ∏ r 2
    D = 2r
    C = 2 ∏ r


    Sample Layout 1

    Enter radius of Circle: 5

    User Request
    [ 1 ] : Compute the Area
    [ 2 ] : Compute the Diameter
    [ 3 ] : Compute the circumference
    Enter your choice: 1

    The area is 78.54

    Sample Layout 2

    Enter radius of Circle: 5

    User Request
    [ 1 ] : Compute the Area
    [ 2 ] : Compute the Diameter
    [ 3 ] : Compute the circumference
    Enter your choice: 2

    The DIAMETER is 10.00
    .Ty for any help'

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,767
    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
    Aug 2009
    Posts
    3
    ok,but can u give me a concrete example?even a lil will help tnx!

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    2,545
    Quote Originally Posted by gtfoh143 View Post
    ok,but can u give me a concrete example?even a lil will help tnx!
    show us what you've tried, and then we'll be happy to help you where you need it. at this point the only help you're entitled to is how to ask questions the smart way

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,767
    Start with something simple

    cout << "Enter Salary" ;
    cin >> salary;
    cout << "You entered " << salary;

    Add a few lines, compile, test, and repeat.
    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.

  6. #6
    Registered User Sharke's Avatar
    Join Date
    Jun 2008
    Location
    NYC
    Posts
    303
    iam noob with tc ty!
    I would suggest classes in basic English first.

  7. #7
    Registered User
    Join Date
    Aug 2009
    Posts
    3

    Thumbs down

    Quote Originally Posted by Sharke View Post
    I would suggest classes in basic English first.
    oh really! maybe i would suggest you to shut the ........ up ok! i don't need your opinion!
    you're foetid person.

  8. #8
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,767
    > i don't need your opinion!
    If you want to remain on this forum, you need to wise up and respect the local rules.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 05:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 09:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 03:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 07:54 PM

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