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
garri49 [273]
3 years ago
7

Write a program that prompts the user to input the decimal value of a double and outputs the number rounded to the nearest integ

er.

Computers and Technology
1 answer:
KengaRu [80]3 years ago
5 0

Answer:

#include <bits/stdc++.h>

using namespace std;

int main() {

double n;

cout<<"Enter a decimal number: ";

cin>>n;

int Round= floor((n- floor(n))*2);

if(Round==0)

{

n= floor(n);

}

else n= ceil(n);

cout<<n;

return 0;

}

You might be interested in
Select the answer that best describes the ethical guideline followed in each scenario.
Montano1993 [528]
We need the scenario to solve this feel free to comment on this with your so scenarios and I will provide you with answers or just post another question
4 0
3 years ago
Technology experts in the area of _____ specialize in technology for competitive advantage. a. process design b. hardware strate
Arte-miy333 [17]

Answer:

The correct answer to the following question will be Option B (Hardware strategy).

Explanation:

<u>Hardware strategy:</u>

It looks at existing infrastructure for software, hardware, and services and discusses the designs of physical databases.

Hardware Strategy should try and identify any technological threats or limitations surrounding the following:

  • Quality
  • Maintenance
  • Delivery
  • Scalability
  • Disaster recovery
  • Sizing

This approach also aims at maximizing the importance of existing technical resources. The team looks at the efficient use of software and their overall transition to company and technological environments.

Therefore, Option B is the right answer.

3 0
3 years ago
IT professionals recognize that successful systems must be user-oriented, and users need to be involved, formally or informally,
bogdanovich [222]

Answer:

True is the correct answer for the above question.

Explanation:

  • The software is a collection of instruction which states the computer to how to do a specific work. The software developer only develops the software, but it is used by many users of the software who wants to do some specific task.
  • The developer creates a graphical event for users through which the user can use the software of the computer system for his personal use.
  • So the above line concludes that the software is for the user only. So the user interaction in software development is necessary which is also said by the question-statement. Hence the question statement is the true statement.
5 0
4 years ago
Write the statement that includes a friend function named before in the class dateType that takes as parameters two objects of t
Lerok [7]

Answer:

In opp friend function is a function that gives the same access to private and protected data. It is declared in class that is granting access.

Explanation:

#include<iostream.h>

using namespace std;

class Sum

{

 int a, b, add;

 public:

 void input()  

{

 cout << "Enter the value of l and m:";

 cin >> l>>m;     taking input from users

}

 friend void add(sum &t);

 void display()  

{

  cout << "The sum is :" << z;

}

};

 void add(sum & p)  

{

  p.add = p.a + p.b;

}

 int main()  

{

  sum p1;

  p1.input();

  add(p1);

  p1.display();

  return false;  

if(display==5)  

{

 return true;  //true is returned if sum is equal to 5

}

else        //if they are not the same

{

 return false;

}

}

8 0
3 years ago
In the formula =SUM(A6:A9), which of the following best describes A6:A9
lianna [129]

Arguments are indeed the values used by <em>functions to perform computations</em>, and the further discussion can be defined as follows:

  • <em>Functions</em> in spreadsheet programs including Excel Sheets are simply built-in formulas that perform predefined calculations.
  • In this, the majority of these functions require data to be supplied, either by the user or from another source, to deliver a result.
  • It is a real value that is provided to the function, as well as the parameters, are initialized to the value of the arguments supplied.
  • In this question, a method "SUM(A6:A9)" is declared that takes value from A6 to A9, in its parameter(Argument) that <em>adds value from</em>.  

Therefore, the final answer is "Option A".

Learn more:

brainly.com/question/12269471

6 0
3 years ago
Read 2 more answers
Other questions:
  • The process of __________ encourages members to accept responsibility for the outcomes of a group and for changing the style in
    8·1 answer
  • what injection practices are part of Standard Precautions and are aimed at maintaining basic levels of patient safety and health
    13·1 answer
  • You are writing a report using a template provided by your supervisor. If you increase the margins around your pages by 30 perce
    5·1 answer
  • Of the following occupations, which is predicted to have the greatest job growth?
    7·2 answers
  • In an If-Then-Else statement, the Else clause marks the beginning of the statements to be executed when the Boolean expression i
    13·1 answer
  • In order to manage information for a company, your website would need a/an
    6·1 answer
  • PLEASE HELP what is the mechanical advantage of a wheel with a radius of 8.0 cm connected with a axle with a radius of 2.5 cm?
    12·2 answers
  • Write a switch statement that tests the value of the char variable response and performs the following actions: if response is y
    9·1 answer
  • What are some specific ways that businesses use the internet?
    6·2 answers
  • What is the output?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!