1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
PIT_PIT [208]
3 years ago
12

(Rounding Numbers) An application of function floor is rounding a value to the nearest

Computers and Technology
1 answer:
Whitepunk [10]3 years ago
7 0

Answer:

Following are the program in the C++ Programming Language.

//header file

#include <iostream>

//header file for floor function

#include<math.h>

//using namespace

using namespace std;

//define main function

int main() {

 //set and initialize float type variable and value

 float a=12.3, c=1.45, d=165.345;

 //initialize it in other variable

 float x=a;

 //set float variable to store floor value

 float y=floor(x+5);

 //display output with message

 cout<<"before "<<x<<" and after the floor "<<y<<endl;

 //set float variable to store floor value

 y=floor(c+5);

 //display output with message

 cout<<"before "<<c<<" and after the floor "<<y<<endl;

 //set float variable to store floor value

 y=floor(d+5);

 //display output with message

 cout<<"before "<<d<<" and after the floor "<<y;

}

Output:

before 12.3 and after the floor 17

before 1.45 and after the floor 6

before 165.345 and after the floor 170

Explanation:

Here, we define the "main()" function and inside the main function.

  • Set and initialize three float data type variables "a", "c", "d" to 12.3, 1.45, 165.345.
  • Set the float data type variable "x" to store the value of the variable "a"
  • Again set float type variable "y" to store the floor value.
  • Then, Print message and output of the variable.
  • Again we repeat point 3 and 4 two times.
You might be interested in
Ch. 6 Agile Modeling &amp; Prototyping SDLC vs. Prototyping "I’ve got the idea of the century!" proclaims Bea Kwicke, a new syst
larisa86 [58]

Answer:

Refer below.

Explanation:

A.The SDLC ought not be rejected for each venture since certain frameworks might be rashly molded before the issue or opportunity being tended to is altogether comprehended. Additionally, utilizing prototype as an option may bring about utilizing a framework that is acknowledged by explicit gathering of clients yet which is insufficient for in general framework needs. In numerous framework prototyping can be effectively incorporated with SDLC approach. For surely knew frameworks, a straight SDLC approach has demonstrated its value.

B.In epic or complex circumstance, prototyping is a perfect mechansim for better understanding client prerequisites, and for getting client input for improving framework viability. What's more, prototyping has demonstrated valuable when fused into SDLC. This combination is especially helpful in better learning client needs.

4 0
3 years ago
Privilege escalation is an​
olga55 [171]

Answer:

Privilege escalation is the act of exploiting a bug, design flaw or configuration oversight in an operating system or software application to gain elevated access to resources that are normally protected from an application or user.

Explanation:

give brainiest plzlz

7 0
3 years ago
Please don’t comment if you don’t know the answer.
abruzzese [7]

Answer:If your notebook computer battery does not power the notebook or will not hold a charge, troubleshoot the battery to see if it needs to be replaced. If the battery indicator LED, located near the power icon, does not glow or always blinks, there is a battery problem. Your computer might operate correctly when it is connected to the power adapter, but not when using battery power.

Explanation:

7 0
3 years ago
The title of a JFrame can be set by using which statement in the constructor of your class that extends JFrame?
yanalaym [24]

Answer:

super("Title here");

Explanation:

JFrame is a Java swing class for displaying Frames in Graphical User Interface. The title of a JFrame can be set by calling  super("Title here");      as the first statement in the constructor of your class that extends JFrame. This causes  the constructor of the parent JFrame class to be called with the specified String argument and this String is then set as the title for the GUI frame.

7 0
4 years ago
How many times faster is a computer that measures at
jekas [21]

well Its something soooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

6 0
2 years ago
Other questions:
  • The term "net radiation" refers to _____ the total amount of energy received by earth. the total amount of energy radiated by ea
    5·1 answer
  • Other side for bullying
    7·1 answer
  • A ___ is a mobile device that typically ranges from seven to ten inches in size.
    14·1 answer
  • True / False
    5·1 answer
  • Your laptop donot have a serial port. what type of connector will your laptop requireyour laptop donot have a serial port what t
    7·1 answer
  • Hlo plss help.<br>.....,, ​
    7·2 answers
  • What are real online jobs any one of any age can get pays weekly by Pay<br> Pal
    8·1 answer
  • Imagine that you are about to make a presentation during an online meeting, where people will need to be able to see you, and yo
    10·1 answer
  • state how to transfee information from website to el processing document in computers and technology.​
    12·1 answer
  • All information that is to be processed by a computer must first be entered into memory via an input device.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!