The body mass index is calculated as a person’s weight (in pounds) times 720, divided by the square of the person’s height (in inches). A BMI in the range 19-25, inclusive, is considered healthy. Using python write a program that calculates a person’s BMI and prints a message telling whether they are above, within, or below the healthy range
Q: Create a program that calculate the following; • Total amount of sales in a specific day (X). •…
A: - We have to code the sales program for the input from the user.
Q: Write a program that will determine if a number is positive or negative. If positive it should be…
A: Given: Write a program that will determine if a number is positive or negative. If positive it…
Q: In Python programming language. Write a program that calculates the sum of prime numbers that could…
A: def prime_number(n): #function prime_number if(n == 0 or n == 1): #if n is 0 or…
Q: Given 4 floating-point numbers. Use a string formatting expression with conversion specifiers to…
A: #Enter float variables and convert the input to float num1=float(input());…
Q: Use python ( Converting a given date to the day number in the year) Write a program that…
A: Here is the code for you: #! /usr/bin/pythonprint 'Enter the date in the format mm dd yyyy: ',import…
Q: In python, Write a program that prompts for an odd integer that is between 50 and 100, inclusive.…
A: PSEUDO CODE: BEGIN //Heading WRITE "Checking for odd value between 50-100" //Reading input from the…
Q: Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the…
A: Algorithm of the Program: Declare the necessary variables and collect the user's input for the pound…
Q: Write a program that computes the average temperature of Jeddah over one week. The user must be…
A: Required: Write a program that computes the average temperature of Jeddah over one week. The user…
Q: Write aC++program that allows a user to enter their rating of the three movies in the DarkKnight…
A: [Note: Explanation of the program code is provided within the comments.] Program code:…
Q: Write a program that computes the average temperature of Jeddah over one week. The user must be…
A: Required: Write a program that computes the average temperature of Jeddah over one week. The user…
Q: Write Python programs to solve the problem. Shipping is free for online orders totaling $50 or more…
A: Python program that prompts for the unit price of an item and its quantity#get the inputs from the…
Q: Write a program to calculate the estimated engine horsepower of a car based on the weight of the car…
A: As no programming language is mentioned, it is solved using basic C++
Q: An electricity company charges their consumers according to the units consumed per month according…
A: It is defined as a powerful general-purpose programming language. It is used in web development,…
Q: A triathlon is a multiple stage sports competition, where athletes compete for fastest overall…
A: Use a loop to iterate for 50 times and accept the input and store minimum time and respective player…
Q: A year is a leap year if it is divisible by 4 unless it is a century year (divisible by 100) that is…
A: You should follow the following steps to determine whether a year is a leap year or not. If a year…
Q: write a PYTHON program for An online music and apps store offers all apps for 3$ each and all songs…
A: Program for the above describe condition: app = 3 song = 7 prepay = int(input('How much money do you…
Q: An electricity company charges their consumers according to the units consumed per month according…
A: ALGORITHM:- 1. Take input for the number of units consumed by the user. 2. Calculate the charge of…
Q: Write a program that determines the additional state tax owed by the employee. The State charges a…
A: We need to provide C code for tax owned by Employee.
Q: Write a program that gets the number and a letter. If the letter is ‘f’, the program should treat…
A: #include <iostream> using namespace std; int main(){ float value; char l; float…
Q: Write a code for the following problem: “If the day of the week is Monday through Friday, then a…
A: There are several ways to implement this code structure. We can use if / Then / Else and conditional…
Q: A) Write a program that inputs temperature and display a message according to the following data:…
A: Program: #include <iostream> using namespace std; int main() { float temp; cout <<…
Q: In order to discourage excess electric consumption, an electrical company charges its customers a…
A: Step 1 : Start Step 2 : Take input for the Electricity consumed in Kilowatt-hours from the user.…
Q: 1a - VAT Write a program that takes the price of an article including VAT and prints the price of…
A: """Program that takes the price of an article including VAT and printsthe price of the article…
Q: The programming language is C++, write a program base on the given statement. Create a program…
A: 1. Input the Real Estate Value 2. If the value < 2,50,001, 1. tax = 5% of value 3. Else, if…
Q: Driving is expensive. Write a program using Python with a car's miles/gallon and gas dollars/gallon…
A: mileage = float(input())rate = float(input()) costPerMile = rate / mileage value1 = costPerMile * 20…
Q: In a retail store, they offer an anniversary sale for their specially designed T-shirts (A, B, and…
A: Hi. Let's move on to the code in the next step. I have included comments in the code that will…
Q: In a right triangle, the square of the length of one side is equal to the sum of the square of the…
A: Python is a high-level, general-purpose and a very popular programming language. Python programming…
Q: In C++ language, create a program that gets quarterly sales from a user, and calculates the total of…
A: pseudocode :
Q: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats)…
A: format is used to specify the format to display the output value
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: Write a program that asks for the number of calories and fat grams in a food. The program should…
A: Hello Student. Warm welcome from my side. Hope you are doing great. Here's your answer. Since you…
Q: Suppose the voltmeter voltage is constrained to the range Vmin = 12 volts ≤ Vm ≤ Vmax = 18 volts.…
A: Hello Student. Warm welcome from my side. Hope you are doing great. I will try my best to answer…
Q: Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the…
A: Algorithm:Following is the python program that takes as input from user the number of pounds to be…
Q: The goals scored in a soccer match may be inputted as a sequence of 1s and 2s terminated by 0. The…
A: Write a program that will find which team have more goals and then print the total goals of each…
Q: Create a program that will input the 3 game scores of a player and then output the level of the…
A: Since there are no messages given in the question for the condition where the weighted average falls…
Q: Python write a program that allows the store to enter the total positive clicks and the total…
A: Python code for: Here you need to take 2 inputs from the user and then do subtraction to get the…
Q: Using java language, Write a program whose input is a character and a string, and whose output…
A: import java.util.Scanner; public class CharCountp { public static void main(String[] args) {…
Q: Write a Python program that will indicate which substances will freeze and which substances will…
A: - We need to code for freezing and boiling substances problem.
Q: ssume a number sequence, where first 3 numbers, n0 = 3, n1 = 0 and n2 = 2 are given and the 4th…
A: Summary: In this question, we have been given one sequence and we have to print that sequence using…
Q: The Fibonacci numbers are the sequence below, where the first two numbers are 1, and each number…
A: In the Fibonacci series, the next number is the sum of the first two preceding numbers. The first…
Q: In Python programming language. Write a program that calculates the sum of prime numbers that could…
A: Step 1: Read bStep 2: While (temp=true):Step 3: if b is positive Call sum().…
Q: At a certain school, student email addresses end with @student.college.edu, while professor email…
A: Lets see the solution.
Q: The New Telephone Company has the following rate structure for long-distance calls: The regular…
A: Solution:
Q: Use Python to : Write a program that asks the user for a number in the range of 1 through 7. The…
A: Detailed answer in the below step.
Q: Write a program that asks for the number of calories and fat grams in a food. The program should…
A: Write a program that asks for the number of calories and fat grams in a food. The program should…
Q: An electricity company charges their consumers according to the units consumed per month according…
A: 1) read number of units from user 2) use if to determine charge slab 3) calculate total charge…
Q: at a certain school, student email addresses end with @student.college.edu, while professor email…
A: Given below is the python program for the same. Note: while copying please take care of the proper…
Q: Write a program for the Animal Express delivery company. The company charges by the kilogram for…
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it in…
Q: Write a Python program that will indicate which substances will freeze and which substances will…
A: def printFreezeBoil(t,l): freezeList=[] boilList=[] for i in l:…
The body mass index is calculated as a person’s weight (in pounds) times 720, divided by the square of the person’s height (in inches). A BMI in the range 19-25, inclusive, is considered healthy. Using python write a
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 4 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.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.Challenge Problem python G U E S S T H E N UM B E R Write a program that plays a guessing game with the user. The program should have the right answer set to 13, then prompt the user repeatedly to guess the number from 1 to 25. When the user guesses incorrectly, the game should give the user a hint about whether the correct answer is higher or lower than the guess. Once the user guesses correctly, the program should print a message showing the number of guesses that the user made. Note : This assignment involves the use of a while loop and if-else decision making controls. You CANNOT use the reserved keywords break and continue for any portion of this program or any program for that matter throughout this course.
- IN PYTHON Write a script which uses the input function to read a string, an int, and a float, as input from keyboard prompts the user to enter his/her name as string, his/her age as integer value, and his/her income as a decimal. For example your output will display as: Mark is 30 years old and his income is 2000 Please show code.Python Programming Only Please: Write a program that asks the user to enter a person’s age. The program should displaya message indicating whether the person is an infant, a child, a teenager, or an adult. Following are the guidelines: • If the person is 1 year old or less, he or she is an infant.• If the person is older than 1 year, but younger than 13 years, he or she is a child.• If the person is at least 13 years old, but less than 20 years old, he or she is a teenager.• If the person is at least 20 years old, he or she is an adult.PYTHON LANGUAGE Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: Make sure the number of fat grams and calories is not less than 0. According to nutritional formulas, the number of calories cannot exceed fatGrams×9. Make sure that thenumber of calories entered is not greater than fatGrams×9Once correct data has been entered, the program should calculate and display the percentage of calories thatcome from fat. Use the following formula:Percentageofcaloriesfromfat=(Fatgrams×9)÷CaloriesSome nutritionists classify a food as “low fat” if less than 30 percent of its calories come from fat. If the resultsof this formula are less than 0.3, the program should display a message indicating the food is low in fat
- 3prep Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the price per pound depends upon the quantity ordered according to the table shown below. Partial pounds are not sold. Shipping is $1.00 per pound, but free for coffee orders over $150 before tax. The user must enter the number of pounds desired from the keyboard. The program will then display the cost of the coffee, the 7% sales tax, shipping charges (if any) and the total amount due. All four values should be displayed in currency format with the $ sign right up against the first digit. See SAMPLE OUTPUTS below.MoonBucks Coffee Company - Coffee Prices40 pounds or more $7.50 per lb.20 pounds or more $8.75 per lb.10 pounds or more $10.00 per lb.1 to 9 pounds $12.00 per lb. Start with a comment that includes your name and course number. Include pseudocode that describes all steps required to solve the problem. Employ variable names that…Java Language The company will held its quarterly performance for each department; wherein each group of the department are rated from 1 to 5, where 1 is the lowest score and 5 is the highest score. The department has two groups, groupA and groupB. Each group will be rated by five evaluators. Create a program that will ask for the input rate of the evaluators, and determine the group that got the highest rating, as well as the overall rating of the department. Use the UML diagram below as a reference. Department() – accepts 5 ratings of the evaluators and determines the groupScore which is the total rating of the group. getGroupAverage() – returns the value of groupAverage which is the average score of the group. displayAverage() – displays the overAllAverage which is the average of the whole department. overAllScore is the over all score of the department. Department Group Score: Int Group Average : Double Overall Score: int overall Average: double Department()…PYTHON code that finds the prime divisors of a number entered on the keyboard and prints it on the screen write. (For example, the prime divisors of 10 are 2 and 5. The prime divisors of 20 are 2 2 and 5. Truck.)
- A complex number is a number in the form a + bi, where a and b are real numbers and i is sqrt( -1). The numbers a and b are known as the real part and imaginary part of the complex number, respectively.You can perform addition, subtraction, multiplication, and division for complex numbers using the following formulas:a + bi + c + di = (a + c) + (b + d)ia + bi - (c + di) = (a - c) + (b - d)i(a + bi) * (c + di) = (ac - bd) + (bc + ad)i(a+bi)/(c+di) = (ac+bd)/(c^2 +d^2) + (bc-ad)i/(c^2 +d^2)You can also obtain the absolute value for a complex number using the following formula:| a + bi | = sqrt(a^2 + b^2)(A complex number can be interpreted as a point on a plane by identifying the (a, b) values as the coordinates of the point. The absolute value of the complex number corresponds to the distance of the point to the origin, as shown in Figure 13.10.)Design a class named Complex for representing complex numbers and the methods add, subtract, multiply, divide, and abs for performing complex…A complex number is a number in the form a+bi, where a and b are real numbers and i is √(-1) The numbers a and b are known as the real part and imaginary part of the complex number, respectively. You can perform addition, subtraction, multiplication, and division for complex numbers using the following formulas: a + bi + c + di = (a+c) + (b+d)i (addition) a + bi − (c + di) = (a−c) + (b−d)i (subtraction) (a + bi) * (c + di) = (ac−bd) + (bc+ad)i (multiplication) (a + bi) / (c + di) = (ac+bd) / (c2+d2) + (bc−ad)i / (c2+d2) (division) You can obtain the Absolute Value for a complex number using the following formula: |a + bi| = √(a2 + b2) A Complex number can be interpreted as a point on a plane by identifying the (a,b) values as the coordinates of the point. The absolute value of the complex number corresponds to the distance of the point to the origin, as shown in the example below. (1) Design a class named Complex for representing complex numbers Include…Al-Hadidi hypermarket offers a variety of food, household, electronics, and garments items. They determine the retail price based on the markup percentage that is different for each item's category. The following table shows the markup percentage of various item categories. Item Category Grocery Markup Percentage 5% Fresh-Food 8% Electronics 10% Lifestye 20% Home-living 15% Write a Python program named retailprice.py that asks the user to enter an item's wholesale cost and category and calculate the retail price for the item according to the following formula: Retail price = wholesale price + (wholesale price * markup percentage) Run and test your program. Once done, submit the file named retailprice.py at the link below.