Author: Matthew Maennche

Write a program that lets the user enter the total rainfall for each of 12 months into an array of doubles.

Write a program that lets the user enter the total rainfall for each of 12 months into an array of doubles.

LANGUAGE: C++ CHALLENGE: Write a program that lets the user enter the total rainfall for each of 12 months into an array of doubles. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Assume that an array named salarySteps whose elements are of type int and that has exactly five elements has already been declared.

Assume that an array named salarySteps whose elements are of type int and that has exactly five elements has already been declared.

LANGUAGE: Java CHALLENGE: Assume that an array named salarySteps whose elements are of type int and that has exactly five elements has already been declared. Write a single statement to assign the value 30000 to the first element of this array....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Given Suppose the values of the array a BEFORE your code executed were: 15,7,22,4.

Given Suppose the values of the array a BEFORE your code executed were: 15,7,22,4.

LANGUAGE: Java CHALLENGE: Given Suppose the values of the array a BEFORE your code executed were: 15,7,22,4. Then, AFTER your code executed, the values of the array a would be: 3,7,22,4. Note that the value of the first element was changed to 3. that an array named a with elements of typeint has been declared,...

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write a method, getSecondLine, that is passed a String argument and that returns the second line, without its newline character.

Write a method, getSecondLine, that is passed a String argument and that returns the second line, without its newline character.

LANGUAGE: Java CHALLENGE: Write a method, getSecondLine, that is passed a String argument and that returns the second line, without its newline character. (Recall that lines are terminated with the “\n” character .) Assume that the argument contains at least two complete, newline-terminated lines.

Read More

Write a method, getFirstLine, that is passed a String argument and that returns the first line.

Write a method, getFirstLine, that is passed a String argument and that returns the first line.

LANGUAGE: Java CHALLENGE: Write a method, getFirstLine, that is passed a String argument and that returns the first line. (Recall that lines are terminated with the “\n” character.) Assume that the argument contains at least one complete, newline-terminated line....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

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, makeEmailAddress, that is passed two String arguments: the first is a username, like “leadbelly” and the second is a domain name, like “blues.com”.

LANGUAGE: Java CHALLENGE: 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”. The method returns an email address formed from joining these with an “@”: “leadbelly@blues.com”....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write a method, getEmailDomain, that is passed a String argument that is an email address and returns the domain name part. So if “mozart@salzberg.de” is passed, the method returns “salzberg.de”.

Write a method, getEmailDomain, that is passed a String argument that is an email address and returns the domain name part.  So if “mozart@salzberg.de” is passed, the method returns “salzberg.de”.

LANGUAGE: Java CHALLENGE: Write a method, getEmailDomain, that is passed a String argument that is an email address and returns the domain name part. So if “mozart@salzberg.de” is passed, the method returns “salzberg.de”. Assume that the argument will always be a correctly formatted email address....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write a method, getEmailUserName, that is passed a String argument that is an email address and returns the user-name part.

Write a method, getEmailUserName, that is passed a String argument that is an email address and returns the user-name part.

LANGUAGE: Java CHALLENGE: Write a method, getEmailUserName, that is passed a String argument that is an email address and returns the user-name part. So if “mozart@salzberg.de” is passed, the method returns “mozart”. Assume that the argument will always be a correctly formatted email address....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

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 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?”.

LANGUAGE: Java CHALLENGE: 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?”....

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write the definition of a function minMax that has five parameters.

Write the definition of a function minMax that has five parameters.

LANGUAGE: C++ CHALLENGE: Write the definition of a function minMax that has five parameters. The first three parameters are integers. The last two are set by the function to the largest and smallest of the values of the first three parameters. The function does not return a value. The function can be used as follows:...

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

Write a statement that declares a prototype for a function divide that takes four arguments and returns no value.

Write a statement that declares a prototype for a function divide that takes four arguments and returns no value.

LANGUAGE: C++ CHALLENGE: Write a statement that declares a prototype for a function divide that takes four arguments and returns no value. The first two arguments are of type int. The last two arguments arguments are pointers to int that are set by the function to the quotient and remainder of dividing the first argument...

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More

The speed of sound depends on the material the sound is passing through.

The speed of sound depends on the material the sound is passing through.

LANGUAGE:  C++ CHALLENGE: 4.18:The Speed of Sound The speed of sound depends on the material the sound is passing through. Below is the approximate speed of sound (in feet per second) for air, water and steel: air: 1,100 feet per second water: 4,900 feet per second steel: 16,400 feet per second Write a program that...

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More