Question: ITP 120, Java ProgrammingI Homework 4 100 points total Answers to the following questions can be found or determined by reading Chapters 5 and 6

 ITP 120, Java ProgrammingI Homework 4 100 points total Answers to
the following questions can be found or determined by reading Chapters 5

ITP 120, Java ProgrammingI Homework 4 100 points total Answers to the following questions can be found or determined by reading Chapters 5 and 6 in the textbook. Unless otherwise stated, each question is worth 5 1. The a certain path of execution. operator can be used to ensure that two conditions are both true before choosing operator can be used to ensure a certain path of execution is chosen if at least 2. The one of two conditions are true. 3. The operator can be used to ensure exactly one of two conditions is true before choosing a certain path of execution. 4. Compare and contrast the break and continue statements. 5. Discuss a situation where it would be more appropriate to use a do...while statement than a while statement. Explain why 6. Write code that performs exactly the same actions as the code below, using a switch statement. if (x1) ( System.out.println("one") else ( System.out.println("ten") System.out.printin("the value is not one" (10 points) 7. In mathematics, the factorial of a positive integer n (written as n! and pronounced 'n factorial") is the product of the positive integers from 1 to n. Write an application in a class named Factorial that calculates and displays the factorial of all integers 1 through 20, using the long data type. Upload the Factorial.java source file to Blackboard. (10 points) keyword causes a method or variable to be applied to the entire class, instead of 8. The to individual objects of the class. 9. The 10. The class contains values and methods that are useful for mathematical operations. 11. To which types can a variable of type short be automatically promoted in a method call? 12. Which primitive types cannot be automatically promoted? keyword causes a variable to maintain a constant, unchanging value

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!