Write a program that reads the height h and radius r of Right Circular Cone and finds the surface area and volume where: Volume = (1/3)* Pi *r*h Surface Area Pi *r* sqrt (r+h')
Q: Write a program that reads in the radius of a circle as an integer and prints the circle's diameter,…
A: Actually, program is a executable software that runs on a computer.
Q: Write a program that reads a floating point number and prints "zero" if the number is zero.…
A: Please find the answer below :
Q: Write a program that reads the height h and radius r of Right Circular Cone and finds the surface…
A: As no programming language is mentioned, I am using python. In step 2, you will get the python code.…
Q: Complete this program that tests whether a point (x, y) is inside a circle with radius r whose…
A: The distance between (0,0) and (xp, yp) is given by the Pythagorean theorem as d = sqrt(xp2 + yp2).…
Q: Write a program that computes for the Electric Field and Electric Potential at a given point in a…
A:
Q: Write a program that finds the sum, difference, and product of 2 given numbers.
A: Given: To write code in C++.
Q: Write a C++ program, that asks a user to enter the width and length of the rectangle and then find…
A: Coded using C++ Language.
Q: Write a program that picks four cards from a deck of 52 cards and computes their sum. An ace, king,…
A: program plan: Write a program that picks four cards from a deck of 52 cards computes their sum with…
Q: Write a program that takes all 3 sides of a triangle and prints whether the triangle is equilateral,…
A: Algorithm: Start Input three sides of the triangle from user If side1==side2 and side2==side3 then…
Q: Write a program that finds five prime numbers largerthan Long.MAX_VALUE.
A: Program: //import math package for mathematical operations import java.math.*; public class Main {…
Q: Write a program that displays the area and perimeter of a circle that has a radius of 6.5 using the…
A: Since programming language not mentioned, using python language.
Q: Write a program that accepts two points (see previous problem) and de-termines the distance between…
A: We need to find the distance between two points where we accept the x and y of every point then we…
Q: Write a program that will compute the area of a triangle
A: C program using height and base #include <stdio.h>#include <math.h>double…
Q: Write a program that asks the user to type the coordinate of 2 points, A and B (in a plane), and…
A: Note :-You have not mention the language of the program, so i'm answering your question in C++. Your…
Q: Write a program that prompts the user to enter theside of a hexagon and displays its area. The…
A: Making the given program in Python. Program Approach: Defining a main function within which…
Q: Write a program that reads in the radius and length of a cylinder and computes the area and volume…
A: Given: Write a program that reads in the radius and length of a cylinder and computes the area and…
Q: Write a program that reads the volume, V, as a floating-point number. It then computes and prints…
A: Given, that volume V is a floating-point number which has to be an input by user. Now, considering V…
Q: Write a program that prompts the user to enter the side of a hexagon and displays its area. The…
A: JAVA Code: import java.util.Scanner;import java.lang.Math; public class Main { public static…
Q: write a program that determines the type of triangle (scalene, isosceles, or equilateral)
A: Start input three sides according to condition print the type of triangle stop
Q: Write a program that calculates the number of hours, minutes, and seconds in N seconds. Example: In…
A: The above question is solved in step 2 :-
Q: Write a program that reads two integers, a and b, from the user. Where a is equal to 17 and b is…
A: Note: Below is the required program in the python language. Program Approach: Ask the user to enter…
Q: Write a program that enables the user to drag thevertices of a triangle and displays the angles…
A: Program structure A public class Triang that extends built-in class Application that contains the…
Q: Write a program that reads in the length ofsides of an equilateral triangle and computes the area…
A: Program structure Include header file <stdio.h> to perform input/output operations and…
Q: /Write a program that reads from the user a set of numbers, and first, it has to check how many…
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it…
Q: Write a program to read temperature in centigrade and determine whether it is Freezing weather or…
A: As no programming language is mentioned, it is solved using basic C++
Q: Write a program that finds summation of all factors of a given number r. For example, the factors of…
A: Algorithm:- for(int i=1;i<=n;i++) { if(n%i==0) sum=sum+i; }…
Q: • write a program that reads two integer values from the user and then prints the Greatest Common…
A: We know that gcd of two number is (a*b)/LCM(a,b), where a and b is given number.
Q: Write a program to compute the area of triangle and if the area is more than or equal to 20 then…
A: Program Approach - Define the function named main(). Declare the variables and initialize them as…
Q: Write a program that takes the x, y coordinates of a point in the Cartesian plane and prints…
A: Note: You didn't mention any languages so i use C language//include the header…
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: Write a program that does the following: Let f(x) = In(x) and carry 9 decimal places to find: a) Use…
A: Answer: using System;using System.Collections.Generic;using System.Linq;using System.Text;using…
Q: Write a program (Là and displays, using asterisks, a filled diamond. For example, if the generated…
A: As no programming language is mentioned, we am writing the program in c++ #include…
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 3 integers and prints the maximum value among them. (without using max())
A: function main: Start Read num1, num2, num3 if num1 >= num2 and num1 >= num3 then largest =…
Q: that prints out a flood map, showing which of the points in the terrain would be flooded if the…
A: function floodMap():- public static void floodMap(float[][] heights,float waterLevel){ int…
Q: Write a program that prints out first 40 numbers divisible by 3.
A: As you have not mentioned the programing language we are providing the program in Python language.
Q: Write a program that randomly generates an integer between 1and 12 and displays the English month…
A: We create a variable 'num' to store a random number created. We use a switch-case for each num…
Q: Write a program that reads the height h and radius r of Right Circular Cone and finds the surface…
A: In this question, we are asked to create a java program to calculate the surface area and volume of…
Q: Write a program that reads an integer age of kids, finds the maximum of them, and counts its…
A: #include <iostream> using namespace std; int main(){ int…
Q: Create a program that will accept a length value in meters and print its equivalent length in yards.…
A: Programming Language used: C Language C code for the given scenario: #include <stdio.h> int…
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 that makes a shape of numbers same as the one below, for a number 'x' that is…
A: the below code is in c++. The question is as follows. if the given number is 7 then 1 22 333 4444…
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 that displays all the numbers from 1 to 500, 5 per line, that are divisible by 3 and…
A: A program that displays all the numbers from 1 to 500, 5 per line, that are divisible by 3 and 4.…
Q: Implement a program that requests four numbers from the user. Your program should compute the…
A: Programming language is missing in the question. So we will answer this program in Python language.…
Q: Write a program to read temperature in centigrade and determine whether it is Freezing weather or…
A: Flowchart:
Q: Write a program that asks the user to enter two positive integers, the height and length of a…
A: According to the asked question, the solution is given below with a proper explanation.
Q: Write a program that displays all the numbers from 300 to 400, 5 per line, that are divisible by 3…
A: Since the programming language is not mentioned, so we'll do it in java. The programming methodology…
Q: Write a program that prompts the user to enter the length from the center of a pentagon to a vertex…
A: Program Structure: • Declare double type variables to store side and area of pentagon. • Read…
Pls i need help im using program (netbeans)
Step by step
Solved in 2 steps with 1 images
- Write a program that reads in the length ofsides of an equilateral triangle and computes the area and volume using the followingformulas:area =√3/4(length of sides)2volume = area * lengthHere is a sample run: Enter length of the sides and height of the Equilateraltriangle: 3.5The area is 3.89The volume of the Triangular prism is 19.48Write a program that reads 11 integers, compares eachinteger with the 11th integer, and displays whether the integers are “greater”,“smaller”, or “equal” to the 11th integer.Write a program that implements a tip calculator. Your program should ask the user for the bill amount and the percentage of the tip, and then output the dollar amount of the tip and the final bill in three different formats. (see sample below) Example: Enter the bill amount: 27.95 Enter tip percentage: 17 A 17.0% tip on $27.95 equals $4.7515. The total bill is: 32.701499999999996 The total bill is $32.7. The total bill is $32.70.
- Write a program that takes in an integer in the range 20-98 as input. The output is a countdown starting from the integer, and stopping when both output digits are identical. Ex: If the input is 93, the output is: 93 92 91 90 89 88 Ex: If the input is 77, the output is: 77 Ex: If the input is not between 20 and 98 (inclusive), the output is: Input must be 20-98 For coding simplicity, follow each output number by a space, even the last one. Use a while loop. Compare the digits; do not write a large if-else for all possible same-digit numbers (11, 22, 33, ..., 88), as that approach would be cumbersome for large ranges.Write a program that reads an integer between0 and 1000 and multiplies all the digits in the integer. For example, if an integeris 932, the multiplication of all its digits is 54.Hint: Use the % operator to extract digits, and use the / operator to remove theextracted digit. For instance, 932 % 10 = 2 and 932 / 10 = 93.Here is a sample run: Enter a number between 0 and 1000: 999The multiplication of all digits in 999 is 729Write a program that computes the amount of calories burned when you run. Your program should ask for the duration of the run in minutes the speed of the run in mph and your weight in pounds. Compute the amount of calories burned and print it. The calories burned is computed using the expression below: \n", "\n", "$$ calories/minute = (MET*weight*1.6)/200 $$\n", "\n", "MET is a value given below:\n", " - if speed is 5mph or less - MET = 8\n", "- if speed is greater than 5 and less or equal 8 mph - MET = 11.5 \n", "- if speed is greater than 8 and less or equal 10 mph - MET = 14 \n", "- if speed is greater than 10 mph - MET = 20\n", "\n", "Remeber to multiply this result by the time running to show the total amount of calories burned.\n"
- Write a program that prompts the user to enter theminutes (e.g., 1 billion), and displays the number of years and remaining days forthe minutes. For simplicity, assume that a year has 365 days. Here is a sample run: Enter the number of minutes: 10000000001000000000 minutes is approximately 1902 years and 214 daysWrite a program that accepts a number imput and checks if the difference between the sum of digits at prune positions and the sum of digits at non prime positions is a Fibonaces mmber The Fibonacci minber is any number from the Fibonacci series (0), 1, 1.2, 3, 5, K. 11. The position of digits in the number should be considered from left to right. For example, in the number 671, digit 6 is at position 1, digit 7 s at position 2, digit is ut position 3 You are allowed to use suitable user-defined functions write it in simple c program (plz send me in less than an hour)Write a program that finds five prime numbers largerthan Long.MAX_VALUE.
- Write a program that asks users when their birthday is. Use information provided to give them their astrological sign. Each of the twelve signs should display a different horoscope. Use the following dates for each sign, keeping in mind that both month and day must be evaluated for an accurate result. Aries: March 21–April 20 Taurus: April 21–May 21 Gemini: May 22–June 21 Cancer: June 22–July 22 Leo: July 23–August 22 Virgo: August 23–September 23 Libra: September 24–October 23 Scorpio: October 24–November 22 Sagittarius: November 23–December 21 Capricorn: December 22–January 20 Aquarius: January 21–February 19 Pisces: February 20–March 20Write a python program: Let the user specify S (the number of sides on a die) and N (the number of tosses of two S -sided dice). Assume ((S << N) and (3 <= S <= 20)). Since each die side is labeled with a unique integer taken from the range [ 1,S ], the sum of each dice toss is in the range [ (2=1+1),(2*S=S+S) ] . For example, when S = 6 , then the sum of each dice toss is in the range [ 2,12 ]. Make N dice tosses and count how frequently each sum occurs. Output a horizontal histogram that depicts the frequency distribution of the sums of the N dice tosses. Every sum in the range [ 2,2*S ] and its frequency of occurrence should be output using the format XXX (XXXXXXXX) | ****** where XXX is the sum, (XXXXXXXX) is the frequency, and each '*' represents 1% of the 100% of frequency distribution. The number of '*' output for each sum is computed by rounding the quotient (counts[sum]/N) up to the nearest integer. The entire histogram will contain (2*S-2+1) lines 2…Write a program that reads a number and finds it is a prime or not. 0. A prime number is a number such that 1 and itself are the only numbers that evenly divide it. For example: 3, 5,7, 11, 13, 17. 2.