Interactive online courses HTML Academy
2026-03-09 14:09 Diff

We’ve got it all now! You are now ready to fully solve Muffin’s third task. And not just solve it, but make the program more user-friendly and intuitive. Let us remind you about the task:

Third task: “Write a program for calculating the caloric value of my breakfast. I have milk for breakfast. I want to enter the amount of milk I drank and see its caloric value.”

Let’s break the solution down into several steps:

  1. collect breakfast data from Muffin,
  2. save this data to a variable for further processing,
  3. show a message that the data has been received, so that Muffin is no longer worried,
  4. process data using mathematical operations where we use our first variable,
  5. save the result of our calculations to a second variable,
  6. and show a message with the result of our program’s work.

Let’s first deal with the first three steps and cover the other three in the next task.

Working together: we come up with variable names, texts, and formulas, you write the code.