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
Rufina [12.5K]
3 years ago
7

Write a statement that reads 5 successive integers into these variables that have already been declared : x1 x2x3x4 x5. Then wri

te a statement that prints each out on its own line so that they form a right-justified column with a 5-digit width. If any of the integers are 5-digits in size, then they will start at the very beginning of their lines. For example:|54213| 8713| 23| 147| 15cin >> x1 >> x2 >> x3 >> x4 >> x5;cout << setw(5) << right << x1 << "\n";cout << setw(5) << right << x2 << "\n";cout << setw(5) << right << x3 << "\n";cout << setw(5) << right << x4 << "\n";cout << setw(5) << right << x5 << "\n";
Computers and Technology
1 answer:
Triss [41]3 years ago
8 0

Answer:

The statement to this question can be given as:

Statement:

cin >> x1 >> x2 >> x3 >> x4 >> x5;

cout<<right;

cout << setw(5) << x1 << "\n" << setw(5) << x2 << "\n" << setw(5) << x3 << "\n" << setw(5) << x4 << "\n" << setw(5) << x5 << "\n";

Explanation:

In the question, it is given that there is 5 integer variable that is  x1, x2, x3, x4, and x5. In the above statement, we print the value of the integer variable and the right-justified column with a 5-digit width. In this statement first, we insert the value of the variables then we print the value in 5-digit width within its own line.

You might be interested in
What is the process of analyzing data to extract information not offered by the raw data alone? data mart analysis data mining d
ludmilkaskok [199]
The answer is data mining. Hope this helps. :)
3 0
4 years ago
Write a function solution that returns an arbitrary integer which is greater than n.
Aleksandr-060686 [28]

Answer:

   public static int greaterThanInt(int n){

       return n+10;

   }

Explanation:

This is a very simple method in Java. it will accept an argument which is an integer n and return n+10 since the question requires that an arbitrary integer greater than n be returned adding any int value to n will make it greater than n.

A complete java program calling the method is given below:

<em>import java.util.Scanner;</em>

<em>public class ANot {</em>

<em>    public static void main(String[] args) {</em>

<em>        Scanner in = new Scanner(System.in);</em>

<em>        System.out.println("Please enter an integer");</em>

<em>        int n = in.nextInt();</em>

<em>        int greaterInt = greaterThanInt(n);</em>

<em>        System.out.println("You entered "+n+", "+greaterInt+" is larger than it");</em>

<em>    }</em>

<em>    public static int greaterThanInt(int n){</em>

<em>        return n+10;</em>

<em>    }</em>

<em>}</em>

4 0
4 years ago
Which system provides an easier way for people to communicate with a computer than a graphical user interface (GUI)
Marta_Voda [28]
Answer: natural Language Processing

Explanation:

Natural Language Processing: It is a sub field of linguistics which is concerned with the interactions between Human and computer especially how to program computers to process and to understand large amounts of natural language data.
6 0
3 years ago
Kurran posts photos of himself to his blog.He later decided to delete a photo from his blog.Suggest why the photo might not be r
SCORPION-xisa [38]

Answer:

You may think your photo is removed from the internet, but is actually not. Do you know why? Because if you post a picture on the Internet, people can quickly start posting it somewhere else, which causes the picture that you thought you deleted or removed from your blog is on a different website. This is why you need to watch what you are posting because just one little thing can spark the most attention, causing you to get into the MOST trouble.

Hope this Helps!

6 0
3 years ago
Which two hardware features would a technician monitor within the bios if a computer was suspected of overheating?
Firdavs [7]
I would say probably the CPU Fan and the CPU clock speed 
4 0
3 years ago
Other questions:
  • Which of the following is a Web browser? Exit Test A Windows B Comcast High-Speed C Microsoft Internet Explorer D Modem
    7·1 answer
  • ____ is a practice where a user in enticed by possible rewards and then asked to provide personal information.
    14·1 answer
  • What structures in which lighting heating and other systems are controlled by computers
    14·1 answer
  • When protecting a worksheet all cells are locked by default.?
    10·1 answer
  • 5. How many subnets are possible in a network with a /19 CIDR?
    5·1 answer
  • list out the application of the computer and explain it?(and as the answer for this question as image) ​
    7·1 answer
  • U $ er Ideas for R 0 B 1 0 X?
    12·2 answers
  • Doing free poitns soon!
    7·2 answers
  • To have the full protection of the law, copyrights, patients, and ______ should be registered with the government.
    10·1 answer
  • Write a function expand_string(a, pre, suf, num) that takes the parameters a,pre,sub and num appends the prefix pre, and suffux
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!