Concept explainers
Write a program that asks the user to enter the length of the hypotenuse, opposite, and adjacent sides of a right triangle with respect to an angle (θ). After the user has entered all three values. a menu should pop up asking if the user wants to calculate sin(θ), cos(θ), tan(θ), cot(θ), cosec(θ), or sec(θ). The program should display a final message, such as, “For a right triangle of sides h, o and a, sin (θ) = 0.371, “where h, o, and a are replaced by the actual lengths entered by the user, displayed to one decimal place. If the user enters lengths that do not work with a right triangle, an error message should appear and the program should terminate. If the user closes the menu instead of making a valid selection, an appropriate error message should appear and the program should terminate. You may use if statements and/or switch-case statements as appropriate.
Want to see the full answer?
Check out a sample textbook solutionChapter 18 Solutions
THINKING LIKE AN ENGINEER W/ACCESS
- Hello, I need help with the answer of 3.14 from the picture, please.arrow_forwardPlease show your solution and at the same time BOX and SPECIFY the answers that corresponds to each blank on the question. Make sure to fill all the blanks. Thank you. STRICKLY FOLLOW THIS: Calculated Answers Express your answers without rounding off and without scientific notation unless instructed otherwise. Multiple Blanks Write powers or subscript as is. Ex: Use b2 if you mean b2 or b2 Spell out Greek letters. Ex: Use pi if you mean greek letter pi Write answers without spaces. Ex: Use 2epsilon0r3 if you mean 3e0r3 Write fractions with a slash. Ex: Use 1/2arrow_forwardUse the attached graph to answer the follwing questions a. Write an equation that gives the position with respect to time (use specific quantities) b. Write an equation that gives the velocity with respect to time (use specific quantities) c. Draw a velocity over time graph for this motion from t=0 to t=12s.arrow_forward
- I am sorry but your values when plugging in are not the correct values. Not too sure where your values are from but can you please redo the question using the given values in this problem and not from a different problem please? (example, height is not 29, it is 22) all values do not correlate to this problem. I was also told when finding the area of triangle to use (1/2)*b*h*Ad^2 and not 1/36*b*h*Ad^2 Find the moment of inertia and radius of gyration of the section of this bar about an axis parallel to x-axis going through the center of gravity of the bar. The bar is symmetrical about the axis parallel to y-axis and going through the center of gravity of the bar and about the axis parallel to z-axis and going through the center of gravity of the bar. The dimensions of the section are: l=55 mm, h=22 mm The triangle: hT=12 mm, lT=19 mm and the 2 circles: diameter=8 mm, hC=6 mm, dC=8 mm. A is the origin of the referential axis. Provide an organized table and explain all your steps…arrow_forwardFor number, underline the zeroes that are significant and draw an x through the zeroes that are not. 0.001090 cmarrow_forwardUsing graphical method solve this problem: Suppose you first walk A in a direction of B west of north then C in a direction D south of west. You rest for 20 minutes and started to compute the distance you traveled. Take A, B, C and D found in the table below. (You may use scale such as 1cm = 2m in your drawing) A. Sketch the problem in a Cartesian plane. B. How far are you from your starting point, and what is the compass direction of a line connecting your starting point to your final position (resultant R)? C. What is the angle between AC ? D. What is the angle between your first walk A to the resultant R?arrow_forward
- Using graphical method solve this problem: Suppose you first walk A in a direction of B west of north then C in a direction D south of west. You rest for 20 minutes and started to compute the distance you traveled. Take A, B, C and D found in the table below. (You may use scale such as 1cm = 2m in your drawing) A. Sketch the problem in a Cartesian plane. B. How far are you from your starting point, and what is the compass direction of a line connecting your starting point to your final position (resultant R)?arrow_forwardPlease answer this question within 25-30 minutes here the value of R is 48arrow_forwardPlease use the isometric graph paper in my picture to draw it to scale!arrow_forward
- P.S: answer the question and plot 4 separate graphsarrow_forwarda diagonal of a polygon is a line segment that connects nonadjacent vertices of the polygon.in the following polygons, a triangle has 3 sides and 0 diagonal, a quadrilateral has 4 sides and 2 diagonals, a pentagon has 5 sides and 5 diagonals, a hexagon has 6 sides and 9 diagonals. predicts the number of diagonals in a 12-sided polygon.arrow_forwardThis geometric figure can be divided by a straight line into two parts that together can form a perfect square. Write the numbers separated by a comma "," where the line begins and ends. (PLEASE DO NOT CANCEL THE QUESTION, I CAN WAIT AS LONG AS YOU NEED, I DON'T THINK IT WILL BE THAT DIFFICULT)arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY