Programming Language: Python Create a program that will accept a value in feet and output the corresponding length in inches. Note: 12 inches = 1 foot
Q: SalaryStmt.py Write a python program that accepts name of an employee and employee's yearly sales of…
A: It is defined as a powerful general-purpose programming language. It is used in web development,…
Q: PYTHON code that finds the prime divisors of a number entered on the keyboard and prints it on the…
A: import math def primeFactors(n): while n % 2 == 0: print (2) n = n // 2 for…
Q: Write a statement that assigns [0, 1, 2, 3, 4] to the variable numbers. python
A: ANS: - numbers = [0,1,2,3,4] Above statement assigns [0, 1, 2, 3, 4] to the variable numbers.
Q: Al-Hadidi hypermarket offers a variety of food, household, electronics, and garments items. They…
A: The problem is based on the calculation of retail price based on the menu system.
Q: (Geometry: great circle distance) The great circle distance is the distance between two points on…
A: The Java program is written where it takes the latitude and longitude degrees from the user for the…
Q: (Science calculate energy) Write a python program that calculate the energy needed to heat water…
A: The given problem is to be solved using the python program that will take the water weight, initial…
Q: write a program to display fruit sales receipts. Apple: Pink Lady - $4.99/kilo, Fuji - $5.99/kilo.…
A: I give the code in Python along with output and code screenshot
Q: Python Calender library- Write a program that takes input year number from user and print the…
A: Here have to determine about python code for print whole year calander.
Q: In Python, Assuming minors are younger than 13 and adults are older than 19, write a program that…
A: PSEUDO CODE: BEGIN //Reading input from the user READ age //Checking condition for minor…
Q: (Area and perimeter of a circle) Write a program that displays the area and perimeter of a circle…
A: """Write a python program that displays the area and perimeter of a circle """ #constant value for…
Q: Python Assignment Lab 3- 1. Prompt the user to enter two integers x,y and then print the value of…
A: Given: To write a python program that Prompt the user to enter two integers x,y and then print the…
Q: Type a Python calculator-like program (program idea: asks the user to enter two numbers, then the…
A: Given: Q: Type a Python calculator-like program (program idea: asks the user to enter two numbers,…
Q: Write a code snippet that can arrange the alphabets of a name entered by user in alternate…
A: #include <iostream>#include <string>using namespace std; int main() { string name;…
Q: Light travels at 3 x 10° meters per second. A light-year is the distance a light beam travels in one…
A: In this question, we are asked to write a python program such that it return the distance of light…
Q: the output of this program is (6) void main ){ int a,b,c;a=1,b%3D5;c%=Da+b;cout <<a<<b<<endl; * true…
A: Question 1: The given code has a=1 and b = 5 Now cout<<a<<b<<endl; will give 1 5
Q: An employee’s total weekly pay equals the hourly wage multiplied by the total number of regular…
A: A required Python program is as follows, #Get the hourly wage hour_rate = float(input('Hourly…
Q: Find the number of years and days) Write a program that prompts the user to enter the minutes…
A: Lets see the solution in the next steps
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: Algorithm: 1. Input unit sold 2. Check if quantity is not negative. 3. Check the condition for…
Q: Python question Write a program that calculates the average word length in a sentence entered by the…
A: THIS PYTHON PROGRAM TAKES A SETANCE AS USER INPUT AND PRINT THE AVERAGE WORD LENGHT def…
Q: Assume the variables x, y, and z have each been assigned an integer value. write a fragment of code…
A: Algorithm: If x is less than equal to y and x is less than equal to z, then min will…
Q: For grading system (0 to 100) for the course MATH, SCIENCE and ENGLISH create a program that will…
A: math = int(input())science= int(input())english = int(input()) average= ((math+science+english)/3)…
Q: Machine Problem:(Computing Body Mass Index)Body Mass Index (BMI) is a measure of health on weight.…
A: Your python program is given below as you required with an output.
Q: Write an expression that will cause the following code to print "I am an adult" if the value of…
A: #aksing user to enter ageuser_age=int(input()) #checking if age is less than equal to…
Q: person can obtain their driver's license if they are of legal age and have official identification.…
A: The python code here we go
Q: One acre of land is equivalent to 43,560 square feet. Write a program that calculates the number of…
A: The algorithm for the program is as follows:Accept input string as the square feetCalculate the…
Q: PYTHON code that finds the prime divisors of a number entered on the keyboard and prints it on the…
A: PYTHON code that finds the prime divisors of a number entered on the keyboard and prints it on the…
Q: Al-Hadidi hypermarket offers a variety of food, household, electronics, and garments items. They…
A: Python used to answer this question
Q: Write Python code that prompts the user to enter his or her height and assigns the user’s input to a…
A: EXPLANATION First, print the simple message to take the user height. After printing the message…
Q: An ATM contains Indian currency notes of 100,500 and 2000. To withdraw cash from this ATM, the user…
A: As you have not provided the sample output in the question. So, we have provided the output in the…
Q: in python 3.2 Selling a new vehicle pays a salesperson $1500. Selling a used vehicle pays a…
A: Import local function to use currency formatting in the program.prompt user to enter the type of…
Q: Create a program using switch statements that will ask the user to input an intege
A: Program: <?php// prompt for number$t = (int)readline('Enter an integer: ');// define switch…
Q: Description: Write a program that reads ten double numbers and displays them in reverse order Input…
A: Using for loop we can solve this.
Q: PYTHON PROGRAMMING Guessing Game: Will generate random number, then ask user to guess the number,…
A: 1) read lower limit and upper limit from user 2)generate the random number using…
Q: Create a program that would input the value of the base and height of a Triangle and output the Area…
A: Algorithm Start Var b, h, a Input b and h from user a= 0.5*b*h Output a Stop
Q: c++ program create a program that wil ask the user to accept a value of hours and minutes. after…
A: As given, I need to write a C++ program that accept a value of hours and minutes and display the…
Q: (Physics: acceleration) Average acceleration is defined as the change of velocity divided by the…
A: NOTE: Since programming language is not mentioned. Therefore answering the question in Python…
Q: Financial application: compute future apartment rent) Suppose that the rent for an apartment is…
A: The problem is based on finding the rent of the apartment using programming. NOTE: The code is…
Q: In Python, Assuming minors are younger than 13 and adults are older than 19, write a program that…
A: Solution programming Approach Print a message Declare a variable of integer type and take the…
Q: [Question Description] Write a program that reads an unspecified number of integers, computes the…
A:
Q: Write a measurement conversion program that will read a person's weight in grams and will display…
A: Here I have taken input from the user. Then, I have converted the inputted weight into the required…
Q: Use C++ Programing language. Write a program that computes and displays the charges for a patient’s…
A: The C++ program that displays a menu choice 1. for inpatient and 2 are for outpatient. Then prompt…
Q: reate a program that will accept two numbers. Display the sum, difference, product, and quotient.
A: Given Create a program that will accept two numbers. Display the sum, difference, product, and…
Q: rite a program to accumulate the "x" deposits made in a month in a savings account, include in the…
A: Given Question, Write a program to accumulate the "x" deposits made in a month in a savings account,…
Q: Body mass index (BMI) is a measure of health based on weight. It can be calculated by taking your…
A: Given: Body mass index (BMI) is a measure of health based on weight. It can be calculated by taking…
Q: 3prep Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and…
A: Program AlgorithmDeclare the required variables and take the input from the user for the pound’s…
Q: 2. Create a program that will accept 10 scores and will display the MAXIMUM SCORE. USE JAVA…
A: A program that accepts 10 numbers, will accept it in an array. It will only print the maximum score…
Q: Show what the program segment would display on the screen. int x = 2; int y = 2 *…
A: Programming is a way to instruct the computer devices to operate. Every computer needs a set of…
Q: the output of this program is 6 void main (){int a,b,c;a=1,b%3D5;c%=a+b;cout <<a<<b<<endl; * true…
A: Answer : False code has a error . but i correct it and try still not getting 6 as output . it print…
Q: a runner runs 14 kılometers in 45 minutes and 30 sec- onds. Write a program that displays the…
A: => Here in the program ask for a calculating average speed in miles per hour.
- Create a program that will accept a value in feet and output the corresponding length in inches. Note: 12 inches = 1 foot
Step by step
Solved in 2 steps with 1 images
- (Data processing) Years that are evenly divisible by 400 or are evenly divisible by 4 but not by 100 are leap years. For example, because 1600 is evenly divisible by 400, 1600 was a leap year. Similarly, because 1988 is evenly divisible by 4 but not by 100, it was also a leap year. Using this information, write a C++ program that accepts the year as user input, determines whether the year is a leap year, and displays a message telling the user whether the entered year is or is not a leap year.Programming Language: PHP 2. Create a program using switch statements that will ask the user to input an integer. If the first Integer is less than 10, get the product of the two input If the first integer is equal to 10, get the sum of two inputs. Otherwise, divide the integer to 10 and get the remainder as output.Language: Python Write a program that computes and displays the charges for a patient's hospital stay. First, the program should ask if the patient was admitted as an in-patient or an out-patient. If the patient was an in-patient the following data should be entered: - The number of days spent in the hospital - The daily rate -Charges for hospital services (lab tests, etc.) -Hospital medication charges If the patient was an out-patient the following data should be entered: -Charges for hospital services (lab tests, etx.) -Hospital medication charges Use a single, seperate function to validate that no input is less than zero. If it is, it should be re-entered before being returned. Once the required data has been input and validated, the program should use two seperate functions to calculate the total charges. One of the functions should accept arguments for the in-patient data, which the other function accepts arguments for out-patient data. Both functions should return the total…
- An ATM contains Indian currency notes of 100,500 and 2000. To withdraw cash from this ATM, the user has to enter the number of notes he/she wants of each currency, i.e. of 100, 500 and 2000. Write a python program to calculate the total amount withdrawn by the person from the ATM in rupees.Python Programming. Write a program that computes how much a customer has to pay after purchasing two items. Make the lower-priced item half price. If the two items have identical prices, you can make one or the other half price. The price is calculated according to the following rules:• Buy one get one half off promotion: the lower price item is half price.• If the customer is club card member, additional 10% off.• Tax is added. Inputs to the program include:• Two items’ prices• Have club card or not (User enters ‘Y’ or ‘y’ for “yes”; ‘N’ or ‘n’ for “no”)• Tax rate (User enters the percentage as a number; for example, they enter8.25 if the tax rate is 8.25%) Program displays:• Base price - the price before the discounts and taxes• Price after discounts - the price after the buy one get one half off promotionand the member’s discount, if applicable• Total price – the amount of money the customer has to pay (after tax)printed with the precision of 2 decimal digits. Hint: In order to…Java Programming Create a program that will display the following output using while() loop statement.
- In-class Python Practice – 2020/02/11 Write a program that asks the user for a number in the range of 1 through 7. The program should display the corresponding day of the week, where 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday, and 7 = Sunday. The program should display an error message if the user enters a number that is outside the range of 1 through 7. 1. 2. amount1 amount2. amount2 Write a program that will input values for to variables Then do the following: if display the greater of amount1 amount1 amount2. and is greater than 10 and and is less than 100, 3. The month of February normally has 28 days. But if it is a leap year, February has 29 days. Write a program that asks the user to enter a year. The program should then display the number of days in February that year. Use the following criteria to identify leap years: Determine whether the year is divisible by 100. If…Change Return Program: (Write a python program for the following) The user enters a cost and then the amount of money given. The program will figure out the change and the number of twenty-dollar bills, ten-dollar bills, five-dollar bills, single-dollar bills, quarters, dimes, nickels, pennies needed for the change. You must have the maximum amount of higher denominations possible before allowing for lower denominations. For example, If your change is $18.88, You must have One Ten-dollar bill, One Five-dollar bill, Three singles, Three quarters, One dime and three pennies. There should be no nickels; No three Five-dollar bills etc.In Python Write a program that allows the user to type in a phrase and then outputs the acronym for that phrase. Note: The acronym should be all uppercase, even if the words in the phrase are not capitalized.
- A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent. Write a program that asks the user to enter the total sales for the month in python.Design a program that asks the user for a series of names (in no particular order). After the final person’s name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb. This is to be done in Python.Python Calender library- Write a program that takes input year number from user and print the calender of whole year with day of each date.