ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 12 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 23 May 2017 My Price 8.00

Write a loop that repeatedly prints "Be brave!

Hi,

Need answer ASAP!!!

Write a loop that repeatedly prints "Be brave!" until the user tells the program to stop.

import java.util.Scanner; 
// for user inputpublic class PrintMessage
{  
public static void main(String[] args)  
{    
Scanner stdIn = new Scanner(System.in); 
// set up user input    

// ADD CODE  
} // end main
} // end class 

PrintMessage

It should work like this (y, y, n - indicate user input). 

Be brave! Do you want to hear it again? y 
Be brave! Do you want to hear it again? y 
Be brave! Do you want to hear it again? n 

Indent your code properly. Comment your code if needed.

Answers

(11)
Status NEW Posted 23 May 2017 05:05 AM My Price 8.00

-----------

Not Rated(0)