Question: 3 - Control Structures in Java (5%) This assignment relates to the following Course Learning Requirements: CLR 2: Write Java program code to solve a

3 - Control Structures in Java (5%) This assignment relates to the following Course Learning Requirements: CLR 2: Write Java program code to solve a problem, based on a description of the problem context, including UML diagrams, using object-oriented techniques. CLR 11: Identify appropriate strategies for solving a problem. Objective of this Assignment: Ensure students: 1. Understand the concept of Entry Control and Exit Control loops in Java. 2. Are able to understand the concept about looping structures in Java. 3. Are able to execute Java statements for branching structures. Pre-Assignment Instructions: To complete this assignment successfully read the module content and follow the given links and given video tutorials to solve the theory and programming questions. Assignment Tasks: Task #1: Write a Java program to get a number from the user and print whether it is positive or negative. Task #2: Write a Java program that keeps a number from the user and generates an integer between 1 and 7 and displays the name of the weekday. Task #3: Write a Java program that takes the user to provide a single character from the alphabet. Print Vowel or Consonant, depending on the user input. If the user input is not a letter (between a and z or A and Z), or is a string of length > 1, print an error message. Task #4: Write a program in Java to input 5 numbers from keyboard and find their sum and average. Task #5: Write a program in Java to make such a pattern like ri

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