u/Bazzzley

Image 1 — [First semester of college. Computer Science] Definition of false and true statements, reporting, writing simple codes
Image 2 — [First semester of college. Computer Science] Definition of false and true statements, reporting, writing simple codes

[First semester of college. Computer Science] Definition of false and true statements, reporting, writing simple codes

The translation of the tasks:

File 1:

Task №1

Among the following sentences, identify the statements and determine whether they are true or false:

  1. The Iset River flows into the Caspian Sea;

  2. Drink orange juice;

  3. All people are brothers;

  4. Mathematical logic is an engaging science;

  5. 4 < 5 ;

  6. 5x + 9 ;

  7. 5x + 9 = 0 ;

  8. For all natural numbers x and y , the equality x + y = y + x holds.

Task №2

Construct a truth table for the formula x \& \overline{x} .

File 2:

Practical session 6

Task №1

Study and prepare a report (no more than 3 A4 pages) describing the syntax and examples of using the WHILE statement in the C language (C++, C#).

Task №2

In one of the languages C, C++, C#, BASIC, PHP, Java, JavaScript, write code that solves the following problem (submit the source code in a programming language for verification, not an executable file):

The values of N and k are entered by the user. Find the algebraic sum for the expression:

1k + 2k + 3k + ... + Nk

Please help

u/Bazzzley — 5 days ago