1. Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The program will ask the integer values of major axis length (a) and minor axis length (b) as the inputs. Give the answers in 2 decimal numbers. a Area A = nab a2 + b2 Perimeter P = 2n 2 Which; a-> Major axis length, b-> Minor axis length, T = 3.14159
Q: Write a program to calculate the total calories in a lunch. Each lunch comes with a pickle that is 7…
A: The below program is solved using python programming.
Q: (b) Write a program that produces a triangular grid of numbers as a seating chart (start at 1 in the…
A: C++ code for given problem Statement- #include <iostream>using namespace std;//main methodint…
Q: Write a program that calculates the potential energy of 3 charges q1 = 1, q2 = 2, q3 = 3 located at…
A: C program: #include <stdio.h>#include<math.h> // function to print distancefloat…
Q: Write a C++ program, that asks a user to enter the width and length of the rectangle and then find…
A: Coded using C++ Language.
Q: Write a program(PYTHON) that prompts the user to enter the three points (x1, y1), (x2, y2), and (x3,…
A: According to the Question below the solution: Output:
Q: Write a program to find the equivalent series and parallel resistance for 3 resistor values. Your…
A: As there is no programming language mentioned in question . program is attempted in c language user…
Q: Write a program in python that reports the contents of a compressed-gas cylinder based on the first…
A: color_code = input("Enter a character, representing the color of the cylinder: ") # taking…
Q: Write a program that reads the height h and radius r of Right Circular Cone and finds the surface…
A: Please find the answer below :
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere =…
A: In the above code, it has been asked to print the area and volume of the sphere, in the following…
Q: 1) Write a program to make a table of the physical properties for water in the range of temperatures…
A: Hey, I am writing the required code for the above stated problem. Please do like it. I am writing…
Q: Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The progran…
A: Given that, Write a program to compute and display the perimeter (P) and the area (A) of an ellipse.…
Q: a * (b - c / d) + ++ Num2 where a, b, c and d are float type variables. b) Write a program that…
A: The solutions for the given three scenarios is being explained in the below steps which is being…
Q: Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The program…
A: logic: Declare variables and assign pi value as 3.14159 First of all accept major axis length minor…
Q: Write a program that accepts a number corresponding to a plane figure: 1. Right Triangle 2.…
A: import math choice = int(input("1. Right Triangle \n2. Rectangle \n3. Circle\n")) if choice == 1:…
Q: 1. Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The…
A: NOTE - I have used the Java programing language. Here I have taken input from the user and then…
Q: 1. Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The…
A: Find the required code in python as language not mentioned given as below and sample output :
Q: The ancient Greeks classified numbers geometrically. For example, a number was called "triangular"…
A: A number is said to be a triangular number if the sum of the dots in the number is equal to the sum…
Q: Write a program that prompts the user to enter threepoints, (x1, y1), (x2, y2), and (x3, y3), of a…
A: Given: Three vertices of a triangle will be provided by the user. Objective: The area of the…
Q: Write a program that takes the X-Y coordinates of a point in the Cartesian system and displays a…
A: We have to write Code and draw a flowchart for the following question:
Q: 4) Write a general program that takes x-y coordinates of a point in the cartesian plane and prints a…
A: The complete code is given below with the output.
Q: Write a program that first reads the value n, which is the number of numbers to average. It should…
A: Check the python code below.
Q: Write a program to show the conversion of Celsius-to-Fahrenheit for the celsius starting with 10 and…
A: As no programming language is mentioned, it is solved using C++
Q: Q3/ Suppose a movie theater has 36 seats, laid out in a rectangular six rows by six seats. Let the…
A: Sample Response: //C++ program to print the price of the ticket by using row number and seat…
Q: Write a program, which takes a positive integer as input, and prints which powers of 2 does the…
A: I give the code in C (as you have not mentioned any language) along with output and code screenshot
Q: 1. Make a program to accept two integers X and Y, then compute the difference. If X-Y is Negative,…
A: The Answer is
Q: Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D,…
A: Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D,…
Q: Write a program that reads three integer numbers and displays their square ar cube value using…
A: C++ code: #include <iostream> using namespace std; int main(){ //take array of 3 integers…
Q: Write a program to make a table of the physical properties for water in the range of temperatures…
A: code: %set the end range of temperature endtemp = 323; %display the values to be computed…
Q: Write a program that reads from the user a character ('q' or 'c'). If the character is 'c', the…
A: Note: As the programming language is not mentioned, program is written in c++ ALGORITHM Step 1:…
Q: Write a program which input radius of circle and compute area of it. Then input the length of side…
A: EXPLANATION - Create a program . Declare three variable radius , length , area1 , area2 . Take…
Q: Write a program that inputs a line of text from the user and counts; the total numbers of…
A: take user input of a line of text vowelCount ← 0 : variable for calculation and show output vowel…
Q: WRITE A PROGRAM TO CALCULATRE THE AREA OF A RECTANGLE OF LENGTH =5 CM AND BREADTH=8CM. CALCULATE THE…
A: Hey, thank you for your question. There are multiple subparts submitted to your question. As per our…
Q: Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The program…
A: #include<stdio.h>#include<math.h> int main() { float a; float b; float…
Q: Write a program that computes the fuel efficiency of a multi-leg journey. The program will first…
A: We need to write a Python program for given scenario.
Q: Given a zero-terminated sequence of non-zero integers in order from smallest to largest, output the…
A: Explanation: #first create a list in python. List = [-10 ,-4,-2,1,5,6,8,9,0] #Then create a variable…
Q: 1. Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The…
A: ALGORITHM:- 1. Take input for a & b from user. 2. Calculate area and perimeter using that. 3.…
Q: Imagine you are working for a lumber company, and your employer would like a program that calculates…
A: The company sells pine, fir, cedar, maple, and oak lumber. The lumber is priced by board feet. One…
Q: Write a program that prompts the user to enter the center x-, y-coordinates, width, and height of…
A: Python Code: x1, y1, w1, h1 = eval(input("Enter rl's center x-,\y-coordinates, width, and height:…
Q: Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The program…
A: Formulae Used : Area (A)=πab Perimeter (P)=2πa2+b22 where a=Major Axis b=Minor Axis…
Q: Write a program that reads from the user a character ('q' or 'c'). if the character is 'c', the…
A: Java Program for above : import java.util.Scanner; class Prog{ public static void main…
Q: Write a program to read three numbers A,B,C then find whether A, the sides of a triangle, if yes…
A: Given :
Q: .. Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The…
A: As there is no programming language mentioned so i attempted this question in python language.…
Q: Write a program that calculates the potential energy of 3 charges q1 = 1, q2 = 2, 43 = 3 located at…
A: please do upvote for my efforts thanks! answer: CODE #include…
Q: Write a program that will display a table of trigonometric functions: sin x, and tan x for x is from…
A: SOURCE CODE: import math#read degreeprint("{:15}".format("Angle"),end=" ")print("{:10}".format("sin…
Q: The ancient Greeks classified numbers geometrically. For example, a number was called "triangular"…
A: Sample Response: // C++ program to check whether a number is a triangular number or not by using…
Q: Write a program that asks users when their birthday is. Use information provided to give them their…
A: Your solution is here with an output.
Q: 1. Write a program that computes the area of each color in an archery target. For simplicity, we…
A: ANSWER:-
Q: Write a program that displays a table of speeds in kilometers per hour with their values converted…
A: PROGRAM CODE: #include <iostream>#include <iomanip>using namespace std; int main(){ int…
Q: Q3/ Suppose a movie theater has 36 seats, laid out in a rectangular six rows by six seats. Let the…
A: Step-1: Start Step-2: Declare an array theater of size 6 * 6 and initialize with {1,1,1,1,1,1},…
Q: Write a program that prompts the user to enter the length from the center of a pentagon to a vertex…
A: Program Structure: • Declare double type variables to store side and area of pentagon. • Read…
Step by step
Solved in 3 steps with 2 images
- 1. Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The program will ask the integer values of major axis length (a) and minor axis length (b) as the inputs. Give the answers in 2 decimal numbers. b a Area A πab |a² + b² Perimeter P = 2n 2 Which; a -> Major axis length, b -> Minor axis length, T = 3.14159Design a program that will display an inches –to-centimeters conversion table. The smallest and largest number of inches in the table are input values. Your table must give conversions in 6-inch intervals. Treat the largest number of inches as a cap. That means that if the next inch value to be calculated (when counting by 6) is greater than the largest input, then that next inch value is not converted and does not appear on the table. One inch is equivalent to 2.54 cm. Display the output to 2 decimal places and right align both columns of output. It is in C not C++, it also needs to use a while loopDesign a program that will display an inches –to-centimeters conversion table. The smallest and largest number of inches in the table are input values. Your table must give conversions in 6-inch intervals. Treat the largest number of inches as a cap. That means that if the next inch value to be calculated (when counting by 6) is greater than the largest input, then that next inch value is not converted and does not appear on the table. One inch is equivalent to 2.54 cm. Display the output to 2 decimal places and right align both columns of output.
- Computer Science Write a Java program that reads a line and a line segment and then determines whether they intersect or not. When they overlap completely, consider that as intersecting. Use variables ((lp1x, lp1y), (lp2x, lp2y)) to represent a line and ((sp1x, sp1y), (sp2x, sp2y)) to represent a line segmentWrite 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 Here are my calculations: Test Case #1 Height(h): 5.0’ Base(a): 2.5’ Volume = (2.5**2) * (5/3) (6.25) * (1.66) = 10.375 cubic feet Slant Height = math.sqrt(5**2) + (2.5/2)**2) Sqrt(25+1.5625) Sqrt(26.5625) = 5.154 feet Pyramid (not including base) = (5.154) * (2.5/2) * 4 (5.154) * (1.25) * (4) = 25.769 sq. Ft. I have attached a screenshot of my program I have so far. When I run the program, the output doesn't match what I have for the surface area and volume, am I missing something?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 Test Case #1 Height(h): 5.0’ Base(a): 2.5’
- 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…The Research team led by Bernadette Wolowitz at Cal-tech University has discovered a new Amoeba that grows in the order of a Fibonacci series every month. They are exhibiting this amoeba in a national. conference. They want to know the size of the amoeba at a particular time instant. If a particular month's index is given, write a program to display the amoeba's size. For Example, the size of the amoeba on month 1, 2, 3, 4, 5, 6,... will be 0, 1, 1, 2, 3, 5, 8.... respectively.Write a program that calculates the equivalent resistance of a circuit. n electrical resistors with resistance values R1, R2,.., Rn are said to be connected in parallel if the same voltage is applied across each. Their equivalent resistance Reg is related to the values R1, R2, ..., Rn by: 1 1 1 1 + +...+ R R R, R. "eq Write a program that prompts the user to enter the resistance of n resistors. The user should be prompted continuously by using a while loop until a zero or negative value is entered (the program should count the number of resistors n entered by the user and store the values in an array). Use another separate loop to print the resistance values entered by the user and the equivalent resistance Reg. Test your program with R1= 1 kn, R2= 2 kn, R3= 4 kQ and R4= 8 kQ.
- WRITE A PROGRAM TO CALCULATRE THE AREA OF A RECTANGLE OF LENGTH =5 CM AND BREADTH=8CM. CALCULATE THE PRICE OF AN ITEM COSTING 100 GHANA CEDIS AFTER A DISCOUNT OF 10% IS APPLIED TO IT. WRITE A PROGRAM TO CALCULATE THE SIMPLE INTEREST ON A LOAN AMONUT OF 50000 GHANA CEDIS AT AN INTEREST RATE OF 30% FOR A NUMBER OF YEARS WHICH WILL BE SPECIFIED BY THE USER. WRITE A PROGRAM TO CALCULAT THE AGE OF THE USER AFTER THE USER ENTERS HIS OR HER YEAR OF BIRTH.Write a program that reads from the user a character ('q' or 'c'). If the character is 'c', the program reads from the user the radius rof a circle and prints its area. • If the user enters 'q', the program asks the user to enter the length and width of a quadrilateral. We assume the quadrilateral is either a square or rectangle. You should print if the quadrilateral is square or rectangle. • Otherwise, it prints "Wrong character" PS: Use the following formulas: area of circle=3.14*r Sample Run1: Enter a character (q or c): q Enter the Length and Width: 80 150 |It is a rectangle Sample Run2: Enter a character (q or c): q Enter the Length and Width: 80 80 It is a square Sample Run3: Enter a character (q or c): c Enter the radius: 2 The area of the circle is 12.56 Sample Run4: Enter a character (q or c): d Wrong characterWrite a Program to calculate the electromagnetic force between two electrons placed (in vacuum) at a distance ( r 2*1013 m) from each other. Charge of electron (Q) is 1.6*1019 C. 4- Hint Q,Q; Electromagnetic Force K r? K=9*10°