Answer:
<em>This program is written in C++</em>
<em>Comment are used to explain difficult lines</em>
<em>The first program that prints 0 to 20 (in decimal) starts here</em>
#include<iostream>
int main()
{
//Print From 0 to 20
for(int i = 0;i<21;i++)
{
std::cout<<i<<'\n';
}
}
<em>The modified program to print 0 to 20 in hexadecimal starts here</em>
#include<iostream>
using namespace std;
int main()
{
//Declare variables to use in conversion;
int tempvar, i=1,remain;
//Declare a char array of length 50 to hold result
char result[50];
//Print 0
cout<<"0"<<endl;
// Iterate from 1 to 20
for(int digit = 1; digit<21; digit++)
{
//Start Conversion Process
//Initialize tempvar to digit (1 to 20)
tempvar = digit;
while(tempvar!=0)
{
//Divide tempvar by 16 and get remainder
remain = tempvar%16;
if(remain<10)
{
result[i++]=remain + 48;
}
else
{
result[i++] = remain + 55;
}
//Get new value of tempvar by dividing it by 16
tempvar/=16;
}
//Print result
for(int l=i-1;l>0;l--)
{
cout<<result[l];
}
i=1;
cout<<endl;
}
return 0;
}
//The Program Ends Here
See Attachments for program 1 and 2; program 2 is the modified version of 1
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
cpp
</span>
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
cpp
</span>
Answer:
This is a Answer Not Question... But Answering it to explain what it is.
Explanation:
Answer:
a. nonsubversion
Explanation:
Codd has 12 rules for relational databases which can be used in recent times to describe how Structured Query Language server operates.
The rule no 12 is the Non-Subversion Rule which states that if a system supports a low-level language, then that language will not be used to subvert the integrity rules that are being expressed in relational languages that are of higher levels
Answer:
Network
Explanation:
As we know that switches create a network and routers connect networks. The two pieces of equipment look similar and perform some similar functions, but each has its own distinct function to perform on a network.
Therefore, the first option Network is the correct answer.
A world have 2^128 (340 undecillion) of IPv addresses that helps to connect to the internet. IPv6 addresses can make it easier for working organizational teams connecting to the Internet, IP addresses that are created by IPv6 are 128 bits.
<h3>What is internet?</h3>
Internet is the system uses the Internet protocol suite (TCP/IP) and interconnected computer networks that communicate between two or more individuals.
Today, almost 20 IP addresses are taken by7 each home for each electronic device. The internet usage is so wide, that even a simple task is not possible without it. Even a simple task can be done using internet.
Learn more about internet.
brainly.com/question/13308791
#SPJ1