The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Method Specifications:
1. Write a function named initial which takes no parameters and does not return any values. This function should use the System.out.println function to print the first character of your first name. The initial should be at least 12 lines high.
makeChange(745)
745 dollars is 1 ($500), 2 ($100), 0 ($50), 2 ($20), 0 ($10), 1 ($5), 0 ($1)
magicKittenSeeds(5)
You can get between 15 and 35 kittens with 5 seeds.
magicKittenSeeds(8)
You can get between 24 and 57 kittens with 5 seeds.
futureValue(100, 5)
The value of the account after 4 months is $121.55
futureValue(342.10, 8)
The value of the account after 4 months is $465.42
CS 170Due: Tuesday, May 31st at start of classHW 2Summer 2016Overview:In this homework you will write several methods. Each method below should operate as specifed. In par-ticular, pay attention to the number and type oF input parameters, the return value type, and the nameoF the Function. Not Following these specifcations will cause you to lose points. ±or each Function, I haveprovided several examples oF possible input(s) and expected output. However, these Few examples are notnecessarily sufcient to ascertain that your Function is entirely correct. You should test your methods asmuch as needed by placing calls to in in yourmainmethod.Getting started:1. Log in to a lab machine, and open a terminal.2. At the prompt in the terminal, move into your cs170 directory, and create a new directory For thishomework.cd cs170mkdir hw23. open gedit by typinggedit &4. Name your classHomework2:public class Homework2 {}5. Add yourmainmethod:public static void main(String[] args) {}6. Save your fle and then compile and run it to make sure you have everything working:javac Homework2.java java Homework27. One by one, add the Functions below. It is highly recommended that you work on one Function at atime. Write, compile, and test Frequently. Do NOT try to write all 6 Functions at once.
Attachments: