Makerlab Juniors - A Chocolate Factory

View as PDF

Submit solution

Points: 5
Time limit: 1.0s
Memory limit: 16M

Author:
Problem types
Allowed languages
Blockly, C, C++, Java, Pascal, Python
A Chocolate Factory

A chocolate factory produces chocolates. If production exceeds 50 chocolates per day, the workers will receive a bonus. If it is 50 or fewer, they will not receive a bonus.

Write an algorithm that:

  • Asks the user for the number of chocolates produced today.
  • Checks if the number is greater than 50.
  • If yes, displays the message: Well done! The workers get a bonus!.
  • Otherwise, displays the message: Try harder tomorrow!.
Examples

Input

60

Output

`Well done! The workers get a bonus!`

Input

40

Output

`Try harder tomorrow!`

Comments


  • 0
    polyzos_epameinondas  commented on Dec. 7, 2024, 8:52 a.m.

    \[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\] \[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\displaystyle 
\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\displaystyle 
\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\[None\]\displaystyle 
\displaystyle


  • 0
    gravanis_odysseas  commented on Nov. 30, 2024, 10:27 a.m.

    yes. this is big brain time.


  • -1
    nikolopoulos_aggelos  commented on Nov. 23, 2024, 7:57 a.m.

    ez