I need help with a assigment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • negrito
    New Member
    • Oct 2006
    • 13

    #16
    Originally posted by Banfa
    It looks like it's getting there.

    As pseudo code you want

    Code:
    PROMPT FOR TicketsSold
    PROMPT FOR %AdministerativeOverhead
    PROMPT FOR TotalAmountofPrizeMoneyDistributed
    PROMPT FOR SoccerTeamName
    
    REMARK Each Ticket Cost $10
    
    TotalRevenue = 10 * TicketsSold
    
    AbsoluteAdministerativeOverhead = TotalRevenue * %AdministerativeOverhead / 100
    
    Balance = TotalRevenue - (AbsoluteAdministerativeOverhead + TotalAmountofPrizeMoneyDistributed)
    
    OUTPUT SoccerTeamName
    OUTPUT TotalRevenue
    OUTPUT AbsoluteAdministerativeOverhead 
    OUTPUT TotalAmountofPrizeMoneyDistributed
    OUTPUT Balance
    PROMPT FOR is a combination of cout to print a prompt to the user followed by cin to read a value.

    OUTPUT is just a cout to output the data.
    banfa so far i got this:
    #include <iostream>
    using namespace std;
    int main()
    {
    int tickets,value;
    cout<<"Name of soccer team";
    cout<< "number of tickets sold?";
    cin>>tickets;

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #17
      Originally posted by negrito
      Hey banfa were do i get the administrative %?fot this problem
      Read your problem description, you are told to ask the user.

      Comment

      Working...