Question: 1. Fill in the 1o blanks in the program below: The user enters a number. of days that is converted into years, weeks, and days.
1. Fill in the 1o blanks in the program below: The user enters a number. of days that is converted into years, weeks, and days. sample run: Enter the number of days: 1000 1000 days 2 years 38 weeks 6 days java util Scanner; public class DayConventen ( public static void int System.out.print( "Enter the number of days:); System.out print ( days +"days"); (Stringl] ares) f input = new Scanner(System.in); weeks, days input . next!nt(); - days/ 7; days % 7; years weeks / weeks weeks % 52; .out print(years +"years "); System.out .print( + " weeks"); System.oult.print ?n(days + " days")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
