Write the algorithm and a program that prompts the user to input the masses of the bodies and the distance between the bodies. The program then outputs the force between the bodies.
Q: A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10…
A: Step 1:- The algorithm is defined as a set of instructions that is very helpful for design the…
Q: A program for entering a number. If 2 points the number is greater than 100, it prints the number,…
A: Ans-: 1) option (a) 2) false 3) option (a)
Q: Q2: If you know that the marks should be included as follows: Brand The ratio A 100-90 B 90-80 C…
A: As the programming language is not mentioned here, we are using PYTHON The code and output…
Q: Madison County collects property taxes on the assessed value of property, which is 60 percent of its…
A: Madison County collects property taxes on the assessed value of property, which is 60 percent of its…
Q: A bag of biscuit can hold 22 biscuit, and a container can hold 70 bags of biscuit. Write a program…
A: #include <iostream> using namespace std; int main(){ int…
Q: Average acceleration is defined as the change of velocitydivided by the time taken to make the…
A: Program code: //include the header files #include <iostream> using namespace std; //define…
Q: The following formula gives the distance between two points, (x1, Yı) and (x2, y2) in the Cartesian…
A: we have take two co-ordinates (x1, y1) and (x2, y2) of a two dimensional graph. Find the distance…
Q: Suppose you want to deposit a certain amount of money into a savings account with a fixed annual…
A: The first three steps are to get the inputs from the user which are the annual interest rate Number…
Q: A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a…
A: Here ,the calculation is done as:
Q: A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a…
A: EXPLANATION: - The variables in C++ need to declared prior to using it. Also, it is advised to…
Q: In a right triangle, the square of the length of one side is equal to the sum of the squares of the…
A: #include<iostream> #include<math.h> using namespace std; int main()…
Q: Write a program that finds the smallest number i
A:
Q: Input: your program should ask the user for the amount of principal, the interest rate as a percent…
A: #include <iostream>#include<math.h>#include<iomanip>using namespace std; int…
Q: Assuming that all residents are given the first 1000L of water for free by the municipality, then…
A: //code in c program #include<stdio.h>#include<conio.h> int main() { const price=2; int…
Q: The following formula gives the distance between two points, (x1, y1) and (x2, y2) in the Cartesian…
A: A required program is as follows, //Include header files #include<iostream>…
Q: When you make taffy (a pliable candy), you must heat the candy mixture to 270 degrees Fahrenheit.…
A: Given:
Q: A country charges income tax as follows based on one’s gross salary. No tax is charged on the first…
A: 1) Since you have not specified programming language, I have written program in python 1) Below is…
Q: The great circle distance is the distance betweentwo points on the surface of a sphere. Let (x1, y1)…
A: Note: Programming language is missing in the question. So we will answer this program in Java…
Q: Write a program thatreads in investment amount, annual interest rate, and number of years and…
A: Program Plan: Import java util.scanner which contains utility classes for scanner object create the…
Q: A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be,…
A: C++ Code for the given Question #include<bits/stdc++.h>#include <iostream> using…
Q: Write a code for the following problem: “If the day of the week is Monday through Friday, then a…
A: There are several ways to implement this code structure. We can use if / Then / Else and conditional…
Q: In a right triangle, the square of the length of one side is equal to the sum of the squares of the…
A: Programming language is missing in the question. So we will answer this program in C++ language. If…
Q: Read your name and one numeric value [Omani Rial], print the following menu as shown in below…
A: Please find the answer below
Q: In a program, write the program's algorithm (algorithm like step by step, not code screenshot) that…
A: In a program, write the program's algorithm (algorithm like step by step, not code screenshot) that…
Q: Write a program that prompts the user to enter the amount of cash, then your program should…
A: Start Print the name. Ask the user to enter the amount the cash. Find the zakat using formula. Print…
Q: Amanda and Tyler opened a business that specializes in shipping liquids, such as milk, juice, and…
A: you does not mention programming language so we are giving solution in C++
Q: The following table shows the approximate speed of sound in air, water, and steel:Write a program…
A: Given: You can calculate the amount of time ittakes sound to travel in air with the following…
Q: Write a program that asks the user to enter the number of students, then enter the grades of these…
A: I have provided C++ CODE along with CODE SCREENSHOT and 2 OUTPUT SCREENSHOTS------------
Q: A company want to raise the salary of its employee. The raise rate is given as following: • The…
A: THIS IS A MULTIPLE QUESTION BASED PROBLEM. ONLY FIRST QUESTION IS ANSWERED. KINDLY SEND THE…
Q: The following formula gives the distance between two points, (x1, yl) and (x2, y2) in the Cartesian…
A: PROGRAM CODE: #include<iostream>#include<math.h>#include<iomanip>using namespace…
Q: A country charges income tax as follows based on one’s gross salary. No tax is charged on the first…
A: Check further steps for the answer :
Q: In a triangle, the sum of the 1st and 2nd side must always be greater than the 3rd side. Create a…
A: logic:- read three sides. Check if it is valid or not by using if first>0 && second>0…
Q: Suppose a right triangle is placed in a plane as shown below. The right-angle point is at (0, 0),…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Define…
Q: During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer…
A: C++ used to answer this question
Q: When Jacob Steinberg began his trip from California to Vermont, he filled his car’s tank with gas…
A: This program is used to calculate and find the car's gas mileage at any time. We know the formula to…
Q: Write the algorithm and draw the flow chart for a program that calculates and displays a person’s…
A: Program Plan:1. Read the input to the person's weight and height from the user.2. Formula to…
Q: Write a program using else if to input the number of students(stu) and number of teachers(tea) in…
A: C used to answer this question
Q: A contractor orders, say, 30 cubic yards of premixed concrete toconstruct a patio that is to be,…
A: Code : #include <iostream> #include <cmath> using namespace std; int main() {…
Q: Given an airplane’s acceleration a and take-off speed v, you can compute the minimum runway length…
A:
Q: In Ruritania, fractional numbers are rounded up to the next integer if the fractional part is at…
A: Note: For the fractional numbers, the program which is given as a screenshot in the question, is…
Q: The following formula gives the area of a triangle and volume of a triangular prism. Area = s(s –…
A: The cost of the carpet per square meter is = area * 1010.85
Q: Q3: Write the algorithm for a program that calculates the cost of the phone bill according to the…
A: The algorithm is shown below. Algorithm PhoneBill(minutes) //Algorithm to find teh total…
Q: The following formula gives the distance between two points, (x₁,y₁) and (x₂,y₂) in the Cartesian…
A: The, given functions are; distance: This function takes as its parameters four numbers that…
Q: In this exercise, we will either have a circle inside a polygon for which we will calculate the…
A: Your C++ program is given below as you required with an output.
Q: A bag of biscuit can hold 22 biscuit, and a container can hold 70 bags of biscuit. Write a program…
A: Input : Total number of biscuits Number of biscuits in a bag Number of biscuit bags in a container…
Q: (Converting a given date to the day number in the year) Write a program that prints the day number…
A: Algorithm: Start Store the number of days of a normal year in a list named regYear and number of…
Q: KEMBOJA Hospital provides top-notched medical care with comfortable rooms. The following are the…
A: Note : as per company guidelines we are supposed to answer only first 3-sub parts . please repost…
Q: Suppose that you work for a beverage company. The company wants to know the optimal cost for a…
A: I have given an answer in step 2.
Q: Write a program that asks the user to enter "air", "water", or "steel", and the distance that a…
A: Introduction of Program: In this Java program, the speed of sound in Air=1100 feet per second, speed…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
- Newton’s law states that the force, F, between two bodies of masses M1
and M2 is given by:
F = k
in which k is the gravitational constant and d is the distance between the
bodies. The value of k is approximately 6.67 x 10-8 dyn. cm2/g2. Write the
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Airline companies apply baggage restrictions for their passengers. An airline company has decided to apply a 10kg limitation for passengers' hand luggage and 20kg for their normal baggage. When passengers arrive, they enter their hand and normal luggage weight from the keyboard. If passengers exceed their normal baggage allowance of 10 dollars per gram, they pay 12 dollars per kg. Accordingly, write the program that calculates the baggage price of the airline they will go to according to the baggage values entered by the arriving passenger and keeps this from closing the program for each passenger. Note: If hand and normal baggage allowances are stretched below the maximum value, the payment amount will be considered not negative. An example printout is given on the right. Geri bildirim gönderSuppose two line segments intersect. The two endpoints for the first line segment are (x1, y1) and (x2, y2) and for the second line segment are (x3, y3) and (x4, y4). Write a program that prompts the user to enter these four endpoints and displays the intersecting point. As discussed in Programming Exercise 3.250, the intersecting point can be found by solving a linear equation. Use the LinearEquation class in Programming Exercise 9.11 to solve this equation.A-Write a program to compute the drag force F, (in Newton) When a body swims through fluid, the drag force is given by 1 F₁ =pV²ACD Take: p= 1000 kg/m3 is the density of fluid, V 1.25 (m/s) is the swimming speed, A=0.25 m² is the frontal area of the body, Cp=0.09 is the coefficient of drag. Matlap
- A mass m is attached to the end of a rope of length r 3 meters. The rope can only be whirled around at speeds of 1, 10, 20, or 40 meters per second. The rope can with stand a maximum tension of T = 60 Newtons. Write a program where the user enters the value of the mass m, and the program determines the greatest speed at which it can be whirled without breaking the rope. Assume that the mass m is less than 100 kg. Hint: T = mv2 /r. Drop Your Code here: #Set the rope length #Set the maximum tension #Set the message #Read the mass value #Set a list of possible rotation speed #Set the size of the list Drag your statements from the following choices: length = 3 max_tension = 60 message = "The greatest speed without breaking the rope is:" mass = float(input(">>>Enters the value of the mass m: ")) rotation_speed - [1. 10, 20, 40] N= len(rotation_speed) pos - N-1 for i in range (N): tension = mass"rotation_speed[i)*2/length if tension>max tension: pos i-1 break…A pendulum is simply a weight attached to a fixed point, usually through a string or a rod, and it swings freely backward and forward. The period of a pendulum is the amount of time that it takes to go from one point to another as it swings. Length of pendulum SWING T = PERIOD of the swing The formula to compute the period (7) is the following: T = 2π g=9.8 m/sec² L is the arm length of pendulum in meters. The unit of the period (7) is seconds. Write a program that will generate a table that will show the period (7) for several pendulums with lengths (L) in the range 10cm ≤L≤ 100cm in increments of 2cm. Your code must: 1) include a user-define function that performs a single period calculation, use the following function prototype: void pendulumPeriod(float length, float *period) 2) display to the monitor the length and period of the pendulums in table format with a header and units. 3) save the lengths and period of the pendulums to a file.Given an airplane's acceleration and take-off speed v, you can compute the minimum runway length needed for an airplane to take off using the following formula. length=v^2/2*a. write a program that prompts the user to enter V in meters and acceleration an in meter/second and display the minimum runway length.
- Write a program will then ask for the prelim grade, midterm grade and final grade of the student. The program should only accept grades 100 and below. After getting the three grades, the program should compute for the semestral grade. The computation of the semestral grade is as follows: 30%*PrelimGrade + 30%*midtermgrade + 40%finalgrade After inputting all the grades, the screen should clear again and will proceed to another screen.Write a program will then ask for the prelim grade, midterm grade and final grade of the student. The program should only accept grades 100 and below. After getting the three grades, the program should compute for the semestral grade. The computation of the semestral grade is as follows: 30%*PrelimGrade + 30%*midtermgrade + 40%finalgrade After inputting all the grades, the screen should clear again and will proceed to another screen. Use C ++ program, cin, cout, and iostream.Given an airplane’s acceleration a and take-offspeed v, you can compute the minimum runway length needed for an airplane totake off using the following formula:length =v2/2aWrite a program that prompts the user to enter v in meters/second (m/s) and theacceleration a in meters/second squared (m/s2), then, displays the minimum runwaylength. Here is a sample run: Enter speed and acceleration: 60 3.5The minimum runway length for this airplane is 514.286
- Write a program to calculate the position of a projectile at a given time t. For an initial velocity vo and angle of departure ®g, the position is given by x and y coordinates as follows (note: the gravity constant g is 9.81 m/s²): X= V0 Cos (0)t y=vo sin (8,)t –; gt The program should initialize the variables for the initial velocity, time, and angle of departure. It should then call a function to find the x and y coordinates, and then another function to print the resultsSuppose two line segments intersect. The two endpointsfor the first line segment are (x1, y1) and (x2, y2) and for the second line segment are (x3, y3) and (x4, y4). Write a program that prompts the user to enter these four endpoints and displays the intersecting point.Develop a program to calculate the height of a building. To measure how tall the building is you go to the top floor and let a stone fall to the ground, while measuring the time it takes to reach the ground. To increase the precision of the calculations the experiment is conducted a number of times. The user should input how many times he conducted the test and input the time (t) for each test. Calculate the height h given the equation h= ½ (g * t ³) where t is the time and g= 9.81 m/s (this is a constant). The program should print out the height expressed in meters.