write a program that asks the user for the length and width of a rectangle, the program should calculate and display the rectangle’s perimeter (2 x length) + (2 x width) and width (length x width). Round the circumference and area to 2 decimal places
Q: Write a program that computes the molecular weight of a carbohydrate (ingrams per mole) based on the…
A: Given: Write a program that computes the molecular weight of a carbohydrate (ingrams per mole) based…
Q: Write a program that reads from the user a character ('q' or 'c'). • i the character is 'c', the…
A: Since the programming language is not mentioned, we'll do it in python. The programming methodology…
Q: Write a program that asks the user to enter two positive integers, the height and length of a…
A: Program description: h and l are the user input integer variables that take from the user the values…
Q: Write a program that prompts the user to enter an integer for today’s day of the week (Sunday is 0,…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Define…
Q: In Python, Create a program that prompts the user to pick their lucky #. If the number is greater…
A: #python program that prompts the user to pick their lucky #. If the number is greater than 7, then…
Q: Write a program that asks the user to enter the length and width of lot1 and radius of lot2. Your…
A: Since there is no programming language is mentioned, therefore, the program is written in C…
Q: Write a program that asks the user to enter a number of seconds. Solving the Time Calculator Problem…
A: sec=int(input("Enter number of seconds: ")) if sec<3600 and sec>=60 : print(f"Number of…
Q: Write a program that simulates rolling a pair of dice. The program should answer the question "how…
A: Solution: Procedure:
Q: Python Write a program that receives a number from a user and checks if it's float or integer. In…
A: a=float(a)if int(a)/a==1: if a%2 == 0: print("This is Integer and Even Number") else:…
Q: Write a program for calculating and printing the number set 4,4.5,5,5.5,6,.............9.5,
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it in…
Q: Write a program that asks the user to enter a three-digit number, then prints the sum of its digits
A: Code snippet:
Q: Write a program that computes the cost of painting and installing carpet in a room. Assume that the…
A: In this question, we will create a class ROOM to store the properties of the room and to calculate…
Q: In this program you will ask the user for 4 integers that represent two fractions. First ask for the…
A: function main: Start Declare a, b, c, d, sum Display "What is the numerator of the first fraction?…
Q: Write a program that asks the user to enter a month (1 for January, 2 for February, etc.) and then…
A: Code: #include <iostream> using namespace std;//here is the main functionint main(){ //here…
Q: Write a program that prompts the user to enter an integer and prints the value of the following…
A: Below I have provided Java Programming. Also, I have attached the screenshot of the code and output…
Q: Write a program that input miles from the user and convert miles into kilometres. One mile is equal…
A: Data types in C++: Some of the basic datatypes of C++ are: int float double char wchar_t bool void
Q: Write a program that asks the user to enter the three sides (a, b and c) of a triangle as double…
A: Answer the above question are as follows:
Q: write a program that asks a user for a number of digits of precision, and prints the value 2/7…
A: import mathn=int(input("Please enter the number of digits of precision for 2/7 :"))print('The value…
Q: write a program. There are three seating categories at a stadium. For a softball game, Class A…
A: #include <iostream>#include <iomanip>using namespace std; int main(){ int…
Q: Write a program that prompts the user to enter the three dimensions, possibly with decimals, of a…
A: //Solution in C++ #include<iostream>#include <iomanip>using namespace std;int main(){…
Q: Good job!” and then ask for another input. When the user types an odd number, display an error…
A: Define java.util package for i/o operations Define class EvenEntryLoop Define main method taking…
Q: Write a program that asks the user for a word, then prints out the word once on the first line,…
A: Programming Language => C++ I have provided C++ CODE along with CODE SCREENSHOT and…
Q: Write a program that reads from the user the initial Kilometers of the car, the current Kilometers…
A: Java program for the above fuel consumption problem is given below in step 2.
Q: In this program you will ask the user for 4 integers that represent two fractions. First ask for the…
A: In this program, the user is asked for 4 integers that represent two fractions. First ask for the…
Q: Write a program that asks the user for two positive integers between 2 and 10 to use for the length…
A: Code #include <iostream> using namespace std; int main() { int a,b; cout<<"enter two…
Q: Write a program to read basic salary (bsalary) and sales (sales) then calculate and print the net…
A: C++ program for above : #include <bits/stdc++.h> using namespace std; int main() {…
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 that asks the user to enter an amount of money in the format of dollars and…
A: Program converts the amount taken from user in dollars and cent and returns the amount of coins user…
Q: under 100 and prompts the user to enter the sum of these two integers. The program then reports true…
A: Here have to determine about program for sum of two numbers.
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: program that prompts the user to enter an integer. If the number is a multiple of 5, print HiFive.…
A: As programming language is not mentioned, so we are providing answer in C++ language.
Q: Write a program that prompts the user to enter the currency exchange rate between U.S. dollars and…
A: GIVEN: Write a program that prompts the user to enter the currency exchange rate between U.S.…
Q: Write a program that generates a random number in the range of 1 through 100, and asks the user to…
A: Hello student Here is your answer
Q: Write a program that takes in a positive integer as input representing the number of employees, then…
A: We plan to use a Language Understanding container for an application that we previously exported. We…
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 that would compute the sum, difference, product, quotient, and will print the…
A: As no programming language is mentioned, it is solved using C++
Q: Write a program that asks the user to type a vowel from the keyboard. If the character entered is a…
A: Actually, program is a executable software that runs on a computer.
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 that accepts a number corresponding to a plane figure: Right Triangle Rectangle…
A: #Function that will check the input enter by user def Input_Choice(choice): # Flag variable of…
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 in which ask from a user to enter name and id and show there as well. then ask again…
A: Since no programming language is mentioned, I will attempt this in python. if you need it in a…
Q: Write a program that displays the area and perimeter of a circle that has a radius of 5.5 using the…
A: Note: Since you have not provided the language to write the code so I am using Java language to…
Q: Write a program that prompts the user to enter two integer numbers A and B. The program must check…
A: Using if else and for loops we can solve this problem.
Q: write a program that prompts the user to enter the number of students and each student name and…
A: The java program and the approach that prompts the user to enter the names and the scores of the…
Q: Write a program that reads from the user a character (ʻq’ or 'c'). If the character is 'c', the…
A: int main() { printf("enter the character :"); scanf("%c" &a); if(a=='c') { int r; scanf("%d",…
Step by step
Solved in 2 steps with 2 images
- A polygon is convex if it contains any line segments that connects two points of the polygon. Write a program that prompts the user to enter the number of points in a convex polygon, enter the points clockwise, then displays the area of the polygon. For the formula for computing the area of a polygon,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.The difference between two numbers is 15. If one number is represented by x, the other number can be expressed as what
- 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 resultsArea and Perimeter: Write a program that prints the area and perimeter of a circle with a radius of 5.5 using the formula: Perimeter = 2 * radius * PI Area radius * radius * PI Use Math.PI for PI in your program.Given an airplane’s acceleration a and take-off speed v, you can compute the minimum runway length needed for an airplane to take off using the following formula: length = v2/2a Write a program that prompts the user to enter v in meters/second (m/s) and the acceleration a in meters/second squared and displays the minimum runway length.
- Enter three values of angles and then print "Triangle" or "Not a triangle" depending on whether these three angles can form a triangle or not. In addition, if it is a right angle triangle then print "Right-Angle Triangle" or "Non Right-Angle Triangle".Write a Phyton program that computes the duration of a projectile’s flight and its height above the ground when it reaches the target. As part of your solution, you should display instructions to the program user. Relevant formula: time = distancevelocity xcos (θ) height = velocity xsin x time- g x time22 use the following variables: g = gravitational constant = 32.17 = angle of elevation in radian v = velocity or the projectile velocity (ft/sec) d= distance to target t = time of flight in seconds. h = height at impact Try your program on these data sets.Write a program to compute the area of triangle and if the area is more than or equal to 20 then display "large area" else display "small area".
- Write a program that asks the user to input the radius of a circle and calculates its areaWrite a program that will display a table of trigonometric functions: sin x, and tan x for x is from 0 to 20 degrees. The output should be: COS X, Angle in degrees sin x COS X tan x 1 1 0.0175 0.9998 0.0175 0.0349 0.9994 0.0349 20 0.3420 0.9397 0.3640 2.python Write a program that displays a table of Celsius temperatures and equivalent Fahrenheit temperatures. You can find the formula online if necessary. Your program should print both scales accurate to one decimal place in columns 8 characters wide (see page 71). Use Celsius temperatures ranging from -40C to 40C in 10 degree increments.