A standard science experiment is to drop a ball and see how high it bounces. Once the bounciness of the ball has been determined, the ratio gives a bounciness index. For example, if a ball dropped from a height of 10 feet bounces 6 feet high, the index is 0.6 and the total distance traveled by the ball is 16 feet after one bounce. If the ball were to continue bouncing, the distance after two bounces would be 10 ft 6 ft 6 ft 3.6 ft. Note that the distance traveled for each successive bounce is the distance to the floor plus 0.6 of that distance as the ball comes back up.
Write a program that lets the user enter the initial height from which the ball is dropped, the bounciness index, and the number of times the ball is allowed to continue bouncing. Output should be the total distance traveled by the ball.
Below is an example of the program input and output:
Enter the height from which the ball is dropped: 25
Enter the bounciness index of the ball: .5
Enter the number of times the ball is allowed to continue bouncing: 3

Answers

Answer 1

Answer:

Explanation:

height = float(input('Enter the height from which the ball is dropped: '))

bounci_index = float(input('Enter the bounciness index of the ball: '))

bounces = int(input('Enter the number of times the ball is allowed to continue bouncing: '))

distance = height

for i in range(bounces-1):

   height *= bounci_index

   distance += 2*height

distance += height*bounci_index

print('\nTotal distance traveled is: ' + str(distance) + ' units.')


Related Questions

Create a text file named employee.dat containing the following data: b. Write a C++ program to read the employee.dat file created in Exercise 5a and produce a duplicate copy of the file named employee.bak.

Answers

Answer:

1000 500 250 125 the output

Explanation:

write a program using integers userNum and x as input,  userNum divided by

x four times.  EX : If  the input is 2000 2 the output is 1000 500 250 125

If your internet were to go out, what steps would you take to troubleshoot to restore your service?

Answers

Answer:

Make sure all your wires are connected and electricity is flowing

Turn your computer off and on

Turn your modem off and on

is it only your computer that can't connect or also your phone? (if it's only your computer then something in the configurations if off)

Call internet provider is non of these work.

Explanation:

Write a program that reads the lengths of the sides of a triangle from the user. Compute the area of the triangle using Heron's formula (below), in which s represents half of the perimeter of the triangle and a, b, and c represent the lengths of the three sides. Print rhe area to three decimal places.

Area= √ s(s-a)(s-b)(s-c)

Answers

Answer:

The java program is as follows.

import java.util.Scanner;

import java.lang.*;

public class Area

{

   //variables to hold the values

   static double a, b, c;

   static double s;

   static double area;

public static void main(String[] args) {

    //scanner class object created

    Scanner sc = new Scanner(System.in);

 System.out.print("Enter the first side: ");

 a=sc.nextInt();

 System.out.print("Enter the second side: ");

 b=sc.nextInt();

 System.out.print("Enter the third side: ");

 c=sc.nextInt();

 s=(a+b+c)/2;

 //function of Math class used

 area = Math.sqrt( s*(s-a)*(s-b)*(s-c) );

 //result displayed with 3 decimal places

 System.out.printf("The area of the triangle is %.3f", area);  

}

}

OUTPUT

Enter the first side: 1

Enter the second side: 1

Enter the third side: 1

The area of the triangle is 0.433

Explanation:

1. The variables to declare the three sides of the triangle, the semi-perimeter and the area of the triangle are declared with double datatype. All the variables are declared at class level and hence, declared with keyword, static.  

2. Inside main(), an object of the Scanner class is created.

Scanner sc = new Scanner(System.in);

3. Using the Scanner class object, user input is taken for all the three sides of the triangle.

4. Following this, the semi-perimeter is computed as shown.

s=(a+b+c)/2;

5. The area of the triangle is computed using the given formula which is implemented as shown.

area = Math.sqrt( s*(s-a)*(s-b)*(s-c) );

6. The sqrt() method of the Math class is used while computing the area of the triangle.

7. The area is displayed with three decimals. This is done using the printf() method as shown.

System.out.printf("The area of the triangle is %.3f", area);

8. The program is saved with the same name as the name of the class having the main() method.

9. The class having the main() method is always public.

Discuss whether this is a good Web site to use as a source for reliable, academically sound information on neurotransmitters. Why or why not?

Based on what you have learned about neurotransmitters in this unit through the textbook and intellipath, do you think you would recommend a friend or family member opt for this testing? Explain your response.

Answers

Answer:

The answer to this question can be described as follows:

Explanation:

No, for all of this experiment, I will not remember a family member or friend. It is because the test results and arguments presented in it were not as relevant and fun.  

After all, they should be. They will often seem vague and uninteresting to make this same testing perception boring and tedious overall. In the above line, it is explained, that why they are not is used, that's why the answer to this question is no.

Design a program for Jones College. The current tuition is $12,000 per year, and tuition is expected to increase by 5 percent each year. Display the tuition amount for each year over the next five years (use a looping structure). Hint: You will need to use two assignment statements for calculating purposes. One will be an accumulating total assignment statement.

Answers

Answer:

current_tuition = 12000

for year in range(1, 6):

   increase_in_tuition = current_tuition * 0.05

   current_tuition += increase_in_tuition

   print("The tuition amount after " + str(year) + ".year: " + str(current_tuition))

Explanation:

*The code is in Python

Set the current tuition as 12000

Create a for loop that iterates 5 times

Inside the loop, calculate the increase in tuition. Add the increase in tuition value to the current tuition and print the current tuition.

Industrial Products is a small light-manufacturing firm that produces a variety of control systems for heavy industry. It has a network that connects its office building and warehouse that has functioned well for the last year, but over the past week, users have begun to complain that the network is slow. Clarence Hung, the network manager, did a quick check of the number of orders over the past week and saw no real change, suggesting that there has been no major increase in network traffic. What would you suggest that Clarence do next?

Answers

Answer and Explanation:

The suggestions are as follows

1. There may be a faulty configuration that leads to packet losses, those packets lost are retransmitted over and over again that may have caused network slowing down.

2. The route or direction for the transmission of packets over the network can shift, which in effect increases the time for the transmission of packets and thus leads to a slowed-down network.

3. Probability is the authentication server that would take too much time to respond.

4. There may be some applications that produce errors for certain requests and therefore fail to complete the process on time. The failures may be on the front end of the server or back end.

Upgrading the apps to new versions will solve the issue, as the upgraded software involve different fixes.

5. Users will be tested on what they're doing on their devices. Unacceptable use of the network services can also result to a network slow- down.

6. Certain bad cable connexions or poor signal strength can result in network slowing down.

The data files from a computer-assisted questionnaire software program can be downloaded at the researcher's discretion; however, different formatting options, including SPSS-readable files, may not be available. Group of answer choices True False

Answers

Answer:

False.

Explanation:

When data files are sourced from a computer-assisted questionnaire software program. The data files can be downloaded at the researcher's discretion, different formatting options can be used on the data files, and SPSS (Statistical Product and Service Solutions)-readable files are also available.

For instance, the CAPI (Computer-Assisted Personal Interview), CAWI (Computer-Assisted Web Interview)  and CASI (Computer-Assisted Self Interview) software program collects data from potential targeted population in a survey. These data can be downloaded by the originator of the survey with its SPSS (Statistical Product and Service Solutions)-readable files.

Also, if the researcher wishes to edit or format the data, it is very possible to achieve.

A cookie recipe calls for the following ingredients: • 1.5 cups of sugar • 1 cup of butter • 2.75 cups of flour The recipe produces 48 cookies with this amount of ingredients. Write a program that asks the user how many cookies they want to make and then displays the number of cups of each ingredient needed for the specified number of cookies in the following format: You need 5 cups of sugar, 3 cups of butter, and 7 cups of flour. Note: Don’t worry about formatting the numbers in the output.

Answers

Answer:

This program is written using c++ programming language

Comments are used to explain difficult lines

See attachment for .cpp source files

Program starts here

#include<iostream>

using namespace std;

int main()

{

// Calculate number of ingredient that makes up 48 cookies

float num_sugar = 1.5/48;

float num_butter =1.0/48;

float num_flour = 2.75/48;

//Declare integer variable to get number of cookies from user

int n;

// Prompt user for number of cookies needed

cout<<"Enter number of cookies: ";

cin>>n;

// Calculate equivalent amount of ingredient

num_sugar *= n;

num_butter *= n;

num_flour *= n;

// Display Result

cout<<"You need "<<num_sugar<<" cups of sugar, "<<num_butter<<" cups of butter, and "<<num_flour<<" cups of flour.";

return 0;

}

//End of Program

You are currently working in a mid-tier accounting firm. In an engagement meeting with a client, the management of your client is concerned that the audit tests that you perform will disrupt operations. Your client has recently implemented a data warehouse and the management suggests that you draw the data for analytical reviews and substantive testing from the data warehouse instead of the operational database. The management points out that operational data are copied weekly into the data warehouse and all data you need are contained there. Outline your response to the management’s proposal and mention any concerns you might have. (maximum 300 words)

Answers

Answer:

The answer "Only when an auditor is free to perform his responsibilities should the audit contract be accepted. There should be no stress on an investigator but no independence".

Explanation:

In the essence of the data store, huge storage of the information, that is used to collect from either a variety of sources within the same company. The DTC  is often used as an analytics capability (OLAP frameworks) because a transfer can be focussed on the data structure. It's also currently easier for organizations to end things or assessment and determine the best information with full of data from one destination.

Create a complete warehouse:  It is unlikely, however, that each one of your getting your information at that same single place seems to be the greatest flexibility for providing a database server.  

Below are various benefits of providing data storage:  

Saving time:  In the company's ease of accessing data from different sources at the data center, that ensures no time to obtain information from other sources is lost. Higher trust: Its data is automatically moved into your data center in an ordered structure, rather than being replaced by human activity, as you'll be more sure that your information is nice and clean, complete and accurate.  Growing knowledge: In the data, the warehouse designs the information so that it can be easily analyzed.  Increasing quality: it would be far easier to manage individuals who reach your data whenever an association position is integrated. Data warehouse allows security fully flexible, allowing users to access all the systems and lock all of them.  

Following are its specific approach to creating a data center, which will you need to develop the core architecture in three sections:  

The stocking(storage) algorithm,  Software and working  HR.

Storage: it's the foundation of the structure and your warehouse lives there. The inner server is the client's office 's internal device as well as the cloud is an electronic storage solution that relies on external servers.

Software: It is a valuable method of private cloud architectural design. For two classes, centralization and visual imagery are commonly isolated.  

Human resources: It is the part of data warehouse operations which is extremely important for a workable example. To keep your warehouse running, you must use new circumstances in your company.

Suppose we have a JDBC Connection object c to a database, and this database has a relation R (name, address, phone) Columns name and address are of string type, while phone is an integer. The following objects are also declare: Statement s-null; q = "SELECT address, phone FROM R" + "WHERE name = 'Bill Gates' ". ng Resultset r null; There are many methods that could be applied to the given variables. Whena method is applied to r, assume that it holds the result of query q. Then, identify a correct use of a method from the list below. oa) r s.executeQuery (q)i b) r-executeQuery(q) O) c) string a = r.ge t String (0); d) String x - r.getInt(1);

Answers

Answer:

The correct answer is option A r s.executeQuery (q) ;

Explanation:

Solution

The execute Query()  method is a method or technique derived from Statement class object. this type of method or techniques implements or executes  the SQL query and returns the table in the way of Result Set object.

The Option B, C, and the D in this case is not correct.

why ‘illegal contract’ is a contradiction in terms?

Answers

Answer:

An Illegal contract or agreement is a contraction in terms when a contract is a legal obligation, illegal contract is viewed as a contradiction in terms.

Explanation:

Solution

An Illegal contract is called a contradiction for the following reasons listed below:

When a contract has a term that is obligatory, it is called a legal contract.

According to the rules of terms, when a contract is not done legally, it is considered an illegal contract.

On the common law of a contract or agreement, when a court does not apply or impose in any case or otherwise for a contract, it is seen as illegal.

Bell LaPadula (BLP) is a security model
a) that can ensure the confidentiality of the classified data as well as its integrity
b) that can ensure the confidentiality of the classified data but not its integrity
c) that can ensure neither the confidentiality of the classified data nor its integrity
d) that can't ensure the confidentiality of the classified data but can its integrity

Answers

Answer:

Option (b) is the correct answer to this question.

Explanation:

BLP model can ensure classified data confidentiality, but it is not integrity. The Bell-LaPadula model is about secrecy. As just that, having read information would jeopardize privacy and security at a greater position than what has been permitted. The Bell – LaPadula Model (BLP) is a finite state model being used for political and police installations to implement authentication.

Other options are incorrect because they are not related to the given scenario.  

Other Questions
Please answer this correctly I want genius or expert people to answer this correctly. A main reason to improve product quality is that doing so can achieve which of the following? A. Deepening the product mixB. Extending the product life cycleC. Lowering the cost to make the productD. Creating product line extensions The lava from a volcano can travel up to 100 km/hr if a village is located 3.6 mi from the volcano how many minutes will it take the lava to reach the village A cake is made out of 2 identical trapezoids. Each trapezoid has a height of 11 inches and base of 9 inches and 14 inches . What is the area of one of the trapezoid pieces which of these is a benefit of health care access that lowers the risk of chronic disease like skin cancer Find the indicated side of the right triangle. Please help Which sentence should be revised to eliminate amisconception?Read the paragraph(1) Baseball is unique because it is the only sport inAmerica that does not have a time clock-although tennisand softball are not timed, either. (2) Instead, games lastfor nine innings, unless there is a tie after the ninth, inwhich case they go extra innings (3) Nine-inning gameslast an average of three hours. (4) Extra innings tack ontime to an already long game, but the end is always themost exciting part (5) Most people in the US watchbaseball and are fans of their hometown team,sentence 2sentence 3sentence 4sentence 5 The specific heat of ethanol is 2.44 J/g C. How many kJ of energy are required to heat 50.0 grams of ethanol from -20 C to 68 C? (heat equation) One of the outcomes that has been identified in the care of a client with a new suprapubic catheter is that he will demonstrate the correct technique for cleaning his insertion site and changing his catheter prior to discharge. When should this outcome be evaluated?1. When the client is discharged2. During the first home health care visit.3. Throughout the client's hospital admission4. Once the primary care physician has written a discharge order A running man cannot stop as soon as he wants to stop. Explain why ?Plz reply fast Por que decimos que los seres vivos son sistemas abiertos WRITE AN EQUATIONyou bought a magazine for $5 and four erasers. you spent a total of $25. write a tip step equation to find the cost of the erasers. 5+x=25. 5+4x=25. 5x=25. 25 - 5 =-4x What is the area of the parallelogram. A. 131.1 m B. 197.34 m C. 262.2 m D. 394.68 m Which of the following was a key cause of World War II?O A. The establishment of alliances between Japan, Russia, and GreatBritainO B. The dangerous and aggressive expansion of totalitarian nationsO C. The Soviet Union's efforts to spread communism around the worldD. The assassination of Archduke Franz Ferdinand by SerbiannationalistsSUBMIT O Periodontist4 Multiple ChoiceProtective bases are placed when it is necessary to protect the pulp before the restoration is placed, because without this protection there may be O Premature loss of the restorative materialO Premature contact on the restorative materialO Post-operative sensitivity and damage to the pulpo Occlusal trauma Which shows a perfect square trinomial please help soon What is the area of a circle with a radius of 6 inches?9. in.O 125 in.O 36in 281 in 2 what are the coordinates of D what are examples of finance careers But Mr. Reagan has denied that he knew of the diversion.In a videotaped deposition provided early last year inadvance of Mr. Poindexter's trial, the former Presidentsaid he was unable to recall virtually any specific detailsof the affair---David Johnston,"North Says Reagan Knew of Iran Deal,"New York Times, 1991Why does Reagan's videotaped deposition make hisinvolvement in the Iran-Contra Affair uncertain?He was required to provide the deposition.He was unable to recall details.He was not with Poindexter.He calls the arms deal an affair.