Question: can you solve programming challange 4,8 and also make flowchart for them ? I will relally appriciqte it. thabk you Chapter 6 - Programming Challongo

Chapter 6 - Programming Challongo 4.8 4. Rotailtem Class Write a class named Retailtem that holds data about an item in a retail store. The class should have the folowing fields: - description. The description frield references a String object that holds a brief description of the item. - unitsOntiand. The unitsonHand field is an int variable that holds the number of units currently in inventory. - price. The price field is a double that holds the item's retail price. Write a constructor that accopts arguments for each fieid, appropriate mutator methods that atore values in those fields, and accessor methods that return the values in these fields. Once you have written the class, write a separate prograrn that creates three Retailtem objects and stores the following data in them: 8. Tomporature Class Write a Temperature class that will hold a temperature in Fahrenheit, and provide methods to get the temperature in Fahrenhesi, Celsius, and Kelvin. The class should have the following field: fremp - A double that holds a Fahrenheit temperature. The class should have the following methods: - Constructor - The constructor accepts a Fahrenheit temperature (as a double) and stores it in the flemp field. - sotFahrenhoit - The setFahrenheit mothod oocopts a Fahrenheit tomperature (as a doublo) and itoros t in the ftemp field. - getFahienhert - Returns the value of the thene tiold. as a Fahrenheit terrevabee (no canversion requed? - gokColsias - Rotums the value of the flemp freld conyerted to Cosius. + gethehin - Relums the value of the fomp fred convorted to Kelvn Use the folowing tormula to conwert the Fahronhert temperature to Colsius; Celshis - (59) " (Fahronheit - 32) Use the folowing formula to cooved the Fahronhot tormperature to Kovio: Kelvn - (i5i9) * (Fahrenheil - 322)+273 Demonstrate the Temperature class by writing a separate peogram that asks the user for a Fahratheit intrporatare. The program should create an instance of the Temperafure dass, with the value entered by the usor passed to the constructor, The program should ther cill the objocts methods to doplay the fomperature in Colsius and Kewin. You only need to scomit the soutce code ( java and not the propect oc the clais) flies of all the dasses your implament and the driver program for the problom. *Classer fall coss 143. illico? -Assipientia tiwhes warld - alarer cejasiraini - Elauthor todlan siabo - ipverston a.0.0 \% far each anthod, you will al so be requifed to create docifring as foltous! jeo - fraaran Strine as ango - Erreturn teinination code os int, a for noreol, arytaing else is errar conistion - ythrown Nothine is isplesented All assignments must be submitted on eCampus under Assignments attached as a single compressed file ( ma hard cesy needed )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
