'Write a program that declares an int named year and set it equal to the current year Then print it out If it were the year 2016, the output should say: The current year is 2016 Note: You must include the current year and the word "year" in your output'
Added by Greg R.
Step 1
Declare an int named year Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 60 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write pseudocode to represent the logic of a program that allows the user to enter values for the current year and the user's birth year. The program calculates the age of the user this year. The program outputs the age.
K S.
(Number of days in a year) Write a function that returns the number of days in a year using the following header: def numberofDaysInAYear(year): Write a test program that displays the number of days in the years from 2010 to 2020
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
100,000+
Students learning Computer Science with Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD