Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

BMI or Body Mass Index is a method of estimating a person's body fat levels based on a person's weight and height measurement. The BMI is calculated by dividing the person’s body mass/weight (in kilograms) by the square of the body height (in metres). The result is universally expressed in units of kg/m2. BMI formula: BMI = weight /(height)2 BMI Weight status Below 18.5 Underweight 18.5‐24.9 Healthy 25.0‐29.9 Overweight 30.0 and above Obese



Write a program that calculates a person’s BMI and displays the weight status according to the BMI value, indicating whether the person is underweight, healthy, overweight or obese. The BMI weight statuses and related values are listed in the above table.



The program should have the following functions: 1.1. getData that prompts and returns their weight and height; (5) 1.2. calcBMI to calculate the BMI ; (5) 1.3. displayFitnessResults to display the BMI and relevant weight status message; (5) 1.4. ma
Solve the following problems showing clearly all steps taken to arrive at the solution sets.



1. 3x²-5x-2=0​where ​-3<x<4







2. 2x²-4y+y²-5x+3xy-5=0; Let​-1<x<3​and​0>y>-2





3. 4x3m – 5x2y + 3y2x – 3x + 2y – 10 = 0



​-2=<x<=2

​0=<m<2

​-4<y<3​as their respective variable ranges.
convert to ternary operator if(x<=2) y=2.5*x+3 else y=5*x+4
Write the complete java program called Temperature that includes a for loop structure,

prompting the user to enter 5 temperature values. The program should add up each

temperature entered within the loop and this is stored in a variable called total. Using a

system statement, output the total temperature value and the average temperature value.
Instructions

Write a program that uses an initializer list to store the following set of numbers in an array named nums. Then, print the array.


14 36 31 -2 11 -6
conducting a survey to rate the quality of their services in order to improve their

services. In the survey, 30 students were asked to rate the quality of the service in the library on a

scale of 1 to 5 (1 indicating very bad and 5 indicating excellent). You have to store the 30 responses of

the students in an array named responses[]. Then, you have to count the frequency of each scale

and store it in an array named frequency[]. Use the appropriate looping structure to enter the

responses and to count the frequency. You are also required to display the percentage of the

frequency of each scale. Display the scale, frequency and its percentage as shown below.

The program also allows the user to repeat this process as often as the user wishes.
using recursion and the is_divisible function, Your program may assume that both arguments to is_power are positive integers. Note that the only positive integer that is a power of "1" is "1" itself.


After writing your is_power function, include the following test cases in your script to exercise the function and print the results:


print("is_power(10, 2) returns: ", is_power(10, 2))

print("is_power(27, 3) returns: ", is_power(27, 3))

print("is_power(1, 1) returns: ", is_power(1, 1))

print("is_power(10, 1) returns: ", is_power(10, 1))

print("is_power(3, 3) returns: ", is_power(3, 3))
("Debugging") lists three possibilities to consider if a function is not working.


Describe each possibility in your own words.


Define "precondition" and "postcondition" as part of your description.


Create your own example of each possibility in Python code. List the code for each example, along with sample output from trying to run it.
Write function to check if word is palindrome. For example "radar" is palindrome, "hello" is not.
Briefly (i.e., in no more than 2 sentences) describe the benefit(s) of using Hamcrest (i.e., "assertThat" and associated matchers) over "assertTrue", "assertFalse" and "assertEquals."
LATEST TUTORIALS
APPROVED BY CLIENTS