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
seraphim [82]
3 years ago
10

Please provide 10 unsigned decimal integers.

Computers and Technology
1 answer:
svlad2 [7]3 years ago
4 0

Answer:

// Program is written in C++

// Comments are used for explanatory purpose

// Program starts here

#include<iostream>

using namespace std;

int main()

{

// Declare variables

int digits [10]; int num;

int sum = 0; int average;

for(int I = 0; I<10; I++)

{

cout<<"Please enter an unsigned number: ";

input: cin>>num;

if(num>4,294,967,296 || num < 0)

{

cout<<"You did not enter an unsigned number or your number was too big.";

cout<<'\n'<<"Please try again: ";

goto input;

}

digits[I] = num;

// Calculate Sum

sum+=digits[I];

}

// Output numbers

cout<<"You entered the following numbers"<<'\n';

for(int j = 0;j<10;j++)

cout<<digits[j]<<" ";

// Calculating Average

average = sum/10;

// Output Sum

cout<<"The sum of these numbers is: "<<sum;

// Output Average

cout<<"The average is: "<<average;

return 0;

}

Explanation:

You might be interested in
Which statement about digital certificates is​ FALSE? A. The CA verifies a digital certificate​ user's identity online. B. Digit
liq [111]

Answer:

A

Explanation:

chicken

7 0
4 years ago
i have a at&amp;t router and a 1000mbs Ethernet cable connecting from that to my net gear r7000 that can push +1000mbs. the cabl
Lady_Fox [76]
DSL ranges from 128Kbps to 3Mbps, so this would be your bottleneck.
7 0
3 years ago
Which type of evidence should victims collect to help officials catch cyber bullies
iren [92.7K]

Answer:

How you get cyberbullied just look away from the screen -Tyler The Creator

Explanation:

3 0
4 years ago
Read 2 more answers
Write a while statement that prints all even numbers between 1 and 100 to the screen.
Marrrta [24]

Answer:

Following are the while loop in c language.

while(i<100)

   {

if(i%2==0)

{

printf("%d",i);

printf("\n");

}

++i;

 }

Explanation:

Following are the code in c language.

#include<stdio.h> // header file

int main() // main function

{

   int i=1; // variable declaration

   while(i<100) // check the condition between 1 to 100

   {

if(i%2==0) // check that number % 2 ==0

{

printf("%d,",i); // print the number

}

++i;

 }

   return 0;

}

Output:

2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,

 

8 0
3 years ago
Please tell me about Advantages and disadvantages of technology development​
hoa [83]

Answer:

idkidkkkkkkkkkkkkkkkkk

3 0
3 years ago
Read 2 more answers
Other questions:
  • What is the number one drug used by teens?
    7·2 answers
  • TCP waits until it has received three duplicate ACKs before performing a fast retransmit. Why do you think the TCP designers cho
    13·1 answer
  • Write the pseudocode for linear search, which scans through the sequence, looking for ν. Using a loop invariant, prove that your
    14·1 answer
  • Explain what might happen if two stations are accidentally assigned the same hardware address?
    15·1 answer
  • Explain why a computer cannot solve a problem for which there is no solution outside the computer.
    14·1 answer
  • When you search google for​ dishwashers, you are likely to see a number of inconspicuous ads for​ advertisers, including product
    11·1 answer
  • If Phil is putting exact phrases in quotation marks while searching for information, he's using which of the following?
    14·1 answer
  • When working with copper cabling (as opposed to fiber optic) a ________ can check a variety of a cable's electrical characterist
    13·1 answer
  • True/False? In association rule learning, the following two rules will always have the same support value.
    9·1 answer
  • (25 POINTS) Some applications work on all devices while others work on some devices. True or False?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!