Write a program that prompts the user to enter values for x

Assignment Help Computer Engineering
Reference no: EM132075962

Need help implementing this Java code

Suppose you are given a right triangle where the point at right angle is always located at (0, 0), the other two points are located at (0, y) and (0, x), respectively, where both x and y are positive values greater than 0.

Write a program that prompts the user to enter values for x and y, and then prints the result of two other angles in degrees.

If the user inputs values less than or equal to 0, then the program should terminate with a message "Incorrect values were entered!". Here is a sample run (and below figure shows it visually).

Enter the values for x, y: 5 4
Computed angles in degrees are 51.34 and 38.6

Reference no: EM132075962

Questions Cloud

What is the future value given amount : What's the future value of $20,000 after 14 years if the appropriate interest rate is 2.75%, compounded annually? The response must be typed.
What is ted new basis : The fair market value of Ted's property is $100,000 and the fair market value of John's property is $125,000. What is Ted's new basis
Tenders for supplies of green seed for its surrounds : The University of Millennia called for tenders for supplies of green seed for its surrounds, with a closing date of 1 June.
What pretax amounts did s and l : S&L Financial buys and sells securities expecting to earn profits on short-term differences in price. On December 27, 2016, S&L purchased Coca-Cola common.
Write a program that prompts the user to enter values for x : Write a program that prompts the user to enter values for x and y, and then prints the result of two other angles in degrees.
Discuss some of the ways organisations : Discuss some of the ways organisations, jobs and careers have changed over the past 10 years. What changes do you anticipate over the next 10 years?
Calculate the eac for each machine : Vandalay Industries is considering the purchase of a new machine for the production of latex. Machine A costs $3,100,000 and will last for six years.
Compute moozi fixed manufacturing overhead variances : Moozi applies manufacturing overhead to its products on the basis of standard machine-hours. Compute Moozi fixed manufacturing overhead variances for last year
How many pins for clock and ground : Let's say we broken it up into 8 banks? How many total pins now? 43 Then why use banks? Concurrent reads

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd