Introduction To Programming
10-152-310

Learning Plan 3 : Math and Operators

Student

  • Name:
  • Section:
  • Email:

Steps

  • Open this file in your browser and Microsoft Visual Studio
  • Add your name, section, and email
  • Read the following problem statement and complete all 5 steps in the development process.

Problem Statement

Write a program that asks a user for their age in years. Then the program displays the entered years and asks the user how many months old they are past these years. The program then calculates the user's age in days and displays it on the page. The program will perform all calculations using variables, no hard-coded numbers within calculations should be used. The general formula that should be followed is days in a year (365) times the entered years plus the average days in a month (30.4) times the entered months.

The Program Planning Lists

In the following pre tag, write the three planning lists based on the verbs and nouns you see in the problem statement.

        The List of Input Variables:
        
        The List of Output Variables:
        
        The Process Checklist:
        

JavaScript Output

Write the JavaScript code based on everything you've done. Your code must follow the course coding standards. You should add good comments about the different parts of your solution.

Sample Output:

        You are 34 years and 5 months old.
        That's 12562 days! Wow!

3.3 Project - Part 3 Output: