Write a program that reads a code and temperature. If the co Fahrenheit. If the code is 2, convert from Fahrenheit to centigrade F = C*9/5+32 C =(F-32)*5/9
Q: Write a program to read the radian of a circle, check if it is bigger than zero, and if it is to…
A: #include <stdio.h> #define PI 3.14f int main(){float rad,area, perm;printf("Enter radius of…
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 python program to check if a variable, x, is divisible by 2, 3 or 5. If it is divisible by…
A: The question is to write python code for the given problem.
Q: Write a program that prompts the user to input an integer and then outputs both the individual…
A: Note :- As per our guidelines we are supposed to answer only one question. Kindly repost for the…
Q: Write a program that reads in hours, minutes, and seconds as input, and outputs the time in seconds…
A: h=int(input("Enter hours: "))m=int(input("Enter Minutes: "))s=int(input("Enter Seconds: "))sec=…
Q: Write a program that converts temperatures from Fahrenheit to Celsius.
A: #include<stdio.h> int main() { float Fahrenheit,…
Q: Write a program that reads in a temperature from the keyboard an- prints what type of shirt is…
A: Please find python code in the following step.
Q: Write a program that calculates the potential energy of 3 charges q1 = 1, q2 = 2, q3 = 3 located at…
A: C program: #include <stdio.h>#include<math.h> // function to print distancefloat…
Q: Write a program that prompts for and reads the radius and the height of a cylinder (in centimeters).…
A: Program Plan: Create function volume1() to convert the volume of a cylinder by using pass by value…
Q: Write a program that reads in hours, minutes, as input, and outputs the time in minutes only.
A: The language i used is C++. I explained the program in comments of the code and also attached the…
Q: Write a program that reads a person's first and last names separated by a space, assuming the first…
A: First, we will input first and last name. Then we will replace space with ", ". And finally, print…
Q: Write a program that converts numbers to words. For example, 895 results in "eight nine five."
A: Below is the required C++ code. Program Approach: Include necessary header files and use a…
Q: Write a program that prompts the user to input an integer and then outputs both the individual…
A: Program plan: Include the necessary header files. in the main method declare the character array.…
Q: Write a program that will convert a user's time given as input in seconds into hours, minutes and…
A: Given: To write a C program that will convert a user's time given as input in seconds into hours,…
Q: Write a program that accepts an object's mass (in kilograms) and velocity (in meters per second) as…
A: Note:- please mention programming language name from next time. This is written in c++. Logic:-…
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 calculates a “moving (rolling) average” of ten integer numbers entered by the…
A: We need to write a Python code to find moving average.
Q: ncreme
A: The program provided below calculates flame theoretical temperature when a mixture of methane,…
Q: Write a program that reads in an integer and breaks it into a sequence of individual digits. For…
A: We will be solving the question in Python for easy understanding. We will be taking our input in a…
Q: Write a python program that prompts the user for a word. If the word comes between the words apple…
A: PROGRAM: #Getting word word=input("Enter the word: ") #Checking word if(word>"apple" and…
Q: Write a program that converts temperature from Celsius to Fahrenheit and Fahrenheit to Celsius. The…
A: Program is below as per requirements with commented explanation and output.
Q: Write a Python program that takes a number from the user and prints the divisors of that number and…
A: The problem is based on findng the divisors of the input value using python programming language.
Q: Write a program that determines the distance to a lightning strike based onthe time elapsed between…
A: We need to find the distance to the lightning strike based on their time elapsed between the flash…
Q: Write a java program to find the arc length after taking angle and radius of arc from user.
A: Required:- Write a JAVA program to find the arc length after taking the angle and radius from the…
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 program that splits a 4-digits integer number into thousands, hundreds, tens, and ones. For…
A: Note: Answering the question in python as no language is specified. Input : Input the number.…
Q: Write a program that inputs two positive integers of, at most, 20 digits and outputs the sum of the…
A: Actually, program is a executable software that runs on a computer.
Q: Write a program that mimics a calculator. The program should take as input two integers and the…
A: A set of data from a sample of items is given. (a) The covariance between two random variables X and…
Q: Write a program to read and print 6 temperatures for 6 days and find the average for these degrees…
A: Since programming language was not mentioned , so I used PYTHON-- I have provided PYTHON CODE…
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 that can suggest an activity based on the temperature. If the temperature is between…
A: Hi. As you have not mentioned any programming language, I will choose Python. Let's move on to…
Q: Write a program, which takes an input from the user, if the number is between 90 100, Print A Grade,…
A: Since no programming language is mentioned, I am using python Algorithm: 1. Start 2. Take input…
Q: Write a program that reads an integer and displays its first five multiples. For example, if the…
A: #asking for the inputa=int(input("Enter a number : "))#loop for the 5 multiplicantsfor b in…
Q: Write a program that reads in three numbers from the keyboard and then prints those numbers in…
A: Two questions are asked. So the only the first question will be answered. Please upload another…
Q: Write a program that prompts and takes an input from a user with values ranging from 4 to 10 and…
A: We need to write a program in python language that display the diamond pattern given in the…
Q: Write a program that reads a Celsius degree from the console and converts it to Fahrenheit and…
A: Program 1: Output:
Q: write a program that prints all multiples of 5 between 5 and 50 inclusive and then reads a number…
A: Since you have not mentioned any specific programming language, we will solve this question for you…
Q: Write a program that will ask the user to enter an integer number and display the message r even…
A: An even number is a 2-fold integer. An integer not precisely divided by 2 is a mysterious number.…
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 down a program that will take an English letter as input and will print the next letter in the…
A: Input a character and then add 1 to it and display the updated character
Q: Write a program that mimics a calculator. The program should take as input two integers and the…
A: Since the programming language is not mentioned in the question, we will answer this question in the…
Q: Write a python program that asks the user how many credits they have taken. If they have taken 23 or…
A: Python program Prompt the user to enter the credits they have taken. Store the user entered…
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 to read two integers, then test if the two numbers are divisible by (5,6) at the…
A: Write a program to input two numbers and check if both are divisible by 5 and 6 at the same time
Q: In python, write a program that receives an integer from the user, called n, and prints the first n…
A: In this question we need to write a python program which takes an integer input n from user and…
Q: . Write a program that computes the theoretical flame temperature when a mixture of methane,…
A: This program provided below calculates flame theoretical temperature when a mixture of methane,…
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…
Step by step
Solved in 2 steps with 1 images
- Use python The speeding ticket fine policy in Wonderland-Bemidji is $50 plus $5 for each mph over the limit, plus an additional penalty of $200 for any speeds over 90mph. Write a program that accepts a speed limit (<= 90) and a clocked speed, and either outputs a message indicating the speed was legal, or prints the amount of the fine if the speed is illegal.You are asked to write a program that calculates your electric bill. You are to input the numberof kilo-watt hours (kWh) used in a 31 day billing period. Electricity costs 6.72 cents per kWh; atax of 8% should be added. Write a program that accepts the number of kilo-watt hours usedand prints a bill.Sample Run:Please enter the kilo watt hours over 31 days: 412Electric bill for a 31 days period is as follows:Number of Kilo Watt hours: 412.0Amount: $27.6864 Tax: $2.214912Total: $29.901311999999997. Write a program that generates and prints 50 random integers, each between 3 and 6. .Write a program that generates a random number, x, between 1 and 50, a random number y between 2 and 5, and computes x". .Write a program that generates a random number between 1 and 10 and prints your name that many times. .Write a program that generates a random decimal number between 1 and 10 with two decimal places of accuracy. Examples are 1.23, 3.45, 9.80, and 5.00.
- 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 computes the theoretical flame temperature when a mixture of methane, propane, n-butane, and n-pentane (0% to 100& methane in 5% increments; 0 to 100 mol% propane in 5% increments; 0% to 100% mole n-butane in 5% increments) at 25°C is burned with excess air (0% to 100% excess in 5% increments) preheated to preheated to (50°C to 200°C in 10°C increments)USE PYTHON A small shop sells 280 different items. Each item is identified by a 3 – digit code. All items that start with a zero (0) are cards, All items that start with a one (1) are sweets, All items that start with a two (2) are stationery and All items that start with a three (3) are toys. Write a program which inputs the 3 – digit code for all 280 items and outputs the number of cards, sweets, stationery and toys.
- Your relative, who goes to primary school and has just learned the multiplication table, asks you to constantly ask him. You wanted to gamify it. The computer will randomly scan in the multiplication table and the user will write the answer on the screen. There will be 10 questions in total and at the end the number of questions, the number of correct answers and the number of wrong answers will be printed on the screen. Also, write a program that will print if the percentage of success is below 80, it remained, and if it was above, it passed. (On C# ConsoleApp(.Net Framework)Write a program that computes the theoretical flame temperature when a mixture of methane, propane, n-butane, and n-pentane (0% to 100% mole methane in 5 % increments; 0 to 100 mol% propane in 5% increments; 0% to 100% mole n-butane in 5 % increments) at 25°C is burned with excess air (0% to 100% excess in 5% increments) preheated to preheated to (50°C to 200°C in 10°C increments)Your relative, who goes to primary school and has just learned the multiplication table, asks you to constantly ask him. You wanted to gamify it. The computer will randomly scan in the multiplication table and the user will write the answer on the screen. There will be 10 questions in total and at the end the number of questions, the number of correct answers and the number of wrong answers will be printed on the screen. Also write a program that will print if the percentage of success is below 80, it remained and if it is above it, it passed.
- Write a program that reads from the user a character (‘s’ or ‘a’). ∙ If the character is ‘s’, the program reads 4 numbers from keyboard and then finds their sum. ∙ If the character is ‘a’, the program reads 4 numbers from keyboard and then finds their average. ∙ Otherwise, it prints “Wrong character” Sample Run: Sample Run1: Enter a character (s or a): s Input 4 numbers: 10.5 12 31 44 The sum of these 4 numbers is: 97.5 Sample Run2: Enter a character (s or a): a Input 4 numbers: 10 12 31 44 The average of these 4 numbers is: 24.375 Sample Run3: Enter a character (s or a): d Wrong character4. Write a Phyton program that computes the speed of sound (a) in air of a given temperature T (°F ). Use the formula 5T+2297 2457 a = 10861Python 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