Robert X.

asked • 10/26/21

BlueJ Questions

If you could write it in the format of BlueJ(Java). That would be great but if not that's ok

1) Write programs with for loops that compute

a. The sum of all even numbers between 2 and 100 (inclusive).

b. The sum of the squares of the numbers between 1 and 100 (inclusive). 12 + 22 + 3+ ...1002

2) Write programs with while loops that read a sequence of integer inputs and print:

a. The smallest and largest of the inputs.

b. The number of even and odd inputs.

  1. Hint: users may enter as many numbers as they want, so you need to give them the option to end their input by entering q or something.
  2. Please don't print until you reach the end.

3)  Write a program that reads a line of input as a string and prints the number of vowels in the string.

4) Write a program that reads a word and prints each character of the word on a separate

line. For example, if the user provides the input "Harry", the program prints

H

a

r

r

y

5)  Write a program that reads a word and prints the word in reverse. For example, if the

user provides the input "Harry", the program prints yrraH

6)Simulate the Monty Hall problem

Preston Z.

Hi Robert, I would be happy to help you with with this programming problem in a tutoring session if you are still looking for help.
Report

11/01/21

1 Expert Answer

By:

Jordon T. answered • 11/23/21

Tutor
5 (2)

The more I teach, the more I learn.

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.