Question: 9.23 Lab5Num1 Create an array to hold 10 Feetinches objects. Input is from the keyboard (20 ints). To get the correct output you MUST use

9.23 Lab5Num1 Create an array to hold 10 Feetinches objects. Input is from the keyboard (20 ints). To get the correct output you MUST use this input: 56 34 467 3 4 455 11 21 84 45 44 5 8 11 23 2 20 19 2714814407676 LAR ACTIVITY 9.23.1. Lab5Num1 0/5 Current file: Lab5Num 1.java Lond default Template 2 import java.util.Scanner; 4 public class Labs 7 8 9 10 11 12 n public static void main(string] args) { Scanner keyboard new Scanner(System.in); 1/create an array to hold 10 Feetinches objects /input 20 ints from the keyboard. you MUST enter the ones I gave you to get the correct output AFTER you have created the array, output each elemento a new line starting with the last timent for(int kek.) 15 17 19 20 21 Create an array to hold 10 Feetinches objectsInput is from the keyboard (20 ints). To get the correct output you MUST use this input: 56 34 467 3 4455 11 21 84 45 44 58 11 23 2 20 19 14776 LAE ACTIVITY 9 23. 1: Lab5Num1 075 File is marked as read only Current file. Feetinches.java 1 public class Feetinches private int feet; private int inches public Feetinches) trite the code for the default constructor here feet - inches - publie Feetinches(int fint 1) feet f. 1/12: 10 inches = 1612 14 15 > 16 public void street(int) 12 feet- 19 > 20 public void setinches(int 1) feet feet 1/12; 22 Inches - 23 1 public int petreet 26 return fert: public int Inches return inches 2 public string tostring return Feet Inches: - inches
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
