Answer:
The code defines 3 integers a, b and c, then defines a as the sum of b and c.
Explanation:
In the programming language C int data type is used to declare an integer variable, that is, it can store only both negative or positive integers. I will leave a complete example about it:
#include <conio.h>
#include <stdio.h>
int main()
{
int a, b, c;
printf( "\n Introduce first integer (entero): " );
scanf( "%d", &b );
printf( "\n Introduce second integer (entero): " );
scanf( "%d", &c );
a = b + c;
printf( "\n The sum is: %d", a );
getch(); /* Pause */
return 0;
}
Answer:
The solution code is written in Python 3
1. output = ""
2. with open("text1.txt") as file:
3. data = file.readlines()
4.
5. for r in data:
6. output += r.upper()
7.
8. with open("text2.txt", "w") as file:
9. file.write(output)
Explanation:
Firstly, let's ready a variable output to hold the read data from the first text file (Line 1).
Next, use open function to create a file stream object and use its readlines() method to read all rows of data from text1 (Line 2 -3)
Next create a for loop to traverse through every row of the read data and use upper() function to change all characters in the current row to uppercase and append it to output variable.
Once the entire output string is ready, use open function again to create a file stream object but add "w" as second parameter of the open function (Line 8).
Lastly, use write method to copy the uppercase text held by the output variable, to the new file, text2 (Line 9).
brainly.com/question/10887381
Answer:You need 7 bits to encode everything that could be typed on this keyboard.
Explanation:
The encoding of the QWERTY keyboard is based on the extended ASCII encoding. The "ASCII" code was created by the "American standards association" in 1963.The acronym of “American Standard Code for Information Interchange” is ASCII. ASCII is a 7-bit code.
Further Explanation:
The QWERTY keyboard is the standard computer and typewriter keyboard design for Latin-script alphabets. The first six letters of the keyboard's upper row indicate its name. Christopher Latham Sholes designed the layout of the keyboard for his "Type-Writer". It was first mass-produced in 1874.
In QWERTY keyboard, extended American Standard for Information Interchange (ASCII) method is used for characters encoding. Alphabetical order of English language is the base of ASCII method of characters encoding.
Learn More:
Learn more about QWERTY keyboard: brainly.com/question/649081; Answered by: Jessusulas
Learn more about ASCII: brainly.com/question/7851735; Answered by: LearnGrow
Keywords:
QWERTY keyboard, The encoding of the QWERTY keyboard, American Standard for Information Interchange, ASCII