Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Fill in the blank - here are your choices for the following question (not all of these answers will be used) = == ; >

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Fill in the blank - here are your choices for the following question (not all of these answers will be used) = == ; > # ## ! + += =+ ++ 1. Every complete statements ends in a 2. Preprocessor directives begin with a 3. The always requires a variable on the left hand side - operator returns false if the left operand is 4. For an "if" statement, the greater than the right operand. _to contain the body of the if statement when there are 5. We use the multiple statements. 6. The _operator increments our variable by 1. 7. The operator assigns to the left operand the result of adding the left and right operands together. 8. The and __symbols above are not legal C++ operators. 9. The operator compares two values for equality. Do some Calculations and place the answer in the blank - Assume your variables ALWAYS start with these values numl is 10 num2 is 15 num3 is 2 num4 is 5 10. numl +1; 11. ++numi; 12. num2++; 13. num3 +=num4; numlis numl is num2 is num3 is num4 is Fill in the blank - here are your choices for the following question (not all of these answers will be used) while block iteration const do while until infinite undefined loop invariant && II ++ is memory that cannot be changed once it is stored is a sequence of statements enclosed in curly brackets loop may never actually execute represents each time through a loop 18. The otherwise _becomes true when both operands are true, but is false 19. Write the truth table for the operator: Fill in the blank with your own ideas! 20. A variable is one defined inside a function's body tells the compiler that a function exists but may not have been defined yet. 22. If a function doesn't retum a value, type. appears as the returned 23. Using the function means that a copy of the argument is made when calling 24. Using _means that the function is sharing the calling routine's memory for the argument 25. Before you can call a function it must be (25 points) Anays in C++ 26. Create an array large enough to hold the phrase "Great Job!" 27. Now, show how to read this is from the user and store it into the array: 28. Write a loop to count the number of lowercase letters. Use a for loop. 29. Now, what if the above was to be a function? Write the prototype statement for it. 30. Rewrite the above loop using a while loop (25 points) Functions and Arguments 31. Give an example of a function prototype (named display) that passes an floating point number by value and returns nothing: Show how you could call this function (include all variable definitions) 32. Give an example of a function prototype (named input) that passes a floating point value by reference and returns nothing: Show how you could call this function: (include all variable definitions) 33. Give an example of a function prototype (named input) that has no arguments and returns a true or false value: Show how you could call this function: (include all variable definitions) 34. Design a function prototype for an input function that is supposed to read in an array of characters and allow the calling routine (eg., main) to have access to this array (without using globals) Show how you could call this function: (include all variable definitions)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Upgrade Migration And Transformation Tips And Techniques

Authors: Edward Whalen ,Jim Czuprynski

1st Edition

0071846050, 978-0071846059

More Books

Students also viewed these Databases questions