Write a program that computes for the circumference of a circle.
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 program that prompts for and reads the radius and the height of a cylinder (in centimeters).…
A: Answer : Here is the C++ code: //included header file #include<iostream> //included namespace…
Q: Write a program that finds a number positive or
A: We need to read in a number and call the function to check a number is positive or not.
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: Given two variables A and B, with integer values, write an algorithm that changes the values of…
A: This is called the swapping of a number program in c #include<stdio.h>int main(){ int…
Q: Write a program that does the following:
A: According to the question we need to solve:
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 program that will compute a student's final equivalent grade in Mathematical Computing I.
A: Required: create a program that will solve for a final grade Required code with comments for…
Q: Write a program using if, and elif and else, that asks the user what their favorite food is. Then…
A: We need to read a string and compare the string with list of favorite food.
Q: Write a program that calculates the potential energy of 3 charges q1 = 1, q2 = 2, q3 = 3 located at…
A: For the given points (1, 2, 3), (3, -4, -5) and (-4, 2, -6) The rij is the distance between charges…
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 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 shows that the square of the normal is χ2
A: Given To know about the programming and program of square of number.
Q: Write a program that reads ten integers, and then display the number of even numbers and odd…
A: The given program is in the C++ programming language.
Q: Write a program that reads the height h and radius r of Right Circular Cone and finds the surface…
A: Please find the answer below :
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 reads the height in centimeters and then converts the height to feet and…
A: NOTE: As the programming language is not mentioned in the question. So, we have solved this question…
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 computes the rent in five years and the total rent for one year starting five…
A: Program description: Assume, b be a user input integer variable that stores the basic salary. r is a…
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 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: The ancient Greeks classified numbers geometrically. For example, a number was called "triangular"…
A: A number is said to be a triangular number if the sum of the dots in the number is equal to the sum…
Q: Write a program that asks the user to type 2 integers A and B and exchange the value of A and B.
A: Integer variables are variables that must take an integer value
Q: Write a program in java to find the semi perimeter of rectangle and take breadth and length from use
A: perimeter of rectangle is 2(l+b) semi perimeter of rectangle is half of perimeter that is (l+b)…
Q: Write a program which takes the user's age in years and convert it into months. 1 Year= 12 Months %D
A: Algorithm: Step1: Declare variables, Nofmonths & years to store values. Step2: Receive the user…
Q: Write a program that will compare two numbers and determine the one with the highest value.
A: Programming language is missing in the question. The below program is written in C, C++, and Python…
Q: Write a program that calculates the potential energy of 3 charges q1 = 1, q2 = 2, q3 = 3 located at…
A: Distance between two points P1(x1,y1,z1) and P2(x2,y2,z2) = x2-x12+y2-y12+z2-z12 Put all the values…
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 reads non-negative integer number and determines whether it is odd or even or…
A: Here we will write a program that reads non-negative integer number and determines whether it is odd…
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 series of integer numbers, and determines how many positive odd…
A: Since the programming language is not mentioned, so we'll do it in python. The programming…
Q: Write a program in pascal language for calculating the area of triangle after taking 3 sides from…
A: Requirement :- Write a program in pascal language for calculating the area of triangle after taking…
Q: Write a program that accepts values for length and width and computes and prints the area of a…
A: According to the Question below the Solution: Output:
Q: Write a program that will Input the name , position of the employee , Input the rate per hour, hours…
A: Program: #include <iostream> using namespace std; int main() { string name; int…
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 which takes the user's age in years and convert it into months. 1 Year = 12 Months…
A: #include<iostream>using namespace std;int main(){ int age; cout<<" Enter your age in…
Q: Write a program that prompts the capacity, in gallons, of an automobile fuel tank and the miles per…
A: Note: In this question the coding language is not specified then we are doing this question in the…
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: Modif
A: NOTE: Programming language is not mentioned, so doing in C++ In this question, we are asked to print…
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 reads from the user a character ('s' or 'a'). • If the character is 's', the…
A: As no programming language is mentioned, it is solved using basic C++
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 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 program that reads the 10 student grades () from keyboard and calculates the class average.
A: Code in python programming language #Program to read grades of 10 students from teh keyboard and…
Write a
Step by step
Solved in 4 steps with 2 images
- Write a program that reads the volume, V, as a floating-point number. It then computes and prints the radius of a sphere having volume V, and then computes and prints the height of a cylinder having the same radius and the same volume V. You may use math library functions if necessary.f. A laborant in a laboratory does a number of antigen tests in one day. Write a program that simulates the number of antigen tests done in a day in a laboratory, displays the number of positives and negatives, and calculates the % of positives in one day. Your program needs to first generate a random number that will show the number of tests done in a day. One laboratory in a day cannot do more than 100 tests and less than 1 (they do at least one). Then for each of the tests, your program needs to generate a random number to show whether they are positive or negative. In order to write this program, you need to have the following three functions used by the main function: test result (void): This function generates a test result. It should randomly return either one or zero. 1 means positive test result and 0 means negative test result. float positive percentage (int,int) : This function takes the total number of positives and the total number of tests and returns the % of positives.…Python Write a program that receives a number from a user and checks if it's float or integer.In case of being float, print for the user that his/her number is float with integer part andfractional part. In case of being integer, print to the user that his/her number is aninteger and odd/even numbeR
- Write a program that reads in three integers and then determines and prints the largest and the smallest integers in the group. Use only the programming techniques you have learned in this chapter.Write a program that reads the employee's name and base salary and then calculates the tax and net amount Salary where: Net salary = Basic salary If the basic salary is less than 500 (no tax) Net salary = basic salary - tax value So that the tax amount is 5% of the basic salary Then it prints the employee's name and net salary %3D 2:40 PM /Write a program that accepts a number of minutes and converts it both to hours and days. For example, 6000 minutes equals 100 hours and equals 4.167 days.
- Write a program that lets the user guess whether a randomly generated integer would be even or odd. The program randomly generates an inte- ger and divides it by 2. The integer is even if the remainder is 0, otherwise odd. The program prompts the user to enter a guess and reports whether the guess is correct or incorrect.the electrical resistance r (in ohms) of a metal wire is given by the formula r = (ml)/ a where m is the resistivity of the metal; l is the lenght of the wire in feer, and a is the cross-sectional area of the wire ( in the circular mils) write a program that allow user to input for l and a for a copper whose resistivity m of copper is 10.4. Calculte the resistance of a wireWrite a program that displays every integer between 1 and 100 that is divisible by 5 or 7, but not both. Write it using While and for.
- Write a program that calculates the number of hours, minutes, and seconds in N seconds.Example: In 3601 it is equal to 1 hour 0 minutes 1 secondWrite a program which takes the users age in years and convert it into months. 1 Year= 12 MonthsWrite a program that reads from the user a character ('q' or 'c'). If the character is 'c', the program reads from the user the radius rof a circle and prints its area. • If the user enters 'q', the program asks the user to enter the length and width of a quadrilateral. We assume the quadrilateral is either a square or rectangle. You should print if the quadrilateral is square or rectangle. • Otherwise, it prints "Wrong character" PS: Use the following formulas: area of circle=3.14*r Sample Run1: Enter a character (q or c): q Enter the Length and Width: 80 150 |It is a rectangle Sample Run2: Enter a character (q or c): q Enter the Length and Width: 80 80 It is a square Sample Run3: Enter a character (q or c): c Enter the radius: 2 The area of the circle is 12.56 Sample Run4: Enter a character (q or c): d Wrong character