Calculate and tell the user the distance to the basket

Assignment Help Computer Engineering
Reference no: EM132164453

Using (C++ microsoft visual studios 2013)

Write a program with comments (//comments explaining to user) that uses methods and simulates throwing a rock in a basket in a straight line.

Each time the program is run, the program should randomly calculate and tell the user the distance to the basket between 20 and 100 feet.

Each time the program is run, the program should randomly calculate the wind speed between 0 and 50 mph. Each time the program is run, the program should randomly say if the wind is blowing towards the basket or away from the basket. Allow for the gravitational pull of the Earth.

The user should be able to adjust the strength of the throw as well as the angle of the throw. The program should tell the user the distance of the throw.

The program should give the user multiple attempts at the throw without changing the distance or wind speed to the basket.

The program should count how many attempts it takes the user to put the rock in the basket.

Assume that the user always throws the rock in a perfect straight line. Assume that the basket is a three foot circle.

Reference no: EM132164453

Questions Cloud

Calculate the triangular number for n : The function will have a single parameter of type string. It will print the reversed characters to the screen followed by a newline character.
Population proportion of employed individuals : Construct a 99% confidence interval for the population proportion of employed individuals the work at home at least once per week.
Critical value approach to test the hypothesis : Use the critical value approach to test the hypothesis at the 1% significance level. Show the five steps.
Identify the claim and state h0 and ha : a) Identify the claim and state H0 and Ha. What is the? claim?
Calculate and tell the user the distance to the basket : Write a program with comments (//comments explaining to user) that uses methods and simulates throwing a rock in a basket in a straight line.
What are correlations and how do they work : What are correlations and how do they work? What different types of correlations exist?
Thickness of the steel plates it produces : A manufacturer claims that the thickness of the steel plates it produces is 61 mils (thousandth of an inch). Car manufacturer's quality control officer
Create a program that ask users to choose the size of matrix : It will prompt the user to fill a square matrix and store the input into the 2D array. The second function is determinant().
How social media impacts our ability to have meaningful life : Does the book, You Are Not a Gadget, help us understand how social media impacts our ability to have a meaningful life? Explain

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