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
- Write a program that prompts the user to enter the radius of the rings and draws an Olympic symbol of five rings of the same size with the colors blue, black, red, yellow, and green, as shown in Figure 3.5c.Write a program that prompts the user to enter 10 integers, and normalizes the integers to be in the range of 0 to 1 by dividing every integer with the largest integer. Display the 10 normalized real-valued numbers.Write a program that prompts the user to enter the center x-, y-coordinates, width, and height of two rectangles and determines whether the second rectangle is inside the first or overlaps with the first, as shown in Figure 4.10. Test your program to cover all cases.
- Write a program that prompts the user to enter the three dimensions, possibly with decimals, of a cardboard shipping box. The program should then print the volume of the box accurate to two decimal places and the total surface area of the box accurate to three decimal places.Write a program that prompts the user to enter the center x-, y-coordinates, width, and height of two rectangles and determines whether the second rectangle is inside the first or overlaps with the first, as shown in Figure 4.15.Write a program to compute the area of triangle.if the area is greater than 20,then display "special triangle" else display"normal triangle". C++ or C#
- Write a program that displays the area and perimeter of a rectangle with the width of 4.5 and height of 7.9 using the following formula: area = width * heightWrite a program that allows a user to enter any number of student quiz scores, as integers, until the user enters 99. If the score entered is less than 0 or more than 10, display Score must be between 10 and 0 and do not use the score. After all the scores have been entered, display the number of valid scores entered, the highest score, the lowest score, and the arithmetic averageWrite a program that prompts the user to enter threepoints, (x1, y1), (x2, y2), and (x3, y3), of a triangle then displays its area.The formula for computing the area of a triangle iss = (side1 + side2 + side3)/2; _________________________________ area = √s(s - side1)(s - side2)(s - side3)Here is a sample run: Enter the coordinates of three points separated by spaceslike x1 y1 x2 y2 x3 y3: 1.5 -3.4 4.6 5 9.5 -3.4 ↵EnterThe area of the triangle is 33.6
- Write a program that prompts the user to enter the length of the star and draw a star, as shown in Figure 3.5a.Write a C++ program, that asks a user to enter the width and length of the rectangle and then find the perimeter and area of the rectangle. area=Width * length Per= 2*(width+Length)Write a program that accepts a number corresponding to a plane figure: Right Triangle Rectangle Circle The program will then ask for the following: base and height – if the previous input is 1 (right triangle) width and length – if the previous input is 2 (rectangle) radius – if the previous input is 3 (circle)