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
HAS ANYONE HEARD OF THE GAME SCHOOL DAY
Musya8 [376]

Answer:

NO BUT IT SOUNDS FUN

Explanation:

I PROBABLY HAVE NOT HEARD OF IF BC IM HOMESCHOOLED :D

3 0
3 years ago
Vinton cerf has been called one of main fathers of the internet. what internet organizations did he chair or help found? what in
Strike441 [17]
<span>He served from 2000-2007 as chairman of the board of the Internet Corporation for Assigned Names and Numbers (ICANN), an organization he helped form. </span>Cerf<span> is the co-designer of the TCP/IP protocols and the architecture of the </span>Internet<span>.</span>
5 0
3 years ago
A backup of sewage in the operations storeroom would be a reason to contact the local regulatory authority because it is conside
CaHeK987 [17]
65, for sure, the number at the end of the rectangle is the q3
6 0
3 years ago
Read 2 more answers
#Write a function called "scramble" that accepts a string #as an argument and returns a new string. The new string #should start
mojhsa [17]

Answer:

def scramble(s):

   if len(s) % 2 == 1:

       index = int(len(s)//2)

   else:

       index = int(len(s)/2)

   

   return s[index:] + s[:index]

Explanation:

Create a function called scramble that takes one parameter, s

Check the length of the s using len function. If the length is odd, set the index as the floor of the length/2. Otherwise, set the index as length/2. Use index value to slice the s as two halves

Return the second half of the s and the second half of the s using slice notation (s[index:] represents the characters from half of the s to the end, s[:index] represents the characters from begining to the half of the s)

8 0
3 years ago
How to show neither precious nor accurate
ella [17]
When it is shining it is precious. When it is normal it is accurate.











Please make as brainliest please please
8 0
3 years ago
Other questions:
  • What economic measure is at the highest level since the Great Depression?
    12·1 answer
  • 1. Bluetooth
    5·1 answer
  • List 5 anti-virus products currently in use
    15·1 answer
  • Can you get financial aid with average grades
    15·1 answer
  • It's possible to __________ out of a loop if the user has entered an incorrect value that would cause an error or a problem with
    11·1 answer
  • Help me or I'll go insane I've 6x already I'm about to lose it!!!!
    11·2 answers
  • How to play Drinkopoly game?
    12·1 answer
  • so you just gonna bring me a birthday gift on my birthday to my birthday party on my birthday with a birthday gift
    9·2 answers
  • How do the following technologies help you with your quest to become a digital citizen kiosks enterprise computing, natural lang
    13·1 answer
  • The domain name system ________. Question 2 options: A) is a way to find a host's IP addresses if your computer only knows the h
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!