4. Write a program which will solve and print the results for the following equation: Ax2 + B = 0
Q: - Write a program to compute the mass flow rate of a fluid (in kg/sec) through a thermal unit…
A: Dear learner , Hope you are doing well , I will try my best to answer this question. Thank You!!
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: Q3. Write an algorithm and draw a flow chart to solve the mathematical equation given below. - b ±…
A: Algorithm of the above given mathematical equation is: Start.Declare a,b,c as integers andx,y as…
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: Write a program to read and print 6 temperatures for 6 days and find the average for these degrees…
A:
Q: Write a program that estimates the value of the mathematical constant e by using the following…
A: The given series program is as follows:
Q: "Write the mathematical expression given below in the form of an algorithm code."
A: Refer to step 2 for the answer.
Q: Q2 : Draw the flow chart for the following program, and; What does this program print ( follow the…
A: Flowchart:
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: 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: 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: 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: 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: 3. Write an algorithm that inputs a student's score outputs his grade according to the following:…
A: Algorithm: if (-1<score<60) { grade = "F"; } else if (59<score<70) { grade = "D"; } else…
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: Q2 : Draw the flow chart for the following program, and; What does this program print ( follow the…
A:
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: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere =…
A: Given: To write a program to calculate the area and volume for a sphere. The program is written in C…
Q: 01: Write Program to compute the value of Y from the two equations below? Y = x³-sin (z) - In (x)…
A: C++ code given below
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: 3) Write an algorithm for a program that inputs the of grades of an arbitrary number of students and…
A: 1) Algorthm that inputs the grades of arbitary number of students and output highes grade Declare…
Q: Write a program to read to read basic salary and allowance and display the total salary. (Total…
A: Actually, python is a easiest programming language. It is a dynamically typed programming language.
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: Finish the program to compute how many gallons of paint are needed to cover the given square feet of…
A: I have given the code below.
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: Write a Program that solves the following series and displays the result.…
A: First of all let's understand the algorithm to solve the series: Since the constraints for n is not…
Q: Q2) Write a program to solve the following equation: xa + ya? + z*
A: According to the information given:"- We have to define the write program to solve the mention…
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: 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 which takes the user's age in years and convert it into months. 1 Year = 12 Months…
A: #include<iostream>using namespace std;int main(){ int age; cout<<" Enter your age in…
Q: Q2 : Draw the flow chart for the following program, and; What does this program print ( follow the…
A: Given c++ program
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: reate a program solving for mean
A:
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: Modif
A: NOTE: Programming language is not mentioned, so doing in C++ In this question, we are asked to print…
Q: write a program that enters the names of ten countries, then for each
A: code for v = 1:1:10 prompt = 'Enter the name of '; country = input(prompt, 's')…
Q: Q4: Write Program to calculate and print values of Z, Y, W from the following equations? Z=Ax² +5…
A: Note : Answering the question in python as no programming language is mentioned. Input : Input A…
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: Demonstrate the function by calling it in a program that asks the user to enter values for mass and…
A: Program is written in C++ language. We have to input mass and velocity by checking whether both are…
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: 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 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: Write a program which will work for the following equation and store the output in memory. x = (x -…
A: Given equation is, x=(x-1)2+(y-1)2 The Algorithm for the given function is: Start Enter the value…
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…
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- Read in two integers n and m (n, m < 50). Read n integers in an array A. Read m integers in anarray B. Then do the following (write separate programs for each, only the reading part iscommon).a) Find if there are any two elements x, y in A and an element z in B, such that x + y = z.b) Copy in another array C all elements that are in both A and B (intersection).c) Copy in another array C all elements that are in either A and B (union).d) Copy in another array C all elements that are in A but not in B (difference).c programm please tell all the answerQ5. Write a program that reads from the user an integer matrix with 10x10, and then rotate that matrix 180° (UPSIDE DOWN) after that, calculate the sum and the average of the main diagonal. Print the matrix after the rotation and the values of the sum and the average of the main diagonal.Write a Program for insertion and deletion from an array without replacement of element from the arrays. Also, write a program to search the array for the presence of a given element from an array. Write the sub-functions in the provided test case in text form and upload the same. #include<stdio.h> #include<stdlib.h> int cmpfunc (const void * a, const void * b) { return ( *(int*)a - *(int*)b ); } int insert_function(int *data, int n, int p, int x) { /* input data: array, n: size of array, p: position of insertion, x: element to insert*/ /*output:-1 indication error or 0 if successful /* write the function for inserting element into a position*/ } int delete_function(int *data, int n, int p, int x) { /* input data: array, n: size of array, p: position of deletion, x: element to deletion*/ /*output:-1 indication error or 0 if successful /* write the function for delete element into a position*/ } int linear_search_function(int *data, int n, int x) { /*write the function to…
- 3. Write a program to find intersection of two sorted array.For example, if the two sorted arrays as input are {21, 34, 41, 22, 35} and {61, 34, 45, 21, 11}, it should returnan intersection array with numbers {34, 21}. For the sake of this Problem, you can assume that numbers ineach integer array are unique.6. Read in two integers n and m (n, m < 50). Read n integers in an array A. Read m integers in anarray B. Then do the following (write separate programs for each, only the reading part iscommon).a) Find if there are any two elements x, y in A and an element z in B, such that x + y = z.b) Copy in another array C all elements that are in both A and B (intersection).c) Copy in another array C all elements that are in either A and B (union).d) Copy in another array C all elements that are in A but not in B (difference).Do In c ProgramWrite a program in ¢++ that asks the user to enter 10 integers of an array . The program must return the position pointer of an element that is equal to the square of another element.and then print the array example:- array={2.6,8,4,5} ------- 1 is squar of 2 position=3
- 3) Given an array A of type integer (Using C++):a) Ask the user to input the number of elements for the array correctly;b) Ask the user to input A’s elements and then, print them in reverse order as a single line of space-separated numbers;c) Print all elements of the array using recursion;d) Find maximum and minimum elements in the array using recursion. PS: Please answer part d) after getting a) to c) only.Write a program to enter 10 numbers using keyboard and put them in an array.Now generate another array of same size from the array created in the first stepby satisfying the following conditions: If the number is prime then write ‘P’ to the same location of the secondarray If the number is divisible by 5 then write ‘F’ If the number is divisible by 3 then write ‘T’ If number is an Even number and neither divisible by 3 or 5 then write‘E’ If number is an Odd number and a non-prime number write ‘N’this is insturction Write a program which prompts the user to enter up to 15 floating point numbers (terminated with a non-numeric), reads them into an array, then prints the following. The program must use an array (not a vector) to get credit. The array values in the original order, separated by commas, with no trailing comma at the last value. The array values where the order of each adjacent pair of elements is swapped, separated by commas (NOT every element swapped with its next neighbor, which would just move the first element to the end, but every original pair swapped only in that pair. For an odd element count, the last element should not change. See examples below.) The smallest number in the array. Example program outputs with user input shown in bold font: Enter up to 15 numbers, and a non-numeric to quit: 1 0 -1.001 # Original array: 1, 0, -1.001 The swapped array: 0, 1, -1.001 Smallest number: -1.001 Enter up to 15 numbers, and a non-numeric to quit: 1 0 -1.001 5 ,…
- write a c++ program for the following Create a 5x5 two 2D-Dynamic array and initialize it with the number passed to the function.Your task is to do the followings;a) Write a method that will calculate the sum of all rows and return the array of mean.b) Write a method “sortColumns” that will sort the each column of 2-D array intoascending order.c) Write a method “swap_Odd_Rows” that will swap the values of odd rows.Consider two arrays of Different sizes are given and your task is to multiply corresponding elements and store it into the result array and print the result array.Write a Program for finding the biggest number in an array without using any array function.NB: Use the following numbers in your array 11, 12, 16, 35,78, 3, 54, 64,13, 19 (15)