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

  Write a function to find a superpeak element in an array

Write a function to find a superpeak element in an array. A superpeak element is an element that is greater than the sum of its neighbors.

  Substitute the splay tree class into the menu-driven program

Substitute the splay tree class into the menu-driven demonstration program for binary search trees in thereby obtaining a demonstration program for splay trees.

  Explain why the time needed to do a typical B-tree operation

Explain why the time needed to do a typical B-tree operation (searching or insertion, for example) is approximately (a + bd)logd n.

  Specify modifications that implemented to it infrastructure

Identify any modifications that should be implemented to the IT infrastructure in order to accommodate the requirements of the EHR.

  What would be the reasons for your selection

Which of the two methods would you select to use? What would be the reasons for your selection?

  What are key groups of stakeholders

What are key groups of stakeholders? Pick two types of stakeholders and describe how you set expectations with each. What is the role of stakeholders.

  Define the legislation governing web accessibility in europe

evalute and contrast the legislation governing Web accessibility in Europe with that in the US.

  Develop a menu driven console java program todemonstrate

For this assignment, you are required to develop a Menu Driven Console Java Program todemonstrate you can use Java constructs including input/output.

  Delimit the atm problem by creating a problem diagram

Delimit the ATM problem by creating a problem diagram using Visio or an equivalent such as Dia. Create two Structured Analysis and Design Technique diagrams.

  Create a class called invoice that hardware store might use

Create a class called Invoice that a hardware store might use to represent an invoice for an item sold at the store.

  Discuss about the boolean-logic operators

This is a pretty easy homework assignment but it just needs to be a program with defined funfuctions that includes boolean-logic operators.

  Give one example of a group using a set of residues

Show the number of elements in Galois fields in terms of a prime number. Give one example of a group using a set of residues.

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