Skip to main content

✍️ Practice (Easy)

1. Some Cool Ints​

Create an array containing the integers 1 through 10. Write it in as many different ways as you can (aim for at least three).

2. W3Schools Syntax Practice​

Complete these Exercises

3. Party Guests​

Here's the guest list for a party:

string[] guests = {"poggie", "preeti pearl", "youmna"};

Write a program that asks the user for their name, then tells them whether they're on the guest list.

4. Some Cool Grades​

Write a program that:

  • Prompts the user for their 3 test grades, one at a time
  • Stores all the grades in a single array
  • Prints the array

5. Sumthings Going On​

Using the array below, calculate the total sum of each number squared

int[] nums = {1, 7, 2, -3, 5, 9};