Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9.25 Lab6 Create an ArrayList to hold 10 Feetinches objects. Input is from the keyboard (20 ints). This program will also be graded manually to

image text in transcribedimage text in transcribed

9.25 Lab6 Create an ArrayList to hold 10 Feetinches objects. Input is from the keyboard (20 ints). This program will also be graded manually to verify you used an arrayList and not an array (Autograding will not be able to check this). 287148.1818436 LAB ACTIVITY 9.25.1: Lab6 0/10 File is marked as read only Current file: Feetinches.java 1 public class Feet Inches : 2 private int feet; 3 private int inches; 4 5 public Feetinches) 6 [//write the code for the default constructor here 7 feet = 0; 8 inches = 0; 9 } 10 public Feet Inches(int f, int i) 11 { 12 feet.fi/12; 13 inches - $12; 14 15 } 16 public void setFeet(int f) { ) 17 feet - f; 18 19 > 28 public void set Inches(int i) { 21 feet - feet + i/12; 22 inches = 1512; 23 > 24 public int getFeet() { 25 return feet; 26 } 27 public int getInches() { 28 return inches; 29 } 38 31 32 33 public String toString() 34 { 35 36 return Feet: " + feet +- Inches: " + inches; 37 38 39 40 } 41 42) Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box Section 9.25 is a part of 1 assignment: L6 Requirements: zyLab Entire class due: 02/15/2021, 11:59 PM 9.25 Lab6 Create an ArrayList to hold 10 Feetinches objects. Input is from the keyboard (20 ints). This program will also be graded manually to verify you used an arrayList and not an array. (Autograding will not be able to check this). 287148.1818436 LAB ACTIVITY 9.25.1: Labo 0/10 Current file: Lab6.java Load default template.. 3 import java.util.Scanner; 4 8 9 99 6 public class Lab6 { public static void main(String[] args) { Scanner keyboard - new Scanner(System.in); 10 11 //Get input from the keyboard 12 //Make an arrayList of objects 13 // Output in reverse. From the end of the arrayList to the front. 14 15 ) Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box Enter program innut (ontional)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

E. Overall, how reliable and useful is this report? Explain.

Answered: 1 week ago

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago