You are going for a drive, but detour takes you out of the way of your destination. You drive north for 10 miles, turn right and drive east for 5 miles, turn to the north and drive for 3 miles, drive west for 10 miles, and arrive at your destination.
Safawi kicked a ball with an initial speed of 20 ms-1 at 30o angle. If the ball experienced a constant vertical acceleration of -9.81 ms-2, calculate the ball’s maximum height and distance. Explain how soccer player could apply the force of summation theory to optimize his kicks performance.
Assume that you are system engineer and the designated bank has assigned you a task that if any customer wants to use her internet banking facility, he must have to enter two different 8-bit pin codes one by one. Computer gets these two 8 bits numbers, converts them into binary and performs addition on both of these numbers. If the result matches with the code that is stored for this account, internet banking facility will be provided otherwise, the system will not allow the use of internet banking.
1. Design an algorithm and the corresponding flowchart for finding the sum of
the numbers 2, 4, 6, 8, …, n
2. Using flowcharts, write an algorithm to read 100 numbers and then display the
sum.
3. Write an algorithm to read two numbers then display the largest.
4. Write an algorithm to read two numbers then display the smallest
5. Write an algorithm to read three numbers then display the largest.
6. Write an algorithm to read 100 numbers then display the largest.
Design an algorithm and the corresponding flowchart for finding the sum of
the numbers 2, 4, 6, 8, …, n
1: Define a function that takes an argument. Call the function. Identify what code is the argument and what code is the parameter
2: Call your function from Example 1 three times with different kinds of arguments: a value, a variable, and an expression. Identify which kind of argument is which.
3: Create a function with a local variable. Show what happens when you try to use that variable outside the function. Explain the results.
4: Create a function that takes an argument. Give the function parameter a unique name. Show what happens when you try to use that parameter name outside the function. Explain the results.
5: Show what happens when a variable defined outside a function has the same name as a local variable inside a function. Explain what happens to the value of each variable as the program runs.
The probability that aa new automobile has a backup camera is 0.6. The probability
that a new automobile has a GPS system is 0.4. The probability that a new
automobile has both a backup camera and GPS is 0.2. If a new automobile is
selected at random, what is the probability that it has neither a backup camera nor a
GPS?
he volume of a sphere is 4/3πr3, where π has the value of "pi" given in Section 2.1 of your textbook. Write a function called print_volume (r) that takes an argument for the radius of the sphere, and prints the volume of the sphere.
Call your print_volume function three times with different values for radius.
Include all of the following in your Learning Journal:
A neighbor barking dog can be both a positive externality and a negative externality .under what circumstances would a dogs bark be positive externality? Under what circumstance would a dog bark be an negative externality
Safawi kicked a ball with an initial speed of 20 ms-1 at 30º angle. If the ball experienced a constant vertical acceleration of -9.81 ms-2, calculate the ball’s maximum height and distance. Explain how soccer player could apply the force of summation theory to optimize his kicks performance.