Please help me!!!!!!!!!!!!!!1

This is a discussion on Please help me!!!!!!!!!!!!!!1 within the C++ Programming forums, part of the General Programming Boards category; can some1 please write this program for me. it is due 2morrow so plz help me out guyz. A theatre ...

  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    4

    Please help me!!!!!!!!!!!!!!1

    can some1 please write this program for me. it is due 2morrow so plz help me out guyz.

    A theatre seating chart is implemented as a two-dimensional array of ticket prices, like this:
    10 10 10 10 10 10 10 10 10 10
    10 10 10 10 10 10 10 10 10 10
    10 10 10 10 10 10 10 10 10 10
    10 10 20 20 20 20 20 20 10 10
    10 10 20 20 20 20 20 20 10 10
    10 10 20 20 20 20 20 20 10 10
    20 20 30 30 40 40 30 30 20 20
    20 30 30 40 50 50 40 30 30 20
    30 40 50 50 50 50 50 50 40 30


    Write a program that prompts users to pick either a seat or a price. Mark sold seats by changing the price to 0. When a user specifies a seat, make sure it is available. When a user specifies a price, find any seat with that price starting at the front and working to the back of the theatre. Make sure you write your program using well defined functions.

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,167

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    1,262
    Wow omg!!!!!!!!1oneone

    I nominate this guy for the biggest-idiot award...

  4. #4
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,409
    how much per line of code? or try rent-a-coder,
    have you even tried to do it? if you are studying programming and you (still) have an entire day to do this task that is plenty of time for something of this level, and because obviously you already have some experience (as a programming or related student) and from what i remember of formal study you would not have been set the assignment unless all the required elements have already been covered in tutorials and lectures or would be covered thus before the due date in order for you to be able complete the work, so what is the problem with you pulling your finger out and attempting something??
    Last edited by rogster001; 12-01-2009 at 04:30 AM.

  5. #5
    Registered User
    Join Date
    Nov 2009
    Posts
    4

    wow!

    no u retards i did try this.....this is wat i have so far:

    Code:
    #include <iostream>
    #include <iomanip>
    
    using namespace std;
    
    int main ()
    {
    	int counts[ROWS][ISLES]
    	{
    		{ 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 },
    		{ 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 },
    		{ 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 },
    		{ 10, 10, 20, 20, 20, 20, 20, 20, 10, 10 };
    		{ 10, 10, 20, 20, 20, 20, 20, 20, 10, 10 };
    		{ 10, 10, 20, 20, 20, 20, 20, 20, 10, 10 };
    		{ 20, 20, 30, 30, 40, 40, 30, 30, 20, 20 };
    		{ 20, 30, 30, 40, 50, 50, 40, 30, 30, 20 };
    		{ 30, 40, 50, 50, 50, 50, 50, 50, 40, 30 };
    	}
    
    }
    Now i will make 5 diferent functions:
    - to get the data
    - to display the data
    - to edit the array

    i dunt get how to to display 0 and x's on the screeen if the tickets have been baught!!
    i also dunt get how i can edit the array

    so help me !

  6. #6
    Registered User
    Join Date
    Nov 2005
    Posts
    673
    no u retards i did try this.
    That gives me ( and probably everyone else here ) absolutely no inclination to help you with anything.

    Your example shows no attempt in my eyes, you have a main function, and a array in the wrong location. How is that an attempt.
    1) Print an intro
    2) Ask for seat price
    3) check for seat availability
    4) Change seat price to $0.00
    5) Go back to 2?

    *Use well defined functions -
    Simple enough, Don't put everything in int main(). Use other functions to do the work...

    Very simple assignment, and very simple logic.

    edit:
    Editing a 2D array is simple

    int numbers[2][2];
    numbers[0][0] = 0;
    numbers[0][1] = 1;
    numbers[1][0] = 2;
    numbers[1][1] = 3;

    Result
    array [0][1]
    [2][3]

    Apply the same technique in a function.


    Use a loop to display the seating arrangement.
    Last edited by Raigne; 12-01-2009 at 08:22 AM.

  7. #7
    Registered User
    Join Date
    Nov 2009
    Posts
    82
    lol what?! you called them retards because you *think you tried it, but you didn't even show us that you did. Ooohhh i see, you thought we could READ YOUR MIND, ah, that explains it. yea sorry we can't read minds.

    also, you didn't do anything, that source just creates an array and doesn't implement any kind of functionality.

    do you think we sit here and write programs for people?

    when you run in to a situation where you get unexpected results due to poor logic or incorrect syntax we can help you in getting through that. what people don't do is your work for you.

    what you obviously need to do is read a book on C++ programming so you know how to develop functions and put them together to execute some kind of process, maybe read the tutorials on this website.

    http://www.cprogramming.com/tutorial.html
    Last edited by since; 12-01-2009 at 08:25 AM.

  8. #8
    Registered User
    Join Date
    Nov 2009
    Posts
    4
    wow this just shows me that u guyz r a bunch of losers. the truth is none of u can write this progoram...u guyz r just makin excuses so u look all smart and ...........but u guyz no nutin bout it. if u can write this then show me!

  9. #9
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,435
    Quote Originally Posted by lil3thunder
    if u can write this then show me!
    Nice try.

    *thread closed*

    You can try again if you want, but next time read the homework policy and be polite.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  10. #10
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,409
    oh gee, the gauntlet has been thrown, i guess i better bite like a big ole fish on a line and do the job then...erm methinks not

Popular pages Recent additions subscribe to a feed

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