In python. Write a program that calculates the BMI (Body Mass Index) of a person, which is used to determine if the ratio of weight and height is appropriate. BMI can be calculated using the following formula: index = weight / height ^ 2 Where the weight must be given in kilograms and the height in meters. The following table shows how the different index ranges are classified: index range Description index <20 LOW WEIGHT 20 <= index <25 NORMAL 25 <= index <30 OVERWEIGHT 30 <= index <40 OBESITY index >= 40 MORBID OBESITY
Q: 14. Use Gauss-Jordan elimination to solve the following linear system: -3x + 4y = -6 5x - y = 10 O…
A: The answer is option (a)(2,0) below is the explanation,
Q: describe how a company uses data as a predictive layer in decision-making
A: Data-driven decision-making (sometimes abbreviated as DDDM) is the process of using data to inform…
Q: 19.) (Multiple Choice) In the statement System.out.println();', what is 'println()'? a.) An object…
A: We have java statement as "System.out.println() which is used to print the desired value in Java. As…
Q: Define the characteristics that are required for test-driven development. In the event that you…
A: According to the question essential principles of check pushed improvement TDD and assuming that you…
Q: Synaptic weights are w,-1.2, w, -0.4, w,-0.7. Find the given input above (or) below the line ?
A: The answer is
Q: Write a JavaScript function in html to divide an array A to two others arrays: Positive and…
A: We need to write a JavaScript function in html to divide an array A to two others arrays: Positive…
Q: 3.7 LAB - Create Horse table with constraints Create a Horse table with the following columns, data…
A: Introduction: SQL stands for Structured Query Language. SQL is the standard language for relational…
Q: a. K = 3 b. Ciphertext: SVFPDQOODHAXHBHUXWDOHHVGDVB plaintext: PSCMANLLEAUEBERUTALEESDASB 2.…
A: Every cipher you mentioned is a cipher based on a letter, meaning that you exchange one letter for…
Q: Match the condition indicated when the following status flags are set. Carry [Choose ] result is…
A: There are various flags which gets set based upon the results of the instructions executed.
Q: When should a network update be scheduled?
A: Introduction: Network: It is a group of computers that pool their resources and make them available…
Q: Describe the steps necessary to prepare a brand new computer for usage ?
A: To start usage of a new computer, there are many things on must know. Because the new computer does…
Q: Please provide solution in Java Script
A: 1. Create a Method with 3 arguments2. Initialize the variable 3. Use the below logic const arr=…
Q: What exactly do you mean when you say "system engineering"? And why is it vital to have system…
A: Given Question: When you say "system engineering," what precisely do you mean? And why is system…
Q: Apply the Java concepts that you learned (OOP, polymorphism, interfaces, packaging, …), SOLID…
A: The objective is to write the program code using or applying JAVA concepts. Also, this application…
Q: The kind of recurrent transaction that notifies us whenever we should utilize an existing recurring…
A: Here is the explanation:
Q: In what case would you want to use a red black tree over an AVL tree and vice versa ?
A:
Q: The width of the physical address on a machine is 30 bits. The width of the tag field in a 64 KB, 16…
A: Physical address = 30 bits(PA) cache memory size = 2^6B block size = 2^x B(BO) set associativity =…
Q: 8. Explain why in any group of 1500 people there must be at least 3 people who share first and last…
A: Solution :
Q: Which of the following returns the correct average for a total that is the sum of 3 int values?…
A: Introduction: A data type is required for all variables in the Java programming language. The type…
Q: keep track of currnt node of AVl tree write a function that returns the current node and its value…
A: Here we have given a code for AVL tree to return current node and it value with O(1) complexity. You…
Q: Try to design a sign-up sheet for a learning website. Ask the user for the following information: ●…
A: Name: ___________________________ Preferred Username: ___________________________ Password:…
Q: draw an example of such graph A graph with 7 vertices with degrees 5,3,3,2,2,2,1
A: Introduction: As there is some basic thing you should now . If the addition of degrees is even then…
Q: Stack operation in x86 is a O LIFO (Last-In, First-Out) FIFO (First-In, First-Out) operation.
A: What is LIFO? LIFO stands for Last-in, First-out. It is a method in data structures where the…
Q: Write a MATLAB program to find the DFT (X(k)) for the signal x that has an input sequence (1,2,3,4)…
A: Task : Given the input sginal. The task is to find the DFT of signal.
Q: Which one is better: transposition cipher or substitution cipher and why?
A: The substitution technique uses a substitute for the plaintext characters to convert it into…
Q: If a person walks up a mountain for 18 minutes at 20mph and then returns down the same path at 60mph…
A: Create the method with 3 arguments Initialized the variables use the logiclet dist = upTime * upSpd…
Q: If A and B are reference variables to the objects of MyClass, what can we say about this comparison?…
A: Here is the explanation about the equality test:
Q: Your in-house company has been selected for development a gym system, with many branches, your team…
A: As a result, this research investigates and creates new takeout alternatives that are simpler and…
Q: Question: Similarly, what can be displayed from the output of the program?
A: Option 1 is correct It determines whether a number is either positive, negative or zero
Q: omputer Science 1. Prove that (A + B) (A + C) = A + BC
A: This question is related to boolean algebra. The answer is attached in screenshot where every step…
Q: convex function...
A: Given :- In the above question, the function is mention in the above given question Need to prove…
Q: FastLink Limited is a microfinance company that gives out loans to deserving customers. Customers…
A: 1)HTML Code for the admin login interface Save this code as login.html and open with this file in…
Q: A new timestamp will be applied to a transaction in line with the ordering of timestamps if that…
A: A new timestamp is issued to a transaction when it is rolled back in compliance with timestamp…
Q: Write MARIE assembly language code to implement the following algorithm:
A: Let Sum be Y and Count be X. Code: Whileloop, Load X // start loop and load value of X(AC = X)…
Q: 1 Update CITY_NAME of CUSTOMER table for all customers. Take CITY_NAME from CITY table according to…
A: Update CITY_NAME of CUSTOMER table for all customers. Take CITY_NAME from CITY table according to…
Q: Prove that (A + B) (A + C) = A + BC
A: We have(A+B)(A+C)Apply Distributive Law=(A+C)A+(A+C)BApply the distributive law:=AA+AC+(A+C)BApply…
Q: Either draw an example of such graph or explain why such graph doesnt exist A graph with 7 vertices…
A: Solution:: As there is some basic thing you should now . If the addition of degrees is even then…
Q: A combinational logic circuit has three inputs equence A, B, and C and two outputs with seque d Y.…
A:
Q: explain (1) what is HCI, (2) what are conceptual models, and (3) the types of interaction?
A: HCI stands for Human-Computer-Interactions. How to facilitate an effective HCI The interface…
Q: Simplify the expressions, (i) AB+ AB'(A'C')' (ii) AB+A (B+C) + B (B+C)
A:
Q: To transmit the data 1011000 to his friend using hamming code technique. Calculate (i) number of…
A: The answer is
Q: Modify the SELECT statement to select the title and release date of PG-13 movies that are released…
A: Answer:
Q: Make an algorithm and flowchart of the following problem set. 5. Draw a flowchart that computes the…
A: An algorithm is a step-by-step process of solving a problem. Algorithm: Start Read a number n…
Q: Write the following assembly language codes: a) Write a single instruction to add the carry flag to…
A: According to guidelines, I can only solve three parts. a) ADC AH, AH ADC is used for addition with…
Q: mplement a complete class in c ++ code that represents a stack. The stack must contain the…
A: here is the code in O(1) complexity:
Q: Q4: Write a C++ program to create a linked list contains 20 nodes, then delete the node that…
A: I give the code in C++ along with output and code screenshot
Q: Make an algorithm and flowchart of the following problem set. 1. Draw a program that display the…
A: We will first simply write the series from 0 to 5 . This is done using for loop from starting with 0…
Q: 3032 TT 27 -2 12 12. Perform Gauss-Jordan elimination on the augmented matrix shown. [102] A.0 17…
A: This question comes from Number Theory which is a paper of Computer Science. Let's discuss it in the…
Q: What type is the most appropriate to use to record if it is raining or not? boolean int String…
A: Variable:A variable is a name associated with a memory location in the computer, where you can store…
Q: Java
A: NOTE :- As you didn't mention what you want to know you only mentioned Java so below i explain the…
In python. Write a program that calculates the BMI (Body Mass Index) of a person, which is used to determine if the ratio of weight and height is appropriate. BMI can be calculated using the following formula:
index = weight / height ^ 2
Where the weight must be given in kilograms and the height in meters. The following table shows how the different index ranges are classified:
index range
Description
index <20
LOW WEIGHT
20 <= index <25
NORMAL
25 <= index <30
OVERWEIGHT
30 <= index <40
OBESITY
index >= 40
MORBID OBESITY
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
- C++ Language code and explain Zodiac Sign Identifier - Ask the user's birth month and birth day and return the corresponding Zodiac Sign he/she belongs: Evaluate the user's birth month and day by checking the following: If born from, Mar 21 to Apr 19 - Aries Apr 20 to May 20 - Taurus May 21 to Jun 20 - Gemini Jun 21 to Jul 22 - Cancer Jul 23 to Aug 22 - Leo Aug 23 to Sep 22 - Virgo Sep 23 to Oct 22 - Libra Oct 23 to Nov 21 - Scorpio Nov 22 to Dec 21 - Sagittarius Dec 22 to Jan 19 - Capricorn Jan 20 to Feb 18 - Aquarius Feb 19 to Mar 20 - Pisces Example: What is your month of birth? 1 - January (31 days) 2 - February (27 days, if Leap Year 28 days) 3 - March (31 days) 4 - April (30 days) 5 - May (31 days) 6 - June (30 days) 7 - July (31 days) 8 - August (31 days) 9 - September (30 days) 10 - October (31 days) 11 - November (30 days) 12 - December (31 days) Please enter your birth month: 8 Please enter day of your birth: 16 Please enter your year of birth: 1997 Your birthday is every…Write a program using C# You are tasked with writing a program to process students’ end of semester marks. For each student you must enter into your program the student’s id number (an integer), followed by their mark (an integer out of 100) in 4 courses. A student number of 0 indicates the end of the data. A student moves on to the next semester if the average of their 4 courses is at least 60 (greater than or equal to 60). Write a program to read the data and print, for each student: The student number, the marks obtained in each course, final mark of the student (average of all the marks), their final grade (A,B,C,D or F) and whether or not they move on to the next semester. In addition, after all data entry is completed, print The number of students who move on to the next semester and the number who do not. The student with the highest final mark (ignore the possibility of a tie). Grades are calculated as follows: A = 70 and over, B = 60 (inclusive) -70, C =…In C++ language, create a program that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example that should be used/followed when executed The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters. Please make sure the average is ROUNDED 2 places to get the output 16489.74 instead of 16489.73
- 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 Home-living 20% 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)Programming Assignment Create a program application using C#, C++, or your preferred software for a small Employee Payroll system using one dimensional arrays. Include the following for at least 5 employees for a period of 3 months (assume the employees are paid monthly) a. hourly wages b. monthly earnings c. annual earnings d. monthly deductions (look the basic deductions) e. annual deductions f. net pay g. gross payAl-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.
- Python Returning Funtion function name: bound_0_to_100 parameters:a number grade returns: the grade with a minimum of 0 and a maximum of 100 behavior: In addition to exceeding 100, sometimes a grade will be so spectacularly bad that it falls below 0. In that case we want to normalize it to 0 so all grades fall into the range [0, 100]. ex: bound_0_to_100(75) returns 75, bound_0_to_100(103) returns 100, and bound_0_to_100(-5) returns 0C++ Language Write a program that prints a custom conversion table from Celsius temperatures to Fahrenheit and Newton (Links to an external site.) temperatures. The formula for the conversion from Celsius to Fahrenheit is : F=9/5*C+32 F is the Fahrenheit temperature, and C is the Celsius temperature. The formula for the conversion from Celsius to Newton is C = 100/33*N N is the Newton Temperature and C is the Celsius temperature Your program should prompt the user for a lower value and upper value for a range of temperatures in Celsius. It should then prompt the user for the amount they want to increment by. Then use a loop to output to a file named conversion_table.txt a table of the Celsius temperatures and their Fahrenheit and Newton equivalents within the range of values using the increment given by the user. Make sure to format your output to 2 decimal places. INPUT VALIDATION: Ensure the second number is greater than the first number, and make sure the increment is greater…in c++ Write a program to generate a random number between 1 - 100, and then display which quartile the number falls in. First quartile is 1 - 25 Second quartile is 26 - 50 Third quartile is 51 - 75 Fourth quartile is 76 - 100 To generate a random number, follow these steps: include necessary header files #include <cstdlib> //for random functions #include <ctime> //for time functions set constants for the minimum and maximum values of the desired range const int MIN_VALUE = 1; //minimum range value const int MAX_VALUE = 100; //maximum range value seed the random number generator (RNG) with a unique unsigned int value - system time! unsigned seed = time(0); //system time in seconds since 1/1/1970 srand(seed); //seed the RNG get a random number in the desired range int num = (rand() % (MAX_VALUE - MIN_VALUE + 1)) + MIN_VALUE; The program should: contain header comments as shown in class display a "hello" message (more descriptive than shown in sample)…
- In C++ language, create a program that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters.Jeff and Gern run a furniture company specializing in tables and chairs. To save time, when a new order comes in, a special shorthand is used to describe the order. The rules for their shorthand are as follows • The first character is "T" for a set of tables, or "C" for a set of chairs. If the order includes both tables and chairs, the order shorthand begins with "TC" • Next they indicate the number of tables or chairs for the order. If the order includes both tables and chairs, they'll write the number of table first, then the number of chairs, separated by a dash. An order comes in for three standard tables constructed using Oakwood. What would the order shorthand be for this order?C# Language You are tasked with writing a program to process students’ end of semester marks. For each student you must enter into your program the student’s id number (an integer), followed by their mark (an integer out of 100) in 4 courses. A student number of 0 indicates the end of the data. A student moves on to the next semester if the average of their 4 courses is at least 60 (greater than or equal to 60). Write a program to read the data and print, for each student: The student number, the marks obtained in each course, final mark of the student (average of all the marks), their final grade (A,B,C,D or F) and whether or not they move on to the next semester. In addition, after all data entry is completed, print The number of students who move on to the next semester and the number who do not. The student with the highest final mark (ignore the possibility of a tie). Grades are calculated as follows: A = 70 and over, B = 60 (inclusive) -70, C = 50(inclusive)-60 D =…