النتائج 1 إلى 2 من 2

الموضوع: عاجل ومهم الرجاء المساعده

  1. #1
    التسجيل
    11-05-2001
    الدولة
    Malaysia
    المشاركات
    995

    عاجل ومهم الرجاء المساعده

    شباب عندي تسليم سؤال c++ في خلال اقل من اسبوع
    حاولت بس صعب علي الحل وما اقدرت امشي مع الخطوات فارجو المساعده العاجله مع العلم اني الان مزحوم جدا مع الجامعه لان عندنا اختبارات و مسائل كثيره للتسليم

    ---------------------------------------------------------------------
    (Superball – functions, files and arrays )You are to write a program that models a guessing game called Superball using one –dimensional arrays. In this game there is one red ball (the superball) that can be a value between integer range a minimum value and a maximum value. There are five white balls and their values can be between any minimum value and any maximum value. For RM10.00, you can pick five white balls values (five different numbers between the chosen minimum and maximum value) and one superball. Then, whenever you want to play, the game draws one red ball and five white balls. If your white balls and superball numbers match the game’s white balls and superball – you win RM1,000.00!!!!

    In this game, ask the user to enter name, the minimum numbers and the maximum numbers for the superball as well as white balls. The Check function should check that the minimum value is less than the maximum value. Use function GuessBalls to ask the user for the superball input. User should be able to enter the five white balls in any order. Then call a function FillArray that generates randomly the computer’s superball white balls and red balls. (For an extra challenge tell the user the number of white balls that match the game balls, and if the superball match!, and the number of attempts the user wants to guess) Ask if the user would like to keep playing. For each game the user enters the guessed numbers and the computer determines a new set of numbers. WriteFile function asks the user for the name of the output file which contains the user’s name, the user’s entries, the computer’s entries and the total lost and winnings in a formatted form.

    You may add more functions if necessary. Your program must be user friendly and use appropriate parameters to pass values in and out of the functions. Do not use global variables.

    ---------------------------------------------------------------------

    الرجاء المساعده وجزاكم الله خير

  2. #2
    التسجيل
    11-05-2001
    الدولة
    Malaysia
    المشاركات
    995

    رد: عاجل ومهم الرجاء المساعده

    شباب باقي يومين على التسليم .. الرجاء المساعده جزاكم الله خير

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •