Write a program that computes the following equation: 1 2 y = 1++ x2 п + - ...
Q: Write a program to read the radian of a circle, check if it is bigger than zero, and if it is to…
A: #include <stdio.h> #define PI 3.14f int main(){float rad,area, perm;printf("Enter radius of…
Q: Write a program that print the numbers 2 to 10 in increments of 2. The output of your program should…
A: i have given an detail answer in step 2.
Q: Write a program that will display a table of trigonometric functions: sin x, and tan x for x is from…
A: The asked C++ program has been coded by using a for loop and code for the same is given in the next…
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: Write a program that will compute for the salesman's commission based from his total sales for the…
A: As no programming language is mentioned, it is solved using basic C++
Q: Write a program XXXYYY13 to calculate the surface area (S) and volume of cylinder (V) if you knowthe…
A: As the language of program is not mentioned the program is done using the C++ language. Following is…
Q: *x xx xxxx xxxx x x * xxxx *xxx x x x x x
A: As there is no programming language mentioned so program is attempted in c++ no of rows =10 pattern…
Q: Write a program that simulates a simple calculator. It reads two integers and a character. If the…
A: The program is written in c++ to simulate a calculator as mentioned in the question.
Q: Write a Program to convert given number of days in terms of Years, Weeks and Days
A: Find the required code in python as language not mentioned given as below and sample output :
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: Consider the value of x=29, y=29, a=29 & b=29, and give the output for the below python program…
A: I have given an answer in step 2.
Q: Code-tracing What is the output of the following? Write your answer for each print statement. X 3 y…
A: % is mod operator that prints remainder.
Q: Give the program to multiply two integer numbers
A: Program to multiply two integer number
Q: Draw the flow chart of a program that returns the sum of the even numbers between 5 and 75.
A: Here I have declared variable i to iterate from 5 to 75 and sum to keep the addition of even number…
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: Write a program that inputs a natural number n from the keyboard, computes the cube sum of first n…
A: Here we would need to use a loop that runs from 1 to n where n is input from user.
Q: Write a program to compute the area of triangle.if the area is greater than 20,then display "special…
A: Output 1: Output 2:
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: Give an example of program that calculate the following sum: n k ΣΣυ į=0 j=0
A: The given problem has given a notation and the requirement is to construct the equivalent program…
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: OUT = IN1 + IN2 – IN3
A: Mailbox Mnemonic code Numeric code 00…
Q: A-Write a program to compute the drag force F, (in Newton) When a body swims through fluid, the drag…
A: Hello student Greetings Hope you are doing great. Thank You!!!
Q: Write a program that converts distances measured in kilometers to miles.One kilometer is…
A: Kilometers must be entered by the user. The kilometres variable holds this value. Since 1 kilometre…
Q: Write a program that reads the value of x and y, then if x is bigger than or equal y calculate and…
A: Math functions used in the program Math.pow() Math.cos The program first inputs the value of x and…
Q: write a program that takes a temperature reading in Fahrenheit and outputs the equivalent…
A: Code : Following function converts the Fahrenheit temperature to celsius: def fToc(fah): #formula…
Q: write a program to print even number 3 points between 29 and 40 * Your answer
A: Note: As you haven't mentioned any programming language so I will be using Python language to find…
Q: :write a program to calculate a and b from the equations 5 + x a = 4.5(x + 2.3y)? b= - y а and 2.7w…
A: Note: I am solving this in python as no programming language is mentioned. In this, we need to take…
Q: Write a program which accepts the radius of a circle from the user and compute the area and…
A: Required: To write a program that accepts the radius of a circle from the user and computes the area…
Q: Write a program that reads in a farenheit temperature as a decimal number and outputs the equivalent…
A: C++ program to solve the given problem is below. ****As there is no programing language…
Q: Convert the following mathematical notation into programming notation, assume that you have already…
A: Arithmetic operations in python are done using the operators +,-,*,/ for addition, subtraction,…
Q: Write a program whose inputs are three integers, and whose output is the smallest of the three…
A: Below is the code in python and output of the question:
Q: Write pseudocode for a program that outputs numbers in reverse order from 10 down to 0.
A: Below is the Pseudocode for a given question:
Q: Draw a flow chart of a program that adds N odd numbers starting from 1. The value of N should be…
A: So flow chart is given below for sum n odd number
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: Write a program that computes the following summation series using the Rational class:
A: Program approach:- Using the necessary header file. Using the standard namespace input/output.…
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: Write a program that solves the following system of differential equations in the interval [0,2]…
A: Given differential equations are: y1'=2y1 +2y2 y2'=3y1 +y2 Given interval [0,2], h=0.1 and y1(0)=-1,…
Q: Write a program whose inputs are three integers, and whose outputs are the largest of the three…
A: Python code for above: # function to return largest def largest_number(num1, num2, num3):…
Q: Give an example of program that calculate the following sum: n k ΣΣ i=0 j=0
A: NOTE: Since programming, langauge is not mentioned. Therefore answering the question in Python…
Q: B: Draw the flowchart of a program that find the following:- y=x+12 when x>0 when x<0 y=m +x y=x+25…
A: Flowchart: Flowchart is pictorial representation of steps/process of solving a problem
Q: Write a program that calculates and prints the volume of a pyramid given the base (b) and the height…
A: Note: Below is the required program in the C++ language. Program Approach: Defining the necessary…
Q: Write a Little Man program that determines if the number entered by a user is an odd or even…
A: To write the above program following logic will be used: If the number when divided by 2 leaves any…
Q: Write a program that inputs three integers from the keyboard and prints the sum, average, product,…
A: Source code: #include<iostream>#include<conio.h>using namespace std; int main(){…
Q: Convert the following mathematical notation into programming notation, assume that you have already…
A: The math package consists of a pow(), sqrt(), ceil(), and so on mathematical functions to evaluate…
Q: Write a program to check if the last digit is greater than 5,then compute the sum of digits.and…
A: Program Approach - Define the main function and declare the variables for the program. Prompt user…
Step by step
Solved in 2 steps
- (Display a pattern) Write a program that displays the following pattern:JJ aaa v vaaaJ J aa v v a aJ aaaa v aaaaGiven 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 an application that reads the (x,y) coordinates fortwo points. Compute the distance between the two pointsusing the following formula: Distance = the square root of the sum ofthe square of the difference of the x coordinates and the square of the difference of the y coordinates
- Write an application that displays the numbers 1 to 4 on the same line, with each pair ofadjacent numbers separated by one space. Use the following techniques:a) Use one System.out.println statement.b) Use four System.out.print statements.c) Use one System.out.printf statement.What does the following code print?d) System.out.printf( "%s\n%s\n%s\n", "*", "***", "*****" );Build a VB application that inputs two integer numbers. If the summation of these numbers are more than 100, your program should output “The value ### is too high”, where value should be the summation of the two numbers. If the summation is less or equal to 100, your program should say “The value ### is within range”.write a program to display fruit sales receipts. Apple: Pink Lady - $4.99/kilo, Fuji - $5.99/kilo. Orange: Hamlin - $2.99/kilo, Moro - $3.99/kilo. The program must use if-else statements and string format. The program must work exactly like the following examples. Each column occupies 15 spaces and is in the right alignment.
- Write a program that prompts the user to enter an integer between1 and 12 and then displays the name of the month that corresponds to the integerentered by the user. For example, if the user enters three, the program shoulddisplay March.You have been asked to write a program to play rock-paper-scissors. Your program will ask the user to input a number 0, 1, or 2 to denote rock, paper, and scissors respectively. Your program will then randomly generate a number 0, 1, or 2 to denote the computer’s hand. The rules for the game are: •A scissor can cut paper. •A rock can knock a scissor. •A piece of paper can wrap a rock. Let the game run continuously until either the user or the computer wins 3 times, displaying the outcome of each hand. At the end of the game, display a message indicating whether the user or the computer wins Helpful Hint: import random player2= random.randint(0, 2)Write an expression that will cause the following code to print "I am an adult" if the value of user_age is greater than 19. This is what I have so far.... user_age = int(input()) #Program will be tested with values: 18,19,20,21. if _____________________ : print('I am a teenager') else: print('I am an adult') PYTHON
- Design a program that asks the user for a series of names (in no particular order). After the final person’s name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb. This is to be done in Python.Write a program that computes the molecular weight of a carbohydrate (ingrams per mole) based on the number of hydrogen, carbon, and oxygenatoms in the molecule. The program should prompt the user to enter thenumber of hydrogen atoms, the number of carbon atoms, and the numberof oxygen atoms. The program then prints the total combined molecularweight of all the atoms based on these individual atom weights:Atom Weight(grams I mole)H 1.00794c 12.01070 15.9994For example, the molecular weight of water (H20) is: 2(1.00794) +15.9994 = 18.01528.Suppose you have a certain amount of money in a savings account that earns compound monthly interest, and you want to calculate the amount that you will have after a specific number of months. The formula is as follows: f = p * (1 + i)^t • f is the future value of the account after the specified time period. • p is the present value of the account (the account's current balance). • i is the monthly interest rate. • t is the number of months. Write a program that takes the account's present value (current balance), monthly interest rate, and the number of months that the money will be left in the account as three inputs from the user. The program should pass these values to a function that returns the future value of the account, after the specified number of months. The program should print the account's future value. Look carefully at the following sample run of the program. In particular, notice the wording of the messages and the placement of…