Language: C#
10. Fill an array with random numbers. Display the array. Output the average of all the numbers.
See more
2. Put numbers 15 to 1 in array. Display the number as well as the squared and cubed value.
See more
4. Write a script that adds the odd numbers from 7-37. Display the total.
See more
5. In a while loop, get numbers from the user until "end" is entered. Add the numbers together and display the sum.
See more
6. Write a program that will give you the total calories based upon entered fat, protein and carbohydrates grams. The calories of each gram are as follows: fat is 9, protein is 4, and carbohydrate is 4.
See more
1. Get 3 numbers from the user. Add the 3 numbers and hold the answer. Multiply the 3 numbers and hold the answer. Display all the numbers!
See more
9. Fill an array of random numbers 1-100 of 25. Sort the array from smallest to largest numbers
See more
11. Write a while loop that adds the numbers 10-100 together. Increment your counter by 10. Display the resulting sum.
See more
24. Create a function that asks a user for their name then display a welcome message.
See more
25. Create a function that asks a user for a number. Generate that number of random numbers. Write the numbers to the screen.
See more
26. Create a function called petsName. In the function, ask for the user's pet's name into the variable petname and ask what kind of pet it is into the variable petkind.
Output "You have a petname that is a petkind."
See more
15. Write a function that asks the user for a number. Tell the user if the number is odd or even.
See more
3. Create a loop that rolls a six sided die 50 times. Using an array, count how many times each side is rolled. Display the results.
Variation:
Create a loop that rolls a 20 sided die 500 times. Using an array, count how many times each side is rolled. Display the results.
See more
34. Create a number guessing name. The random number to guess should be between 1 and 100. Keep all the guesses made in an array. Count the number of guesses. As the user guesses, tell the user if they are too low or are too high.
See more
49. Create an array for a fortune cookie. When you create your array, you will fill the array with 7 fortunes in an array. Then using a button, display a random fortune from your array.
See more