CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Sabensohn70

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. outFILE setprecision and right wont work

    Hi guys, I can't seem to use setprecision, right, setw, or fixed on my outFILE lines. nothing happens. I need to get all the decimals to line up and the numbers are on the right side.

    this is my...
  2. Replies
    2
    Views
    2,640

    Re: Monthly tax program

    but now i dont know how to display the file like this..

    bash-2.04$ a.out
    Please enter the month for this report: February
    Please enter the year for this report: 2005
    Please enter the total...
  3. Replies
    2
    Views
    2,640

    Re: Monthly tax program

    oops nevermind i forgot a ; on line 15.
  4. Replies
    2
    Views
    2,640

    Monthly tax program

    Hi guys, I have to write a monthly charge program where you it asks for the user to enter the month year and income, and the program will calculate it product sales tax with the equation S=T/1.06....
  5. Replies
    21
    Views
    19,530

    Re: Bar Charts in C++?

    okay well maybe the programming world is not for me then im just a student trying to pass the class that my teacher did not teach because i asked 5/25 students in the class and the teacher did not...
  6. Replies
    21
    Views
    19,530

    Re: Bar Charts in C++?

    ..dude i am reading my textbook and it doesnt say anything about making bar charts with the for loop. if you are not going to try to help please do not answer at all okay? believe it or not there are...
  7. Replies
    4
    Views
    3,579

    Re: Bar charts with for loop?

    you weren't helping period. im reading starting out with c++ by tony gaddis in the "for statement" section and i dont see anything. Please do not reply to my thread anymore if you are not going to...
  8. Replies
    21
    Views
    19,530

    Re: Bar Charts in C++?

    im thinking for ( store1 = 0; store1 / 100; ++store1 ) ? this doesnt work
  9. Replies
    4
    Views
    3,579

    Re: Bar charts with for loop?

    the other one wasnt as descriptive...



    #include<iomanip>
    using namespace std;

    int main()
    {
    int store1, store2, store3, store4, store5;
  10. Replies
    21
    Views
    19,530

    Re: Bar Charts in C++?

    so far this is what i got..



    #include<iomanip>
    using namespace std;

    int main()
    {
    int store1, store2, store3, store4, store5;
  11. Replies
    21
    Views
    19,530

    Re: Bar Charts in C++?

    can you please just help me out? I've never learned this material before. Im suppose to make a bar chart where store1=1000, store2= 1200, store3=1800, store4= 800, store5 =1900. and each asterisk...
  12. Replies
    21
    Views
    19,530

    Re: Bar Charts in C++?

    yeah so how would i make it so the users input each represent 100 in the chart?
  13. Replies
    4
    Views
    3,579

    Bar charts with for loop?

    Hi guys, how do i make a bar chart with the for loop where each asterisk represents 100 after the user inputs the numbers?

    inputs
    store1=1000
    store2=1200
    store3=1800
    store4=800
    store5=1900
    ...
  14. Replies
    21
    Views
    19,530

    Re: Bar Charts in C++?

    how would i use the for loop for this?
  15. Replies
    21
    Views
    19,530

    Bar Charts in C++?

    Can somebody help me with making a bar chart in C++ ?

    I have to make a bar chart where each * represents 100. It should display like this after the user has inputted the cin for store sales.
    ...
  16. Replies
    8
    Views
    967

    Re: Input Validation muliples of 100?

    what i mean is how do i combine it to my code?




    while ( store1 &#37; 100 != 0 && store1 < 0 || store1 > 4000 )



    i tried that
  17. Replies
    8
    Views
    967

    Re: Input Validation muliples of 100?

    well i'ts just a simple program assignment and my teacher has already given us a set of inputs. Could you give me an example of using the modulus operator for the multiple of 100?
  18. Replies
    8
    Views
    967

    Re: Input Validation muliples of 100?

    how would the modulus operator work? isn't the function for the operator to show the remainder of a division problem
  19. Replies
    8
    Views
    967

    Input Validation muliples of 100?

    I am suppose to write a code to validate that the users input is between 0-4000 and are multiples of 100. How do i write a code to ensure that the cin is multiples of 100? So far i have



    cin >>...
  20. Replies
    6
    Views
    8,690

    Re: Shipping charges problem

    can you show me how to use break and continue in my code please?? also (distance-1/500) because for one of the inputs it is weight 5.0, distance 10 and the desired out put is 2.20.
  21. Replies
    6
    Views
    8,690

    Re: Shipping charges problem

    oh thanks, can you help me with the program termination? because right now if the weight is out of range and the distance is out of range. it will only say "We only ship packages between 10-3000...
  22. Replies
    6
    Views
    8,690

    Shipping charges problem

    Hi guys I am suppose to write a program that asks for the weight of the package and the distance it is to be shipped and then displays the charges. I pretty much got every down except i dont know...
  23. Replies
    10
    Views
    1,379

    Re: Program help please!

    that is my code so far. my question is what am i suppose to do for the "when calculating the rate, drop fractions of miles and add one for each whole or partial segment of 500 miles".

    EDIT: Oh,...
  24. Replies
    10
    Views
    1,379

    Re: Program help please!

    anybody?
  25. Re: Distance program & dropping fractions?

    i would i write this in a code for my program?
Results 1 to 25 of 38
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured