4. Write a program that computes the following equation: 1 2 y = 1+ - + - ... .2 xn
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere…
A: Volume of a Sphere = 4/3*π*r³Area of a Sphere = 4*π*r²
Q: rite a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time…
A: Program approach: Input age, weight, heartRate, and time. Compute women calories calories_woman…
Q: Write a Program to calculate the electromagnetic force between two electrons placed (in vacuum) at a…
A: As the programming language is not mentioned as per our policy i am solving this question in python…
Q: There are four different points on a plane, P(xp,yp), Q(xq, yq), R(xr, yr) and S(xs, ys). Write a…
A: Checking if four points given are making lines AB and CD are orthogonal on the plane or not in…
Q: turbo c++ program of Grass sod costs 35.00 per square meter and fencing costs 100.00 a linear foot.…
A: Include Header files Declare the Double variables L,W,p,SC,FC, meter, tot,sod=35.00 and…
Q: What will be the output of the below program: x=5 y=2 z=x+y print("x*y=",z)
A: We are given a code where we are going to find the output. NOTE: Whatever we write inside print…
Q: 3. For three resistors connected in series, the total resistance is the sum of the individual…
A: Given: Resistors are connected parallel Therefore Total resistance is Total Resistance =…
Q: Write a program to calculate velocity of a car when distance and time are given by the user.
A: C Programming: C programming is a procedural language that was developed in Bell Laboratories by…
Q: Write a program to enter a value of x and compute the value of y where x if x ≥0 -x if x < 0 y =
A: #include <stdio.h>int main(){ int x,y; printf("Enter value of x: ");…
Q: Write a program to calculate the following equation cos(x) 2+x* ly? – x|
A: Start. Read the input. Perform the operations using the calculations given. Print the output. Exit.
Q: What will be the output of the below program: x=5 y=2 z=X+y print("x/y=",z)
A: Here, Code is given.
Q: Write a program to calculate the following equation cos(x) 2 * x * + ly? – x|
A: Given: We have to write a program to calculate the following equation. You have not mentioned…
Q: Write a program that prompts the user to input coefficients A, B, and C of a quadratic equation in…
A: The nature of roots depends on the value of discriminant So first calculate the discriminant and…
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere 4…
A: The following step calculates the area and volume of a sphere with a given radius r. To find area of…
Q: write a program to calculate cube of a number, the cube
A: calculate the cube and then print the cube of that number using function: The following code shown…
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere 4…
A: Given: The program is written in C language to find area and volume of sphere.
Q: Write a program, which: inputs 50 numbers outputs how many of the numbers were > 100 langiage C#
A: #include <stdio.h> int main(){ int x, i, sum=0; x=0; int A[50]; printf("Input 50…
Q: Q3. a) Write a program to find the resultant (R) of two forces F1 & F2 with angle 0 between them as:…
A: #include<bits/stdc++.h> using namespace std; int main(){ int f1,f2; cin>>f1>>f2;…
Q: Design a program that will compute the product of all integers that are divisible by 5.
A: Algorithm: Start Read number of values i.e n Initialize prod to 1 If n>0, read a number m and…
Q: Write a program that outputs prime numbers. This program should work as follows:
A: here in the given question ask for a program as per question statement.
Q: What is the value of x if m-4 and b=12? def mystery(m, b): y = 71 x = (y - b) / m return x…
A: Required: Output of the given python program
Q: Write a program that computes for the Electric Field and Electric Potential at a given point in a…
A: There are three possible conditions and use if-else if ladder to compare the values of d and r
Q: 1. What will the following program print out: >>> x - 15 >>> x- x +5 print(*) >>> a. 20 b. 15 с. 5…
A: As given, we need to find out the output of the following code - x = 15 x = x + 5 print(x)
Q: Write a program to calculate the total cost of the vehicle by adding basic cost with: i.excise…
A:
Q: Write a complete program that will read two integer values. Your program should compute and display…
A: as you have not specify any language so I give the code in Python along with outout and code…
Q: The following equations estimate the calories burned when exercising (source): Women: Calories = (…
A: Though the question did not specify the programming language, the program has been developed using…
Q: 2. Evaluate the following expressions for m = 6, n=2 b= 0, c = 0, d = 0, and e = 0 (i) a+=4+ ++m*n:…
A: After evaluation: (i) m=7 n=2 a=18 b=0 c=0 d=0 e=0 (ii) m=5 n=2 a=0 b=0 c=0 d=0 e=0…
Q: The following equations estimate the calories burned when exercising (source): Women: Calories = (…
A: Step1 : inputs age (in years), weight (in pounds), heart rate (in beats per minute), and time…
Q: Q1}Depend on the value of the variable w, write program that calculate the following: 1 y = + Vx…
A: A mathematical expression can be evaluated using mathematical operators and functions. Regular…
Q: The formula for the computation of the volume of cylinder is V = Tr?h. Write a program that will…
A: Algorithm to find the volume of the cylinderStep1: Set the constant Pi=3.1415Step2: Declare…
Q: • Write a program that computes the average of 5 students grades which are entered by the user.
A: According to the guidelines we are supposed to answer only 1 question. So I am solving the first…
Q: The following equations estimate the calories burned when exercising (source): Women: Calories = (…
A: Program: #definition of main function if __name__ == '__main__': #get the inputs data =…
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Scl. -The area of sphere 4…
A: Given: The program is written in C language to find area and volume of sphere.
Q: What will be the output of the below program: x=6 y=2 z=x*y
A: As per code syntax , it is written in python language.
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere 4…
A: Given: The program is written in C language to find area and volume of sphere.
Q: Q4:// Write a program to calculate the volume of one Mole of an ideal gas as a function of pressure…
A: Here have to determine program for calculate volume of mole gas.
Q: Modif
A: NOTE: Programming language is not mentioned, so doing in C++ In this question, we are asked to print…
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere =…
A: Given: The program is written in C language to find area and volume of sphere.
Q: 5. Write a program that finds the sum of the following equation: :أكتب برنامج يقوم بإيجاد المجموع ل…
A: Name of programming language is not given above problem statement hence we are going to use c++…
Q: 1- Write a program to compute the value of y: y =+ 3 n Where %3D ... x2 x3
A: #include<iostream> #include<math.h> using namespace std; int main(){ int x,n;…
Q: 4- Write a Program to calculate the electromagnetic force between two electrons placed (in vacuum)…
A: Given: Charge of an electron q = 1.6*10-19C Distance between the electrons = 2*10-13 m K= 9*109 The…
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere =…
A: A sphere is a three dimensional object that is rounded in shape. The sphere is defined in three axes…
Q: Write a program that computes the following equation: 1 2 y = 1++ x2 п + - ...
A: Given that, Write a program that computes the following equation: y = 1+1x+2x2+3x3+....+nxn
Q: The following equations estimate the calories burned when exercising (source): Women: Calories (…
A: Required:
Q: Write a program that computes the rent in five years and the total rent for one year starting five…
A: Input Rent for a month and Calculate Rent for 5 years and also display rent per year
Q: Print a big 'F':(static) ###### # # ##### # # #
A: Begin Create a function that prints multiple hashes- 5 hashes Create a function that prints a single…
Q: 2. Write a program to calculate time one will take to climb top of statue using stair given, there…
A: C++ code :-
Q: 3) Write a program to find a. Surface area (A= 2 r n) b. volume(v=r ² a h) of a cylinder using…
A: Algorithm: Step-1: Start Step-2: Take input radius and height from the user. Step-3: Calling…
Step by step
Solved in 2 steps with 1 images
- The following equations estimate the calories burned when exercising (source): Women: Calories = ( (Age x 0.074) — (Weight x 0.05741) + (Heart Rate x 0.4472) — 20.4022 ) x Time / 4.184 Men: Calories = ( (Age x 0.2017) + (Weight x 0.09036) + (Heart Rate x 0.6309) — 55.0969 ) x Time / 4.184 Write a program with inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output calories burned for women and men. Output each floating-point value with two digits after the decimal point, which can be achieved by executingcout << fixed << setprecision(2); once before all other cout statements. Ex: If the input is: 49 155 148 60 the output is: Women: 580.94 calories Men: 891.47 caloriesWrite a program that plots the sine function, as shown in Figure 5.5a.Write a program that calculates the potential energy of 3 charges q1 = 1, q2 = 2, q3 = 3located at points (1, 2, 3), (3, −4, −5), and (−4, 2, −6) respectively. The units are coulombs forcharge and meters for coordinates. The energy is given by the expression
- Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the number of years and days for the minutes. For simplicity, assume a year has 365 days. Use C++ program.The following equations estimate the calories burned when exercising (source): Women: Calories = ( (Age x 0.074) — (Weight x 0.05741) + (Heart Rate x 0.4472) — 20.4022 ) x Time / 4.184 Men: Calories = ( (Age x 0.2017) + (Weight x 0.09036) + (Heart Rate x 0.6309) — 55.0969 ) x Time / 4.184 Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output calories burned for women and men. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:print('Men: {:.2f} calories'.format(calories_man)) Ex: If the input is: 49 155 148 60The following equations estimate the calories burned when exercising (source): Women: Calories = ( (Age x 0.074) — (Weight x 0.05741) + (Heart Rate x 0.4472) — 20.4022 ) x Time / 4.184 Men: Calories = ( (Age x 0.2017) + (Weight x 0.09036) + (Heart Rate x 0.6309) — 55.0969 ) x Time / 4.184 Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output calories burned for women and men. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:print('Men: {:.2f} calories'.format(calories_man)) Ex: If the input is: 49 155 148 60 Then the output is: Women: 580.94 calories Men: 891.47 calories
- Translate the statement into equation: When three is multiplied by one less than a number x, the result is 10 less than 5 times the number x.Write a computer program for calculating carburization heat treatments. The program should ask the user to provide an input for the carbon concentration at the surface (cs), and the concentration of carbon in the bulk (c0).Write a program to calculate velocity of a car when distance and time are given by the user.
- Write a program that calculates the change due a customer by denomination; that is, how many pennies, nickels, dimes, etc. are needed in change. The input is to be the purchase price and the size of the bill tendered by the customer ($100, $50, $20, $10, $5, $1)Write a program to calculate the surface area and volume of a square pyramid. A square pyramid has a base that is square and all triangle faces are congruent isosceles triangles. (An isosceles triangle is a triangle in which two of the sides are equal. Length of the base: a Height of the pyramid: h Volume = a2h/3 Slant height, s = sqrt(h2 + (a/2)2) This is the Pythagorean Theorem part. Area of one pyramid side = s*a/2 For this program you are to determine two things about a square pyramid. 1) the surface area of the four sides. 2) the volume. Do not include surface area of the base. Test case 1: Height: 5.0' Base: 2.5' Test case 2: Height 2.5 Base: 4.3' The program asks the user to enter the pyramid height (in feet) and length of the base (in feet). Your program will need to determine surface area, and volume by using pythagorean theorem. Your output should neatly show the height, base, total surface area, and volume of the pyramid using 33 decimal place of…Modify the program that computes floor area to compute and output the number of12-inch square tiles needed to tile the floor.