subject

All java code6.5.1: complete method with int parameter bagounces, and void return type. if bagounces is less than 3, print "too small". if greater than 10, print "too large". otherwise, compute and print 6 * bagounces followed by "seconds". end with a newline. example output for ounces = 7: 42 secondssample program: import java. util. scanner; public class popcorntimer {public static void printpopcorntime(int bagounces) {/* your solution goes here */}public static void main (string [] args) {printpopcorntime(7); return; }}6.6.1: add two more statements to main() to test inputs 3 and -1. use print statements similar to the existing one (don't use assert).sample program: import java. util. scanner; public class unittesting {// function returns orignum cubedpublic static int cubenum(int orignum) {return orignum * orignum * orignum; }public static void main (string [] args) {system. out. println("testing started"); system. out. println("2, expecting 8, got: " + cubenum(2)); /* your solution goes here */system. out. println("testing completed"); return; }}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
Melissa needs to add a topic to an email that she will send to her teacher. choose the name of the field where she should type her topic.
Answers: 2
question
Computers and Technology, 22.06.2019 16:00
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
question
Computers and Technology, 22.06.2019 17:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
You know the right answer?
All java code6.5.1: complete method with int parameter bagounces, and void return type. if bagounce...
Questions
question
Mathematics, 05.10.2019 04:30
Questions on the website: 13722363