formulaSheet1-1.pdf
Blog
If you forgot to download the main.cpp starter file before y…
If you forgot to download the main.cpp starter file before you start the exam, you will need to open the starter main.cpp file and type it in by hand. You must use an IDE on your computer (Code::Blocks, VS, Xcode, etc.) You may not use an online IDE, such as Replit. Upload your .cpp final exam here. Do not upload a zip folder, only the .cpp file. NO INTERNET ALLOWED. Open the IDE on your computer and import main.cpp. You have 60 minutes to complete the exam. Upload your .cpp file to Canvas when you are done. Requirements: Complete the functions maxEven(), swap(), and printArray(). Do not add any additional code to main(). maxEven() – this function prompts the user for 5 integers and returns the maximum even integer that was entered. If no even integers were entered, the function will return -1 swap() – this function is passed an array and the number of elements. The function will loop through the array and if any pair of elements add to 5, the first and last elements in the array are swapped. In this problem a pair is two consecutive elements that are next to each other, for example, in the arrays: [1, 2, 3, 4, 2, 7], there is one pair of elements that add to 5, so after the function call, the array will contain [7, 2, 3, 4, 2, 1] [1, 2, 4, 3, 7], no pairs of elements add to 5, so the function does not swap the first and last elements printArray() – this function prints the contents of the array, please print each element on the same line, separated by a space. Print a newline Grading Rubric: Program compiles and output is produced. +1 Style guidelines followed, indentation, spacing, etc. (you do not need a program comment header, or use input validation) +1 maxEven() function: uses a loop to prompt for integers +1 correctly determines if an integer is even +1 returns the max even entered +1 returns -1 if no evens were entered +1 swap() function: correctly swaps first and last elements +1 loops through the entire array, no bounds errors +1 correctly determines if consecutive elements add to 5 +1 printArray() function: prints every element in the array +1
You may type your answers to the question or you may write t…
You may type your answers to the question or you may write them and upload them to the link posted on canvas when you finish. a. Define monetary policy. b. Define fiscal policy. c. Explain how they are different. d. Compare and contrast how policies changed over time in the United States from 2015 to 2022.
Which organelle sorts, modifies, and packages products from…
Which organelle sorts, modifies, and packages products from the endoplasmic reticulum into transport vesicles?
Where does the right atrium pump blood?
Where does the right atrium pump blood?
Which chamber pumps oxygenated blood into the aorta?
Which chamber pumps oxygenated blood into the aorta?
This tissue lines the trachea and contains cilia. It also pr…
This tissue lines the trachea and contains cilia. It also produces mucus.
Rest Question: Choose your favorite fact: 1. Arnold Schwarze…
Rest Question: Choose your favorite fact: 1. Arnold Schwarzenegger came to America with a dream of becoming a champion bodybuilder. When he arrived at LAX airport from his small Austrian village, he quickly found he had a lot to learn. Not knowing what a baggage claim was, he thought it if he didn’t get his bags immediately, they would go away forever. When he saw his luggage, he began pushing people out of the way and jumped onto the belt to retrieve them. 2. Have you ever wondered what happens to your coffee grounds after you’ve thrown them away? A company called Mountain Designs has an innovative solution: turn them into clothes! In addition to being water-proof and light-weight, the clothing is extremely durable. C. One of the unhealthiest entrees of all time belongs to Cheesecake Factory. Before revising the receipe in 2016, their Bistro Shrimp Pasta had 3120 calories and 89 grams of saturated fat. The new version has“only” 2360 calories and 64 grams of saturated fat.
What is the function of rough endoplasmic reticulum?
What is the function of rough endoplasmic reticulum?
Where does blood move to after it leaves the vena cava?
Where does blood move to after it leaves the vena cava?