Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is ConvertTime.java /* Programmer: Date: Project: Lab 1.6 ConvertTime File Name: ConvertTime.java Program Description: Converts total years into milleniums, centuries, scores, decades, and remaining

image text in transcribed
This is ConvertTime.java
/* Programmer:
Date:
Project: Lab 1.6 ConvertTime
File Name: ConvertTime.java
Program Description: Converts total years into milleniums, centuries, scores, decades, and remaining years
*/
import java.util.*;
public class ConvertTime
{
public static void main(String[] args)
{
//declare your variables here including this scanner declaration
Scanner keyboard = new Scanner(System.in);
//start your code here.
}
}
Finish 1. Prompt the user to input a measure in total years. 2. Convert the total years into millenniums, centuries, scores, decades, and remaining years. 3. Print the values to the screen. For example, if a user inputs 2574 year, the program should output 2 millenniums, 5 centuries, 3 score, 1 the program ConvertTime java to meet the following conditions. decade, and 4 years. If the user inputs 48 years, the program should output 0 millenniums, O centuries, 2 score, O decades, and 8 years

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions