Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   Writing a program about random numbers (https://www.askmehelpdesk.com/showthread.php?t=649649)

  • Apr 9, 2012, 03:53 PM
    breakdown57
    Writing a program about random numbers
    1. Write a program that randomly generates a number between 50 and 100. Based off the number that is randomly generated, do the following: (25 points)

    If the randomly generated number is 93 or greater, display: “Great job! You got an A!”
    If 85-92, display: “Not too shabby, we’ll take a B!”
    If 77-84, display: “Average is not good enough!”
    If 70-76, display: “Dude, you may want to try again!”
    If 69 or below, display: “Classic FAIL!”

    2. Write a program that prompts the user to answer the question: What is your favorite school? The only answer they can provide is NCSU, UNC, DUKE, or ECU. Once they make their choice, display the corresponding statement with the chosen school. Ask the user if they want to choose another school and loop the question again until the user says no. (25 points)
    NCSU: “Pirate Wannabes!!”
    UNC: “First Place Losers!”
    DUKE: “Dark blue is better than light blue!”
    ECU: “Arrrrgghh!”


    visual basic express 2010 console app

  • All times are GMT -7. The time now is 09:42 AM.