Thread: Desperate Help needed

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    6

    Exclamation Desperate Help needed

    Hi, I am in desperate help of creating a program for c++. I have tried doing it myself, but with no success. This is for my comp programing class, i tried to get some help at school but i always seemed to miss the "so called" tutor. The link is here where the assignment is http://webhost.bridgew.edu/pavlicek/cs101mwf/s05p1.htm

    If anyone could help me out and show me how you do this program it would be greatly appreciated.

    Thank

  2. #2
    Handy Andy andyhunter's Avatar
    Join Date
    Dec 2004
    Posts
    540
    Sure why don't you start by showing us what you have done so far. In case you missed it here is the Homework Policy

    This means we will gladly point you in the right direction and help you along the way however noone is going to just write it for you.
    i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced

    It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah

    Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem

  3. #3
    Registered User
    Join Date
    Feb 2005
    Posts
    6
    #include<iostream>


    int main ()
    {




    double saleprice, subtotal, tax, total;
    int y, n;
    char response s, m, l;
    #include <iomanip>

    cout << "Today we are having a Buy two, get one free sale on our popular line of
    widgets.\n";
    cout << "Would you like to buy some widgets today.\n";
    cin >> response;

    if (response == 'y') || (response == 'Y')
    cout << "Would you like the small widgets ($3.95), the medium widgets ($5.95) or
    the large widgets ($8.95)?\n";
    cin >> response;

  4. #4
    Registered User
    Join Date
    Feb 2005
    Posts
    6
    im not sure where to go after this, how do i actually incorperate the prices in?

  5. #5
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    read http://cboard.cprogramming.com/showthread.php?t=13473
    Extend your code a little bit into the problem area if you can.

  6. #6
    Registered User
    Join Date
    Feb 2005
    Posts
    6
    #include<iostream>


    int main ()

    {

    double saleprice, subtotal, tax, total;

    int y, n;

    char response s, m, l;

    #include <iomanip>

    cout << "Today we are having a Buy two, get one free sale on our popular line of
    widgets.\n";

    cout << "Would you like to buy some widgets today.\n";

    cin >> response;

    if (response == 'y') || (response == 'Y')

    cout << "Would you like the small widgets ($3.95), the medium widgets ($5.95) or
    the large widgets ($8.95)?\n";

    cin >> response;

  7. #7
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    You just ignored both things I said in my post...

  8. #8
    Registered User
    Join Date
    Feb 2005
    Posts
    6
    Im sorry, im new to this all and it is overwhelming

  9. #9
    Registered User
    Join Date
    Feb 2005
    Posts
    6
    i do not know where do go from here, thats why i stopped

  10. #10
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    i do not know where do go from here, thats why i stopped
    You need to take more time to learn the material.
    http://www.cprogramming.com/tutorial/
    Merely reading the first 2 things should be enough to complete your program. If you come back after doing that and have a specific question, then I'll be happy to help.

    [try 2]
    read http://cboard.cprogramming.com/showthread.php?t=13473 please
    [/try 2]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Desperate help needed. C++ Uni Assignment.
    By ILLaViTaR in forum C++ Programming
    Replies: 9
    Last Post: 04-13-2009, 01:30 PM
  2. C Programmers needed for Direct Hire positions
    By canefan in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 09-24-2008, 11:55 AM
  3. desperate help needed
    By kiz in forum C Programming
    Replies: 1
    Last Post: 10-22-2007, 09:31 AM
  4. C++ help needed
    By Enkindu in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 08-31-2004, 11:24 PM