Question: oblem 1 [5 marks] All vowels (filename: AllVowels.java) Design an algorithm and then write a program that randomly generates 4 vowels (a, e, i,

oblem 1 [5 marks] All vowels (filename: AllVowels.java) Design an algorithm andthen write a program that randomly generates 4 vowels (a, e, i,

oblem 1 [5 marks] All vowels (filename: AllVowels.java) Design an algorithm and then write a program that randomly generates 4 vowels (a, e, i, o, u) all in lowercases. If any time the generated letter is not a vowel, the program re-generates a new letter. The vowels may be repeated. You must use the keyword break or continue in your loop. Problem 1 [5 marks] All vowels (filename: AllVowels.java) Design an algorithm and then write a program that randomly generates 4 vowels (a, e, i, o, u) all in lowercases. If any time the generated letter is not a vowel, the program re-generates a new letter. The vowels may be repeated. You must use the keyword break or continue in your loop. Problem 2 [30 marks] Displaying a calendar (filename: DisplayCalendar.java) Design an algorithm and then write a program that prompts the user to enter a year and the first day of the year, and displays the calendar for the year. For example, if the user enters year 2019, and 2 for Tuesday, January 1, 2019, your program should display the calendar for the 12 months in the year, as follows: Enter a year: 2019 Enter the first day of the year: 2 Sun Mon 6 13 20 27 N N H J 3 10 17 24 7 14 21 28 Sun Mon THHN 4 11 18 85 25 January 2019 Tue Wed Thu 3 10 17 1 8 15 22 29 2 6 N 5 12 19 26 9 16 23 30 February 24 31 Tue Wed Thu 6 13 20 27 2019 7 14 21 N N 28 Fri 4 N P PA 11 18 185 25 Fri 1 H HN 8 15 NG 22 Sat NTC is 5 12 296 19 26 SNOHN Sat 2 9 war 16 23

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 Programming Questions!