Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write in Java! 1. Computes how many yard, feet, and inches are in the number of inches given by the user: Your test cases

image text in transcribedPlease write in Java!

1. Computes how many yard, feet, and inches are in the number of inches given by the user: Your test cases should include the following number of inches: Assume inches is given as an int. (fro this part you must declare a Scanner object so you can read the data from the console) A. 163 inches. B. 144 inches C. 5 inches D. 15 inches 2. Compute the cost of the following: (Number of items should be declared as ints, and costs should be declared as doubbles) A. 10 pencils at .75 cents each B. 5 pens at .50 cents each C. 3 erasers at 25 cents each D. 2 notebooks at 1.39 each print the results of the individual costs of each item compute and print the total cost of all the items. compute and print the sales tax of the total amount gren a tax rate of .0825 add the sales tax to the total and print that amount. Your file should include comments that include your name, assignment number, and what the program does. Your header comment should include yourr name, assignment \#, and a descirption of what the program does You can have block comments or individual line comments to explain what the different part of the program are doing Your output should look good (use print and println at your discretion so that the output is readable. Use proper indentation in your code - ie. code should line up evenly and use braces should be lined up appropriately. You must submit the following: 1. java program (the .java file) 2. test results (.txt, .pdf, or docx file) The name of your file should be yourNameCalculations.java (for example ShaniCohenCalculations.java and your results should be in ShaniCohenCalculations.txt)

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

Students also viewed these Databases questions

Question

4-6 Is there a digital divide? If so, why does it matter?

Answered: 1 week ago