Write a program to input the length ,width, and high of wall then compute the number of bricks in wall ,if you know the brick sides is (24x8x12cm).
Q: Write a program that would input the radius of a circle and output the area, circumference and…
A: As there is no programming language mentioned so program is attempted in python program…
Q: Write a JAVA program to read input the number of rows r and print the Floyd's triangle with r rows…
A: Write a JAVA program to read input the number of rows r and print Floyd's triangle with r rows in…
Q: write a Java program below - Find the area of the circle -Find the average -Find the Sum
A: We know that, area of circle = pi*r*r average = sum of all numbers / total numbers I have provided…
Q: Write a java program which accepts input from user and draw a lines one in blue color and then…
A: Sample Response: //include required packagesimport java.util.Scanner;import java.awt.Color;import…
Q: Write a program that converts temperatures from Fahrenheit to Celsius.
A: #include<stdio.h> int main() { float Fahrenheit,…
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 to generate 10 integer x values range (0-3) and (x + 0), pass by when x-0. Find how…
A: Question :- Solution :- Please see the code below with output.
Q: Write a program to read a number (n). Then print all numbers from 0 to n that are not equal to 1 or…
A: Here the program is developed as per the requirement. Note: In the question programming language is…
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 to read X and print Sin X if X>0, square root X f X<0 and absolute X if X/2 is…
A: PROGRAM CODE: #include <iostream>using namespace std;#include <conio.h>#include…
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 displays a random coordinate in a rectangle.The rectangle is centred at (0, 0)…
A: The given criteria is written in Java programming language as follows, File name: “Sample.java”…
Q: Write a program that asks the user to input the radius of a circle and calculates its area
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it in…
Q: Write a computer program to model the motion of a spacecraft of mass 150000 kg that is launched from…
A: Answer
Q: Write a program to compute the most frequent numbers in vectors ( x ), and ( y ) if x= a*b y=a* c a…
A: Note: The syntactical code in the question is in Matlab, hence answering the code in Matlab. Given…
Q: Write a program that asks the user for the radius of a circle, and depending on the user's choice,…
A: #include<iostream> using namespace std; int main(){ float…
Q: Write a program to read four degrees and calculate the sum and average of them, and print it
A: As no programming language is mentioned here so i attempted this question in c++
Q: Write a program that takes the input of the number of rows and then prints the diamond for the given…
A: Program Approach: Define method diamond and pass row as an argument in it. Variable a is declared…
Q: write a program to find the smallest number among three numbers and then test that number is even or…
A: Note: Below is the required program in the C++ language. Programming Approach: Defining the…
Q: Write a program to compute the area and circumference of triangle it sides x.y and z (the three…
A: Introduction: Here we are required to create a program which finds the circumference and area of…
Q: Write a program to print the first 10 terms of Fibonacci series. Series starts from 0,1,..
A: Required:
Q: . Write a program if for example, the input: 6 8 2028 prints the date June 8, 2028.
A: Required: Use C# Write a program if for example, the input: 6 8 2028 prints the date June 8, 2028.
Q: Write a computer program to model the motion of a spacecraft of mass 150000 kg that is launched from…
A: Answer
Q: Write a program to input the length ,width, and high of wall then compute the number of bricks in…
A: To write a program to compute no. Of bricks Here I used python language
Q: Write a C language program to read base and height of a rectangle then compute and display the area…
A: here in this question we have asked to write a program which find the area of rectangle
Q: Write a program that converts an input inch(es) into its equivalent centimeters. Take note that one…
A: According to the question we need to write the program that converts an input inch(es) into its…
Q: Write a program to compute the area and circumference of triangle it sides x,y and z (the three…
A: The Answer is in Below Steps
Q: print the distance between two points(4,3) and (6,2)
A: GIVEN: The co-ordinates of two points, the job is to locate and show the product of the distance…
Q: Write a program to read A[n, n] of numbers, then put 10 instead each even positive number.
A: Program is written in java and commented correctly with output. Algorithm: 1. Read array of n rows…
Q: Write a python program that prints a rectangle of size M (height/line numbers) and N(length/column…
A: We need to write a python program that prints a rectangle of size M (height or line numbers) and N…
Q: Write a program that works out whether if a given year is a leap year. A normal year has 365 days,…
A: As no programming language is mentioned, it is solved using basic C++
Q: Write a program to input three numbers X, Y and Z and send a message "The answer is equal" in case Z…
A: Since the programming language is not mentioned, I have done the code using Python 3.
Q: Write a program to read a number (n). Then print all numbers from 0 to n that are not equal to 2 or…
A: Step-1: Start Step-2: Declare variable n and take input from user Step-3: Start a for loop i=0 to n…
Q: write a program to find the length of a square knowing the area.
A: PROGRAM CODE: #include <stdio.h>#include<math.h> int main() { float length, area;…
Q: Write a program if for example, the input: 6 8 2028 prints the date June 8, 2028.
A: As no programming language is mentioned it is solved using basic C++
Q: Write a program that when given the row number and the seat number, prints the price of a ticket.
A: The size of array is 6x6 Thus the array would be initialized as int ticketPrice[6][6] Here we need…
Q: write a program that prints the numbers 1 to 100 using 5 columns. have each number separated from…
A: [Note: Since no language is mentioned, C++ is used. This code should be rewritten instead of copying…
Q: (2.)Write a program to draw this. Assume the innermost square is 20 units per side, and each…
A:
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 print the following pattern up to z only a b d e h i k r t u V y w/
A: #include<stdio.h>int main(){ //program execution starts here char i = 'a'; //variable…
Q: A square is divided into four smaller regions as shown in (a). If you throw a dart into the square…
A: Python program is given below:
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 Java program to input the length and width of a rectangle and check whether the rectangle is…
A: Below is the code in java and sample output:
Q: Write a python program to check if two number are same, if same find area of circle otherwise find…
A: Algorithm: 1. Start 2. Read 2 numbers n1,n2 3. Check if both are equal or not. If equal, read radius…
Q: Write a program that prints absolute value for any given number.
A: Start input a number call abs(number) print absolute value stop
Q: Write a program that displays a new larger circle with a left mouse click and removes the largest…
A: Below is the python program for the same:
Q: Write a program that simulates flipping a coin one million times and displays the number of heads…
A: Code: public class CoinFlip { public static void main(String[] args) { int heads = 0; int…
Q: Write a python program that prints a rectangle of size M (height/line numbers) and N(length/column…
A: Write a program that prints rectangles of size m and n using incrementing numbers
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…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- 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 that reads three edges for a triangle and computes the perimeter if the input is valid. Otherwise, display that the input is invalid. The input is valid if the sum of every pair of two edges is greater than the remaining edge. Not use Boolean operationGive an example of program that calculate the following sum:
- A regular polygon is an n-sided polygon in which all sides are of the same length and all angles have the same degree (i.e., the polygon is both equilateral and equiangular). The formula for computing the area of a regular polygon is Area = ( n * s2 ) / (4 * tan( π/n) Here, s is the length of a side. Write a program that prompts the user to enter the number of sides and their length of a regular polygon and displays its area.Help me solve the problem by looking at the programSuppose you want to deposit a certain amount of money into a savings account with a fixed annual interest rate. We are interested in calculating the amount needed to deposit in order to have, for instance, $5000 in the account after three years. The initial deposit amount can be obtained using the following formula:
- python if we put a grid on the surface of Earth with a grid spacing of dx and dy in the longitude and latitude directions, respectively, the grid area (approximated as dx*dy) varies with latitude. Explain why that is.An integer n is divisible by 9 if the sum of its digits is divisible by 9. Develop a program to display each digit, starting with the rightmost digit. Your program should also determine whether or not the number is divisible by 9.Suppose two line segments intersect. The two endpoints for the first line segment are (x1, y1) and (x2, y2) and for the second line segment are (x3, y3) and (x4, y4). Write a program that prompts the user to enter these four endpoints and displays the intersecting point. As discussed in Programming Exercise 3.250, the intersecting point can be found by solving a linear equation. Use the LinearEquation class in Programming Exercise 9.11 to solve this equation.
- Write a program to compute the area and circumference of triangle it sides x,y and z (the three sides have different length)discrete math programing python or c++ the range of values is from 0 to 5 Let Q(x, y) denote “x + y = 5” The domain of x and y is from range 0 to 5 . Implement the code that outputs the truth values of the following quantifications: 1. ∀x ∀y Q(x, y) 2. ∀x ∃y Q(x, y) **Display values of variables x and y if the quantification is true.Write a program that finds the sum, difference, and product of 2 given numbers.