1. Write a calculation program for tailors with a function that reads in a file (that you...
Fantastic news! We've Found the answer you've been seeking!
Question:
1. Write a calculation program for tailors with a function that reads in a file (that you create yourself) where each line describes a name of a measurement and the measurement itself in inches.
The format will look like this:
Shoulder width 4
Neck width 3.2
Waist 10
Hint: you can use the .split() function to do this.
Have the program put these targets in a dictionary with the name of the target as the key value and return the dictionary. Next, create a procedure that accepts a list of measurements and uses inchesToCm that you wrote earlier to print the measurements in centimeters.
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: