Compute the unknown quantity and print the result

Assignment Help Computer Engineering
Reference no: EM132196851

Question :

Write a C program that solves for any one of the following unknown parameters of a right triangle, if given two other known parameters from the following list:

Length of the base.

Length of the vertical side.

Length of the hypotenuse.

The angle between the base and the hypotenuse.

The angle between the vertical side and the hypotenuse.

The program should prompt the user to choose which one of the unknowns they want to solve for and take as input into the program the input from the user.

The program should then prompt the user which of the two known quantities they have (make sure to include logic to exclude the option of the unknown variable value that they are trying to compute).

Then take as input the values of the known quantities and compute the unknown quantity and print the result to the screen.

This program will require you to utilize the concepts of:

-Datatypes (you probably don't want to use int's...)

-Variables

-Getting data from the outside world into your program.

-Writing to the screen (use the printf function).

-Doing simple arithmetic/trigonometric operations on the values stored in the variables and storing that into another variable.

-Control flow (if/else statements)

-Possibly loops (for loops, while loops, etc).

-And other minor details (all of which are covered in your required reading assignment on C

- please don't ask where this is located at, simply look in Week 7 for the reading assignment - it is there).

-All angles should be in degrees (you may have to convert from radians to degrees).

You may use features from C++ if you would like (such as cin and cout from the std library) since you can think of C++ as a superset of C.

Reference no: EM132196851

Questions Cloud

Write a c program which uses a structure type : Write a C program which uses a structure type that stores data records for a car, as described in the Requirements.
Aspect of the law would be both easy and challenging : Support your position with reasons why you believe the aspect of the law would be both easy and challenging.
Determine the market demand schedule on the assumption : On the basis of the three individual demand schedules in the following table and assuming these three people are the only ones in the society.
Harley-davidson based on relevant five-force analysis : The critical competitive forces in the motorcycle industry that may threaten Harley-Davidson based on a relevant five-force analysis.
Compute the unknown quantity and print the result : Take as input the values of the known quantities and compute the unknown quantity and print the result to the screen.
What happens to the equilibrium price and quantity : Illustrate what happens to the equilibrium price and quantity of oil and Cadillacs in the United States. Provide an explanation below the diagram.
The SIER hierarchy of active listening includes : The SIER hierarchy of active listening includes. All of the following represent customer loyalty except.
Discuss about the pros and cons of your recommendations : To respond to the patients’ concerns, generate recommendations to remove the causes you have identified. Discuss about the pros and cons of your recommendations
Write a c program for a shopping list : Write a C program for a shopping list. Use the listed items and add one additional item to the list.

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