User Profile

Collapse

Profile Sidebar

Collapse
audiokarate
audiokarate
Last Activity: Feb 5 '08, 06:53 AM
Joined: Sep 6 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • audiokarate
    started a topic Business problem
    in C

    Business problem

    Well here is my program. I'm new to C++ and new to this forum. Hopefully someone can tell me how to get over this hurdle. I need to use a for loop to change the years to year 1, year 2 etc. My problem is that I need to output the estimated and adjusted salary also for each year. I am stuck! Whenever I run it like this, the years change however it only outputs the estimated and adjusted for year 1. Help??


    Code:
    #include <iostream>
    ...
    See more | Go to post

  • audiokarate
    started a topic class interface or enum expected???
    in Java

    class interface or enum expected???

    I have like atleast 15 errors that say class, interface, or enum expected and I have no idea what that means. Can someone tell me what it is and how I might be able to fix it?
    Thank you.

    - Manny

    *Program Purpose: This program processes the results for the 2008 Democratic and/or Republican presidential
    primary elections.


    Code:
    import staugIO.StaugIO;
    public
    ...
    See more | Go to post

  • audiokarate
    replied to Ice Cream Problem
    in C
    I am having trouble coming up with and placing the calculations for the Sales report on the bottom of the program. Help?


    Code:
    #include <iostream>
    #include <iomanip>
    using namespace std; 
    
    
    int main()
    {
    	
    	cout <<setprecision(2)
    		<<setiosflags(ios::fixed)
    		<<setiosflags(ios::showpoint);
    	
    	
    	char choice,
    ...
    See more | Go to post

    Leave a comment:


  • audiokarate
    replied to Ice Cream Problem
    in C
    the variables orderC etc are for tracking inventory. The numbers next to it is the amount of ice cream I have in stock. She wants to track it and display how much ice cream is left and display if there is no more in stock. Just so you know. At the end I have to display a sales report showing SOLD, IN STOCK, NEEDED, SALES and PROFIT. The calculations go after the loop correct?
    See more | Go to post

    Leave a comment:


  • audiokarate
    replied to Ice Cream Problem
    in C
    Code:
    #include <iostream>
    #include <iomanip>
    using namespace std; 
    
    
    int main()
    {
    	
    	cout <<setprecision(2)
    		<<setiosflags(ios::fixed)
    		<<setiosflags(ios::showpoint);
    	
    	
    	char choice,  
    		stop;
    
    	double choco_D = 0.50,
    			van_S = 0.50,
    			straw_B = 0.65;
    
    	double orderC = 40;
    ...
    See more | Go to post

    Leave a comment:


  • audiokarate
    replied to Ice Cream Problem
    in C
    yes that makes so much sense now. However now when I prompt the user

    Code:
    cout << "\n\nWould you like to process another transaction (Y/Z)?: ";
    	cin >> stop;
    	cout << "\n\n";
    	}
    	while(stop != 'Z');
    it won't stop iterating when I type 'Z'. It just iterates again.
    See more | Go to post

    Leave a comment:


  • audiokarate
    replied to Ice Cream Problem
    in C
    Code:
    while( choice != C || V || S)
    cin >> choice;
    like that?
    See more | Go to post

    Leave a comment:


  • audiokarate
    replied to Ice Cream Problem
    in C
    yah, thats my problem. I have no idea how to do that. Nested loop? if statement?
    See more | Go to post

    Leave a comment:


  • audiokarate
    replied to Ice Cream Problem
    in C
    Yah thanks, that helped. However whenever I perform another transaction and the user enters an invalid choice, the user is then prompted to enter a correct choice. When the user does so, it goes straight to asking if I want to perform another transaction. How do I get it to iterate again?
    See more | Go to post

    Leave a comment:


  • audiokarate
    started a topic Ice Cream Problem
    in C

    Ice Cream Problem

    Hey everyone, Ok, this problem is giving me some trouble. I got it to iterate but I want it to generate an error message if a user types in an incorrect choice. I got the error message down however I think something may wrong with my do-while loop. It wont execute properly. Whenever I want to perform another transaction, my error message pops up. Any help will be appreciated.






    [CODE=cpp]#include...
    See more | Go to post

  • audiokarate
    started a topic Java hw Create a Poll
    in Java

    Java hw Create a Poll

    Alright this is my hw problem. I am a newb with java and I am having a hard time coding. This is the problem and at the bottom is what I have so far. Any pointers in the right direction is greatly appreciated.



    When launched, your program will allow multiple voters to pick the presidential candidate of their choice. The program will tally the votes and determine which one is the winner. Note that output to the screen...
    See more | Go to post

  • audiokarate
    replied to Business HW problem C++
    in C
    yah man..thanks helped out alot....
    See more | Go to post

    Leave a comment:


  • audiokarate
    replied to Business HW problem C++
    in C
    Alright so this is what I have so far. Now all I have to do is to output a customer report for example:

    Base charge: $12.95
    Local call charge: (value will be based on user’s input)
    Long distance charge: (value will be based on user’s input)
    Total Bill: (value will be based on user’s input)

    This has got to show at the bottom after the bill is calculated and I am having trouble with it. I just...
    See more | Go to post
    Last edited by sicarie; Sep 13 '07, 12:28 PM. Reason: Code tags

    Leave a comment:


  • audiokarate
    replied to Business HW problem C++
    in C
    This is what I have so far and I'm not sure if it's correct either.
    [code=cpp]
    #include <iostream>
    #include <iomanip>
    using namespace std;

    void main ()
    {

    Const double BASE_CHARGE_PER _MONTH = 12.95;
    Const double RATE_LOCAL_CALL S = 0.10;
    Const double TAX_RATE = 8.72;
    [/code]
    and thats it?
    See more | Go to post

    Leave a comment:


  • audiokarate
    replied to Business HW problem C++
    in C
    finding the variables..I already know the constants
    See more | Go to post

    Leave a comment:


  • audiokarate
    started a topic Business HW problem C++
    in C

    Business HW problem C++

    Hey everyone. I have this homework problem for my IS class and I am having trouble finding the variables and the next step after that. Can someone please help me out? This is the problem.

    Write a program to compute telephone bills for the local telephone company. Each customer has a base charge of $12.95 per month and gets charged extra for each local call and each long-distance call. The program should prompt the user for the number...
    See more | Go to post
No activity results to display
Show More
Working...