From 9f8edb5dd2e6e44bfa1d2a41c3381c8abc531a1d Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 22 Jun 2021 03:52:33 +0100 Subject: [PATCH] Typos correction and grammar improvements --- subjects/doop/README.md | 2 +- subjects/expandstr/README.md | 2 +- subjects/fprime/README.md | 2 +- subjects/hiddenp/README.md | 2 +- subjects/printbits/README.md | 2 +- subjects/printhex/README.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/subjects/doop/README.md b/subjects/doop/README.md index b6967dfc..c2dd2e91 100644 --- a/subjects/doop/README.md +++ b/subjects/doop/README.md @@ -10,7 +10,7 @@ The program has to be used with three arguments: - An operator, one of : `+`, `-`, `/`, `*`, `%` - Another value -In case of an invalid operator, value, number of arguments or an overflow the programs prints nothing. +In case of an invalid operator, value, number of arguments or an overflow, the programs prints nothing. The program has to handle the modulo and division operations by 0 as shown on the output examples below. diff --git a/subjects/expandstr/README.md b/subjects/expandstr/README.md index daf8aee9..dd8d174d 100644 --- a/subjects/expandstr/README.md +++ b/subjects/expandstr/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a program that takes a `string` and displays it with exactly three spaces between each word, with no spaces or tabs at either the beginning nor the end. +Write a program that takes a `string` and displays it with exactly three spaces between each word, with no spaces nor tabs at neither the beginning nor the end. The `string` will be followed by a newline (`'\n'`). diff --git a/subjects/fprime/README.md b/subjects/fprime/README.md index f6054971..64d0c13e 100644 --- a/subjects/fprime/README.md +++ b/subjects/fprime/README.md @@ -6,7 +6,7 @@ Write a program that takes a positive `int` and displays its prime factors, foll - Factors must be displayed in ascending order and separated by `*`. -- If the number of arguments is different from 1, if the argument is invalid or if the integer doesn't have a prime factor, the program displays nothing. +- If the number of arguments is different from 1, if the argument is invalid, or if the integer does not have a prime factor, the program displays nothing. ### Usage diff --git a/subjects/hiddenp/README.md b/subjects/hiddenp/README.md index e3e226b3..48916545 100644 --- a/subjects/hiddenp/README.md +++ b/subjects/hiddenp/README.md @@ -6,7 +6,7 @@ Write a program named `hiddenp` that takes two `string` and that, if the first ` Let s1 and s2 be `string`. It is considered that s1 is hidden in s2 if it is possible to find each character from s1 in s2, **in the same order as they appear in s1.** -If s1 is an empty `string` it is considered hidden in any `string`. +If s1 is an empty `string`, it is considered hidden in any `string`. If the number of arguments is different from 2, the program displays nothing. diff --git a/subjects/printbits/README.md b/subjects/printbits/README.md index 15bf2dc6..99b6357a 100644 --- a/subjects/printbits/README.md +++ b/subjects/printbits/README.md @@ -4,7 +4,7 @@ Write a program that takes a number as argument, and prints it in binary value **without a newline at the end**. -- If the the argument is not a number the program should print `00000000`. +- If the the argument is not a number, the program should print `00000000`. ### Usage : diff --git a/subjects/printhex/README.md b/subjects/printhex/README.md index 5791e20b..a3951bc0 100644 --- a/subjects/printhex/README.md +++ b/subjects/printhex/README.md @@ -2,7 +2,7 @@ ### Instructions -Write a program that takes a positive (or zero) number expressed in base 10, and displays it in base 16 (with lowercase letters) followed by a newline (`'\n'`). +Write a program that takes a positive (or zero) number expressed in base 10, and that displays it in base 16 (with lowercase letters) followed by a newline (`'\n'`). - If the number of arguments is different from 1, the program displays nothing. - Error cases have to be handled as shown in the example below.