![Nepnep682](/avatars/18502.jpg)
Nepnep682
04.07.2019 •
Mathematics
Write a while loop that prints user_num divided by 2 until user_num is less than 1. sample output for the given program:
Solved
Show answers
More tips
- A Animals and plants How to Properly Care for Orchids: Secrets to Successful Cultivation...
- W Work and Career Which types of activities are not subject to mandatory licensing?...
- C Computers and Internet Thin Client: What It Is and Why You Need It?...
- F Food and Cooking The Most Delicious and Simple Fish in Batter Recipe...
- F Food and Cooking Red Caviar: How to Choose the Best?...
- C Computers and Internet Clearing Cache: How to Speed Up Your Browser...
- S Style and Beauty How are artificial nails removed?...
- S Style and Beauty Secrets of Tying a Pareo: 5 Ways...
- F Food and Cooking Everything You Need to Know About Pasta...
Answers on questions: Mathematics
- M Mathematics I really need help please...
- M Mathematics A new notebook computer with DVD player costs $929 Derik Muller has 51000 in his checking account. How much will be left in his checking account after he buys the...
- M Mathematics True or false: If you have a skewed distribution, you should use the median and the IQR to describe the center...
- M Mathematics Help me In these two Questions this algebra Inequalities And also Give me and explanation how you got the Answer Thank you!!...
- M Mathematics How many factors of 10 are in 1,000...
- M Mathematics Write an equation in slope-intercept form of the line that passes through (3,8) and (1, - 2) The equation is y = ?...
- M Mathematics Part A: Choose the fraction below that is a repeating decimal. Show your WORK/tell HOW you figured it out in Q5. Part B: Does a repeating decimal mean that a number...
- M Mathematics Ellen has $120 in a savings account. She plans to deposit $25 each week. Write an equation that can be used to determine the total amount of money, t, in the account...
- M Mathematics How many metersare equivalent to 2 miles...
- M Mathematics 2) What is the value of x in the equation 3x + 2 =20? O 2/3 O -2/3 6 O -6 O None of the above...
Ответ:
while(user_num >= 1.0){
printf("%.2f", user_num);
user_num = user_num/2;
}
Step-by-step explanation:
I am going to write a C code for this.
The first step is read the value of user_num.
After that, inside the while loop, you print the value then divide user_num by 2.
In the print, %.2f prints the float to two decimal cases.
So
float user_num.
scanf("%f\n", user_num);
while(user_num >= 1.0){
printf("%.2f", user_num);
user_num = user_num/2;
}
Ответ:
Step-by-step explanation:
A mathematics teacher wanted to see the correlation between test scores and homework. The homework grade (x) and test grade (y) are given in the accompanying table. Write the linear regression equation that represents this set of data, rounding all coefficients to the nearest tenth. Using this equation, estimate the homework grade, to the nearest integer, for a student with a test grade of 31.
Homework Grade (x) Test Grade (y)
58 52
75 66
66 68
85 74
52 38
74 65
78 76