Question: Without Loops/conditions execute a Java program that prints the following output. the numbers shown in the output should not be hardcoded (should not be written

Without Loops/conditions execute a Java program that prints the following output. the numbers shown in the output should not be hardcoded (should not be written manually when printing), you should declare an integer variable, ask the user to give you lab and bonus marks, and then calculate the total and print the numbers accordingly. should also use "escape sequences" as well when printing out these drawings. The student info should be entered by the user. Make sure to have the spaces in your code, otherwise, marks will be deducted. DON'T ENTER/WRITE THE STUDENT NAMES/MARKS/TOTAL MARK MANUALLY (OTHERWISE MARKS WILL BE DEDUCTED).

highlighted one is sample

Preview File Edit View Go Tools Window Help 1 Student inve Assignment1-ITEC1620.pdf

Preview File Edit View Go Tools Window Help 1 Student inve Assignment1-ITEC1620.pdf Page 2 of 3 D Assignment1-ITEC1620.... for the bow YOU SHOULD NOT USE 100PS who CONDONAL to your understanding of primitive d Assignment 1: ITEC 1620 YORK UNIVERSITE UNIVERSITY Assignment 1: ITEC 1620 The output is as follows. Let's do some printing :) 31 32 that form a straight line, a second calculate the slope op-that form the equation of the straight line as follows: Then the art enter the imperyl codi of pint Area 33 34 The of the the the shop of the The of the penduar ne is called by cofni hen bp = YA - apxA Once you get the equation of the perpendicular line, you need to calculate the coordinates (x, y) of the intersection point between the original line and the perpendicular one as follows. Project A1 src Cas 24 AAAAW C C C C C C C C C A 36 37 35 30 1 x = bp - b a-ap y = ax + b 38 39 -- -- + [ - ]* YORK 40 e and the slope-latertag DONT ENTER THEM MANUALLY 41 42 43 44 45 445 46 Run: thehoudt be handed should not be willy when prinding you shoulder, theserve you aband o the tatal and print the numbers accendings You " well when printing at these drawings. The should be byther have the spec in your code, DON'T ENOWITE THE STUDENT NAMESTA MARC MANUALLY OTHERWISE MARKS WILL BE DEDUCTED 2 YORK Lastly, get the distance as follows: distance = (x x1) + (YA - Y1) When printing the slope and the slope-intercept values, DON'T ENTER THEM MANUALLY (otherwise marks will be deducted). The output should be as follows Enter the x coordinate of point 1: 3 Enter the y coordinate of point 1: 7 Enter the x coordinate of point 2: 5 Enter the y coordinate of point 2: 11 The slope of the line is: 2.0 The slope intercept of the line is: 1.0 The line equation is: y = 2.0x + 1.0!! Here is the line equation with integer format: y = 2x + 1!! Enter the x coordinate of point A: 1 Enter the y coordinate of point A: 1 The slope of the perpendicular line is: -0.5 The slope intercept of the perpendicular line is: 1.5 The corrdinates of the intersection point are x = 0.2 and y = 1.4 The distance from point A to the line is: 0.8944271909999159!! Structure Bookmarks T there and the R THEM Good luck! 3 Ve All files are up-to-date (today 5:42 p.m.) Enter students names: John William Ann Enter info MaryLin Enter students lab marks: 34 56 45 75 Enter students bonus marks: Student info Name Lab John William 56 Ann MaryLin :R Search Bonus Total 37 60 47 ( Wed Sep 28 7:20 PM YORK UNIVERSITE UNIVERSITY U \'Enjoy the term!' \\\\\ 3- Write a Java code that asks the user to enter the radius r of a sphere, reads it, and calculate the volume and area of the sphere as follows: Area = 4r 2- Write a Java program that prints the following output. Note that the numbers shown in the output should not be hardcoded (should not be written manually when printing), you should declare an integer variable, ask the user to give you lab and bonus marks, and then calculate the total and print the numbers accordingly. You should also use "escape sequences" as well when printing out these drawings. The student info should be entered by the user. Make sure to have the spaces in your code, otherwise, marks will be deducted. DON'T ENTER/WRITE THE STUDENT NAMES/MARKS/TOTAL MARK MANUALLY (OTHERWISE MARKS WILL BE DEDUCTED). Volume = 4 For this question, you should use Math function for doing the "power" and "". When printing the volume and the area values, DON'T ENTER THEM MANUALLY (otherwise marks will be deducted). Only print 2 numbers after the decimal points. The output should be as follows Enter the radius of the sphere: 10 The area of the sphere is: 1256.64 The volume of the sphere is: 4188.79 Good luck! SEP 28

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Id be glad to help you create the Java program that adheres to the requirements and avoids condition... View full answer

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 Programming Questions!