Activecode Exercises

Answer the following Activecode questions to assess what you have learned in this chapter.

You are part of a class where everyone passes, but it’s very hard to pass with an A. Fix the function so it prints your letter grade according to this scheme. [0, 50) = C, [50, 85) = B, and [85, 100] = A. Select the Parsonsprob tab for hints for the construction of the code.

You are part of a class where everyone passes, but it’s very hard to pass with an A. Fix the function so it prints your letter grade according to this scheme. [0, 50) = C, [50, 85) = B, and [85, 100] = A. Use the lines to construct the code, then go back to complete the Activecode tab.

Finish the code below so that it prints true if x is even and false if x is odd. Select the Parsonsprob tab for hints for the construction of the code.

Finish the code below so that it prints true if x is even and false if x is odd. Use the lines to construct the code, then go back to complete the Activecode tab.

Write the function greaterThan that prints true if the first double argument is greater than the second double argument. Be sure to include any necessary headers. Select the Parsonsprob tab for hints for the construction of the code.

Write the function greaterThan that prints true if the first double argument is greater than the second double argument. Be sure to include any necessary headers. Use the lines to construct the code, then go back to complete the Activecode tab.

Write the function exclusiveOr that prints true If either a OR b is true, and prints false otherwise. Be sure to include any necessary headers. Select the Parsonsprob tab for hints for the construction of the code.

Write the function exclusiveOr that prints true If either a OR b is true, and prints false otherwise. Be sure to include any necessary headers. Use the lines to construct the code, then go back to complete the Activecode tab.

Write the function printNegativeNum that asks the user for a negative number. If the user does not provide a negative number, it should contine asking until the user provides one. It should then print the negative number. Select the Parsonsprob tab for hints for the construction of the code.

Write the function printNegativeNum that asks the user for a negative number. If the user does not provide a negative number, it should contine asking until the user provides one. It should then print the negative number. Use the lines to construct the code, then go back to complete the Activecode tab.

You have attempted of activities on this page