Вопрос задан 05.05.2019 в 01:46. Предмет Информатика. Спрашивает Кондик Елена.

в школе 20 учеников писали диктант по русскому языку. напишите программу, подсчитывающую количество

двоек, троек, четверок и пятерок, полученных за диктант.
0 0
Перейти к ответам

Ответы на вопрос

Внимание! Ответы на вопросы дают живые люди. Они могут содержать ошибочную информацию, заблуждения, а также ответы могут быть сгенерированы нейросетями. Будьте внимательны. Если вы уверены, что ответ неверный, нажмите кнопку "Пожаловаться" под ответом.
Отвечает Дрожжинова Танюшка.
Логическая задачка)
Смотри,в школе 20 учеников,мы можем предпологаем,что 15 человек написали на четверки! Два человека на 3 !!
а остальные на пятерки,! Удачи!!!
Рада была помочь)
0 0
Отвечает нейросеть ChatGpt. Будьте внимательны, ответы нейросети могут содержать ошибочные или выдуманные данные.

Program to Calculate Grades for a Dictation

To write a program that calculates the number of grades received for a dictation, we can use a simple Python script. Here's an example program:

```python # Initialize counters for each grade twos = 0 threes = 0 fours = 0 fives = 0

# Get the number of students who took the dictation num_students = 20

# Loop through each student for i in range(num_students): # Prompt the user to enter the grade for each student grade = int(input(f"Enter the grade for student {i+1}: "))

# Increment the respective grade counter based on the grade entered if grade == 2: twos += 1 elif grade == 3: threes += 1 elif grade == 4: fours += 1 elif grade == 5: fives += 1

# Print the results print("Grade distribution:") print(f"Twos: {twos}") print(f"Threes: {threes}") print(f"Fours: {fours}") print(f"Fives: {fives}") ```

This program initializes counters for each grade (twos, threes, fours, and fives) and then prompts the user to enter the grade for each student. Based on the grade entered, the respective counter is incremented. Finally, the program prints the grade distribution.

Please note that this is a basic example, and you may need to modify it based on your specific requirements or the programming language you are using.

0 0

Топ вопросов за вчера в категории Информатика

Последние заданные вопросы в категории Информатика

Задать вопрос