Ditutup

Integer Counter

Need to modify the following code to prompt user to enter two integers. each between 1 and 100 and then print the integers between the two chosen integers to the display (println) import [url removed, login to view]; class HW4 { public static void main(String args[]) { String num; num=inputMethod(); outputMethod(num); [url removed, login to view](0); } public static String inputMethod() { String response; response = [url removed, login to view]( "Enter an integer greater that 1 and less than 100" ); if(response == null) { [url removed, login to view]( null, "You clicked the Cancel button" ); [url removed, login to view](0); } if([url removed, login to view]("")) { [url removed, login to view]( null, "You must make an entry" ); [url removed, login to view](0); } if(([url removed, login to view](response) <=1) | ([url removed, login to view](response) >=100)) { [url removed, login to view]( null, "Invalid entry, please try again."); [url removed, login to view](0); } return response; } public static void outputMethod(String number) { for(int counter = 1; counter <= [url removed, login to view](number); counter ++) [url removed, login to view](counter); } } Code is needed asap Helppppppppppppppppppppppp!!!.... Mike

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

## Platform

Windows

## Deadline information

NEED ASAP

Kemahiran: Kejuruteraan, Java, MySQL, PHP, Kejuruteraan Perisian, Ujian Perisian

Lihat lagi: string source code java, print println java, n equals, integers form 1, counter, counter php, display counter php, string integer, modify java class, counter code, java swing form, counter display, prompt exit, integers, php counter form, modify java source, equals php, php counter button, php button counter, exit java

Tentang Majikan:
( 0 ulasan ) United States

ID Projek: #2873437