Programming of Computer Equipment: Assignment Works-1
Programming of Computer Equipment: Assignment Works-1
Assignment Works-1
Group E-ET-1
KAUNAS, 2024
1 Task no.1
1.1 Task description
Assignment Tasks:
1. Based on Example 1.1, write a program that: a) Displays your name, surname, group name, and
school name on separate lines. b) Investigate what the line cin >> x; does. What would happen if
this line were removed?
2. Based on Example 1.3, write a program that: a) Displays your name and surname above the
calculation results instead of "John Doe." b) Performs all basic arithmetic operations (+, –, *, /,
%), and displays the results in int, float, and double types. c) Submit a report with screenshots
(PrintScreen) of your program. The first input number should be 1000 * variant_number, and the
second number should be 3 * variant_number.
3. Write a program that generates a table for the input of three numbers. The table should be well-
aligned with visible borders and corners. Calculate the division of each number by 3, displaying
the quotient, remainder, and full division result.
4. Submit a report including the completed assignment tasks, the program's source code,
algorithms, and conclusions..
#include <iostream>
using namespace std;
int main() {
int x;
cout << "alp" << '\n';
cout << "inan" << '\n';
cout << "ET1-1" << '\n';
cout << "Lietuvos inzinierius kolegija";
cin >> x;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int num1, num2;
int intResult;
float floatResult;
double doubleResult;
2
value1 = 1000 * num1;
value2 = 3 * num2;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int num1, num2, num3;
3
int q3 = num3 / 3, r3 = num3 % 3;
return 0;
}
4
For Example 1.3 Results: