Question: write in java source code. thank you Assignment2A: Hello, Autograder? Write a program that prints out Hello, Autograder!. When you write/submit the source code version

write in java source code. thank you
write in java source code. thank you Assignment2A: Hello, Autograder? Write a
program that prints out "Hello, Autograder!". When you write/submit the source code
version of this, this is how you can test the autograder (i.e.

Assignment2A: Hello, Autograder? Write a program that prints out "Hello, Autograder!". When you write/submit the source code version of this, this is how you can test the autograder (i.e. you should get these points). Sample Output +1: Hello, Autograder! Sample Output 12: Hello, Autograder! Assignment2B: Yardwork. If you've ever had to mow the lawn, you'll realize that it's hard work. Good news, everyone! You just bought an electric mower. Write a program that reads from the user, the width, length and how many square feet you can mow per dot of charge. The program then calculates how many charged batteries is needed to cut a rectangular yard based on the width, length and how many square feet per dot of charge Your output should look like the examples below. Bold characters represent user input. Sample Output: Width: 15 Length: 90 Square feet per dot: 100 A yard of 1350 square feet will take 13.5 dots to cut. Sample Output 12: Width: 21 Length: 200 Square feet per dot: An area of 4300 square feet will take 56 dots to cut. 75 Assignment 26. Can you still see the dots? It's an interesting time in display technology. When we talk about displays, you most often hear the term "pixel", which is the smallest light-emitting speck on your screen. We use the term "resolution when talking about the total number of parels on the screen, but sometimes you want to know how dense the pixels are per inch. A 4K giant display is common, but a 4K display on your Watch would be a seriously impressive feat The real question is, if someone came out with a 16K television, would you be able to see the individual pixels? If you couldn't, would you still buy it? For this assignment, we're going to calculate the poceis per square inch. To calculate pixels per square inch, you need to know how many pixels there are horizontally (left-to- right), how many there are vertically(top-to-bottom), and the diagonal length of the display (upper-left to lower-right). Your calculations will be similar to this online calculator According to the website, you have: Diagonal Pixels - Square root of (Vertical Pixels - Horizontal Puels) PPI = Diagonal Poels/inches Examples of how to calculate the square root of a number is in the Appendo below. We need to use the sqrt function, which returns a double You need to write a program that reads in the horizontal and vertical resolution of the screen as well as its diagonal length (in inches) and print out the number of pixels per square inch Note: you cannot have part of a pixel (0.9.216.9). So wu must und down to the nearest whole pixel The easiest way to do this is type-cast from a float (or double) to an int Sample Output: Horizontal pixels 2880 Vertical pixels: 1800 Diagonal length in inches 15.1 Pixels per inch: 224 Sample Output 12: Horizontal pixels 1920 Vertical pixels: 1200 Diagonal length in inches: 17.0 Pixels per inch: 133 Sample Output +2: Horizontal pixels 4096 Vertical pixels 2160

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!