• Write an application for a furniture company; the program determines the price of a table. Ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany. The output is the name of the wood chosen as well as the price of the table. Pine tables cost $ 100, oak tables cost $ 225, and mahogany tables cost $ 310. If the user enters an invalid wood code, set the price to 0. Save the file as Furniture. java.
  • Write an application that can hold 10 integers in an array. Display the integers from first to last,the sum of the integers, and then display the integers from last to first. Save the file as IntArray. java.
  • Create an application named TestMethods whose main() method holds two integer variables and one double. Assign values to the variables. In turn, pass each value to methods named displayIt(), displayItTimesTwo(), and displayItPlusOneHundred(). Create each method to perform the task its name implies. Save the application as TestMethods. java.
  • Create a class called Invoice that a hardware store might use to represent an invoice for an item sold at the store. An Invoice should include four pieces of information as instance variables—a part number (type String), a part description (type String), a quantity of the item being purchased (type int) and a price per item (double). Your class should have a constructor that initializes the four instance variables. Provide a set and a get method for each instance variable. In addition, provide a method named getInvoiceAmount that calculates the invoice amount (i.e., multiplies the quantity by the price per item), then returns the amount as a double value. If the quantity is not positive, it should be set to 0. If the price per item is not positive, it should be set to 0.0. Write a test application named InvoiceTest that demonstrates class Invoice’s capabilities.
  • Write a Java application that uses a counter-controlled loop to sum the integers in the range 1–10, then compute the average of those numbers (as an integer value). Display the sum and the average.
  • Modify your solution to Coding Exercise 5 so that a user can specify the range of numbers to average.
  • Write a Java application that uses a loop to read in 10 numbers and calculates and prints their sum.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.