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:
- Absence of control statements
Explanation:
In the research of software development in 1970 it is found that there are two deficiencies.
1 Absence of type checking
The researcher sees that there is a fault in the type checker we can not convert one datatype into the other data type also it gives error in converting the one datatype into another.
2 Absence of control statements
The control statement plays an important role in the programming language . When the condition of the multiple arises then in that condition we used the control statement .in 1970 their is deficiencies of control statement.
Hence type checking and control statements are the two programming language deficiencies which are found by the researcher in software development of 1970.
Specifications are the technical details about each hardware component
Answer: I am pretty sure it's RAM
Explanation:
I'm not 100% positive bc I haven't gotten my scores back yet but I think that's it.