Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

import java.util. ? * * ; public class W 2 WLA 2 { public static void main ( String [ ] args ) { Scanner

import java.util. ?**;
public class W2WLA2{
public static void main(String[] args){
Scanner scnr = new Scanner(
System.in);
int assignments = scnr.nextInt (); // Assume that the input is 2
String day = scnr.next(); // Assume that the input is "Monday"
String time =scnr* next () ; // Assume that the input is "11:59"
String name = scnr.next(); // Assume that the input is "Joe Biden"
assignments = assignments *2 ;
System.out.print("The number of assingments due "+ day +" at "+ time);
System. out.println(" are "+ assignments +"
");
System. out.print ("Program traced by: ");
System. out.println(name);
}
}
image text in transcribed

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

Step: 3

blur-text-image

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

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions

Question

60 Workplace safety risks.

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago