bp = YA Once you get the equation of the perpendicular line, you need to calculate...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
bp = YA 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. Lastly, get the distance as follows: distance = The output should be as follows apxA 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 bp - b XI a - ap Y = ax + b When printing the slope and the slope-intercept values, DON'T ENTER THEM MANUALLY (otherwise marks will be deducted). /(xA X) + (YA - Y) 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!! 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). The output is as follows. Let's do some printing :) //////////////////////////////////////// Enter students names: John William Ann MaryLin Enter students lab marks: 34 56 45 75 Enter info Enter students bonus marks: Name John William Ann MaryLin Student info Lab 34 56 45 75 \'Enjoy the term!' \\\\\\ Bonus \\\\\\\\\\ Total The output should be as follows 37 60 47 80 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 4 Volume = 3 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. r 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! bp = YA 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. Lastly, get the distance as follows: distance = The output should be as follows apxA 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 bp - b XI a - ap Y = ax + b When printing the slope and the slope-intercept values, DON'T ENTER THEM MANUALLY (otherwise marks will be deducted). /(xA X) + (YA - Y) 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!! 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). The output is as follows. Let's do some printing :) //////////////////////////////////////// Enter students names: John William Ann MaryLin Enter students lab marks: 34 56 45 75 Enter info Enter students bonus marks: Name John William Ann MaryLin Student info Lab 34 56 45 75 \'Enjoy the term!' \\\\\\ Bonus \\\\\\\\\\ Total The output should be as follows 37 60 47 80 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 4 Volume = 3 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. r 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! bp = YA 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. Lastly, get the distance as follows: distance = The output should be as follows apxA 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 bp - b XI a - ap Y = ax + b When printing the slope and the slope-intercept values, DON'T ENTER THEM MANUALLY (otherwise marks will be deducted). /(xA X) + (YA - Y) 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!! 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). The output is as follows. Let's do some printing :) //////////////////////////////////////// Enter students names: John William Ann MaryLin Enter students lab marks: 34 56 45 75 Enter info Enter students bonus marks: Name John William Ann MaryLin Student info Lab 34 56 45 75 \'Enjoy the term!' \\\\\\ Bonus \\\\\\\\\\ Total The output should be as follows 37 60 47 80 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 4 Volume = 3 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. r 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!
Expert Answer:
Related Book For
A First Course in Differential Equations with Modeling Applications
ISBN: 978-1305965720
11th edition
Authors: Dennis G. Zill
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Formularium Management III Kevin Denis June 18, 2014 Use at own risk. Part I Inventory Control 1 Known demand (p198) 1.1 Basic EOQ model (p210) Assumptions: 1. Demand is xed at units per unit time....
-
Date 1 July 2019 1 June 2020 30 June 2020 1 July 2020 1 July 2020 30 June 2021 1 July 2021 Particulars (???) (???) (To record acquisition of delivery truck) (???) (???) (???) (To record minor repair...
-
The general fund budget for the state of Kentucky for 1988 (Period 1) to 2011 (Period 24) follows (Northern Kentucky Enquirer, January 18, 2012). a. Construct a time series plot. What type of pattern...
-
What is the present value (aka price) of a 26-year, pure discount bond (zero coupon bond) that pays $1100 at maturity if it is priced to yield 8.09% per year (YTM)? Answer to 2decimal places.
-
What is the difference between an accountor and an accountee? Is it important for the needs of both to be taken into account when designing an accounting system? Provide reasons for your view.
-
According to the value Line Investment Survey, the growth rate in dividends for Duke Energy for the previous 10 years has been 1.5 percent. If investors feel this growth rate will continue, what is...
-
An evaluation of critical analysis within the context of a literature review, using your selected business research study 'Strategies business leaders have used to sustain their business beyond five...
-
In this exercise, you create an application that allows the user to enter the gender (either F or M) and GPA for any number of students. The application should calculate the average GPA for all...
-
During the electrolysis of aqueous silver nitrate, a current of 0.5A was passed through the electrolyte for 3 hours. (a) Write the equation for the reaction which took place at the anode. (1mk) (b)...
-
Is it possible to have the present value of a future payment that is greater than the future payment (i.e. the present value is $1200, and the future payment is $1000)? Explain, using complete,...
-
What role does emotional intelligence play in effective leadership communication, and how can executives cultivate these skills to forge deeper connections with internal teams and external...
-
The composite body shown comprises of disc 1 of mass mi 5 kg and rods 2 and 3 of mass 5 kg/m. The disc is located on the y-z plane while rod 3 is parallel to the z axis. Determine Ivy and Izz. TRANN...
-
Important Macroeconomic Variable Trends (Long-term analysis) of South Korea Try to make use of graphs which shows trends in variables (e.g. look at data for the past 15-20 years) 2.1 GDP GDP, GDP per...
-
7. A labor market equilibrium is given by the numbers below: Wage Rate Number of Workers Number of Workers Supplied Demanded 6 96 104 7 98 102 8 100 100 9 102 98 10 104 96 a. What is the market...
-
3. [15pts] What is priority inversion? In a priority-driven system where all tasks are preemptable and that only need the processor to run, will priority inversion occur? Among the four protocols,...
-
When a company has a contract involving multiple performance obligations, how must the company recognize revenue?
-
In problem verify that the given functions form a fundamental set of solutions of the differential equation on the indicated interval. Form the general solution. y'' 4y = 0; cosh 2x, sinh 2x, (, )
-
Solve the given differential equation. (6x + 1)y 2 dy/dx + 3x 2 + 2y 3 = 0
-
The following system of differential equations is encountered in the study of the decay of a special type of radioactive series of elements: dx/dt = 1 x dy/dt = 1 x 2 y, where 1 and 2 are...
-
An electronic instrument, of mass \(20 \mathrm{~kg}\), is to be isolated to achieve a natural frequency of \(15 \mathrm{rad} / \mathrm{s}\) and a damping ratio of 0.95. The available dashpots can...
-
A damped single-degree-of-freedom system has a mass \((m)\) of \(5 \mathrm{~kg}\), stiffness \((k)\) of \(20 \mathrm{~N} / \mathrm{m}\), and a damping constant \((c)\) of \(5 \mathrm{~N}-\mathrm{s} /...
-
A stepped bar, fixed at \(x=0\) and free at \(x=l\), has a cross-sectional area of \(2 A\) for \(0 \leq x
Study smarter with the SolutionInn App