SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

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

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 2 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 14 Nov 2017 My Price 10.00

DrJava to write a program that uses selection statements.

help! cant figure this one out help would be appreciated

CS 170 Proficiency Quiz 5-Sample Use DrJava to write a program that uses selection statements. This quiz is worth 50 points and you will have 30 minutes to complete the problem. You may not access any notes (other than the Java Quick Reference I’ve supplied), files, or communicate with anyone in any way (including checking your email or looking up files on the Q: drive.) When you have finished and submitted the quiz, check with me to make sure that I have received it. Selection Statements Write the function named max1020(). Here's the story behind the function. You are given 2 positive int values, a and b. Your function should return the larger value that is in the range 10..20 inclusive, or return 0 if neither is in that range. Here are some samples:  max1020(11, 19) returns 19  max1020(19, 11) returns 19  max1020(11, 9) returns 11 This quiz is graded 100% on correctness (no style). Use the Check button to test. Function Definition Syntax And if Statement Syntax //int function with one int parameters public static int tryIt(int n) // static is optional { int result = 0; //Function "output" variable // Processing (converting input into output) if (n > 2) // Simple if statement – n greater than 2 result = 2; // Add braces around body if more than one line else //optional else clause result = 1; // Add braces around else body if more than one line return result; // Return the result }

Attachments:

Answers

(5)
Status NEW Posted 14 Nov 2017 03:11 PM My Price 10.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)