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
A user asks for a checkbox to be automatically ticked if the annual revenue field is greater than a million. Which formula to tr
Otrada [13]

Answer:

AnnualRevenue > 1000000

Explanation:

First, represent the field for annual revenue with AnnualRevenue

From the question, we understand that this field must be greater than 1000000 before a certain action can be performed.

Base on the given condition, the formula that triggers this action is: AnnualRevenue > 1000000

<em>Further explanation is in the attachment</em>

<em></em>

<em>From the attachment, we have that:</em>

If the condition is true, the checkbox be ticked

However, if the condition is false; the checkbox remain unchanged because no specific action is stated for this, in the question.

<em></em>

6 0
3 years ago
If you want to use your computer for recording your band, you would benefit most from a(n)
notka56 [123]
A. MIDI interface.
RAID is a set of strategies for using more than one drive in a system.
3 0
3 years ago
Read 2 more answers
Technician A says in computer language a 0 or 1 is called a bit. Technician B says in computer language a 0 or 1 is called a byt
pochemuha

Answer:

Technician A is right 0 or 1 is called a bit

Explanation:

In computer language, Binary system is used in which data is shown either as 0 or 1.

A bit can hold either 0 or 1.

A byte can hold 8 bits of information.

Normally we use byte to represent computer storage.

A Kilo Byte (KB) can hold 1,024 bytes of information or 1,024*8 = 8,192 bits

A Mega Byte (MB) can hold 1,024*1,024 =1,048,576 bytes

or 1,048,576*8= 8,388,608 bits

Hence 0 or 1 is called a bit not byte therefore, Technician A is right!

8 0
4 years ago
Full virtualization is ideal for ___________. Migration capacity Computer system sharing,isolate users Disaster recovery Data re
Usimov [2.4K]

Answer:

Computer system sharing, isolate users

Explanation:

Full virtualization is ideal for "Computer system sharing, isolate users." This is evident in the fact that Full virtualization is a technique in which data are shared between operating systems and their hosted software. This strategy is then carried out from the top of the virtual hardware.

Also, the full virtualization strategy in computer service requests is distinguished from the physical hardware that enables them.

Hence, in this case, the correct answer is "Computer system sharing, isolate users."

3 0
3 years ago
write a function copy(s, n) that takes as inputs a string s and an integer n, and that uses recursion to create and return a str
Yuri [45]

Answer:

Following are the method to the given question:

def copy(s, n):#defining a method copy that takes two parameters

   if n <= 0:#definig if to compare n value is less than equal to 0

       return ''#return space  

   else:#definig else block  

       return s + copy(s, n-1)#use recursive method that return value

print(copy("by",2))#calling method and print value

print(copy("ta",2))#calling method and print value

print(copy("good by ",2))#calling method and print value

Output:

byby

tata

good by good by

Explanation:

In this code, a method "copy" is declared that takes two parameters that are "s and n" inside the method a conditional statement is used which can be defined as follows.

In the if block is used "n" variable that checks n value which is less than equal to 0 if it is true it will return a space value.

In the else block it use the recursive method that returns a value which is a copy of s that is concatenated together.

8 0
3 years ago
Other questions:
  • Following are groups of three​ phrases, which group states three ways to improve your​ concentration?
    13·1 answer
  • What's does the Mutual Reward Theory state?
    10·1 answer
  • Units for measuring computer memory
    5·1 answer
  • What is an example of CT SO?
    9·1 answer
  • What is word length in computer​
    10·2 answers
  • What are 2 ways to access the vendor credit screen in quickbooks online?
    13·1 answer
  • Write a C program to calculate and display the coordinates of midpoint - M of a linesegment between two given points - say A and
    7·1 answer
  • Block elements start a new line when rendering? (true or false)
    7·1 answer
  • What is the half of 3/18
    6·1 answer
  • A department store maintains data on customers, products, and purchase records in three tables: customer, product, and purchase.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!