Question: What: a java file containing your solution Objective: increasing your familiarity with methods and how to use them in Java. In this lab, you are
What: a java file containing your solution Objective: increasing your familiarity with methods and how to use them in Java. In this lab, you are given code that does not make use of methods (not beyond the main method, that is): lab5Original.java, and you have to modify it so that it makes use of methods. This is what you will do in lab5WithMethods.java, where a new main method is provided to you and you need to complete the java file with the missing definitions of the methods used in the main method To help you with this, there are two things you must do. First, you have to design and draw a flow diagranm that shows the order in which the methods are called, and how the data they use and create passes from one part of the main method to the other. Second, you will complete the lab5WithMethods.java file by following the comments that tell you the methods that you have to design and code. You must not change the main method in any way. Here is what you have to do: 1/ In the word document: provide us with a flow diagram (see lecture slides) that accounts for the flow of methods in the main method of lab5WithMethods.java. 2/ In the Java file: complete the file in lab5WithMethods.java where prompted
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
