Skip to content
Get 50% Off with Promo Code: BlackFriday21
Check it Out
Marketing – vCMO
About Matthew Maennche
C++ Solutions Map
Java Solutions Map
Visual Basic Solutions Map
Learn To Code
Microsoft Dynamics CRM
Assume that an array named salarySteps whose elements are of type int and that has exactly five elements has already been declared.
Given Suppose the values of the array a BEFORE your code executed were: 15,7,22,4.
Write a method, getSecondLine, that is passed a String argument and that returns the second line, without its newline character.
Write a method, getFirstLine, that is passed a String argument and that returns the first line.
Write a method, makeEmailAddress, that is passed two String arguments: the first is a username, like “leadbelly” and the second is a domain name, like “blues.com”.
Write a method, getEmailDomain, that is passed a String argument that is an email address and returns the domain name part. So if “
” is passed, the method returns “salzberg.de”.
Write a method, getEmailUserName, that is passed a String argument that is an email address and returns the user-name part.
Write a method, makeSubjectLine, that gets a String argument and returns the same String but with “Subject: ” in front of it. So if the argument is “Are you going to the show?” the method returns “Subject: Are you going to the show?”.
Write the definition of a function minMax that has five parameters.
Write a statement that declares a prototype for a function divide that takes four arguments and returns no value.
The speed of sound depends on the material the sound is passing through.
Write the definition of a class Counter containing: An instance variable named counter of type int An instance variable named limit of type int. A constructor that takes two int arguments and assigns the first one to counter and the second one to limit