Question: Exercise 2 Design and implement an application that reads an integer value and prints the sum of all even integers between 2 and the input

Exercise 2 Design and implement an application that reads an integer value and prints the sum of all even integers between 2 and the input value, inclusive. Print an error message if the input value is less than 2 and have the user reenter the number. Prompt accordingly. Call this EvenNumSum.java

Exercise 3 Design and implement an application that reads a string from the user and then determines and prints how many of each lowercase vowel (a, e, i, o, and u) appear in the entire string. Have a separate counter for each vowel. Also count and print the number of non-vowel characters. Call this VowelCounter.java

Exercise 4 Create a project with a class called Box (w/ main) that contains the following instance variable: int size = 0; Then add a method to this class named printBox with no parameters and void return type, that prints out to the screen a set of * (star) characters with size rows and size columns. Enter code in the main method to create a Box object, change its size to 5 (using the dot operator), and then invoke its printBox method. Run the program and fix any errors you may have.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!