Question: please use C++, please do all steps please PROGRAM DESCRIPTION: The purpose of this programming project is to write a C++ program that uses programmer-defined

please use C++, please do all steps pleaseplease use C++, please do all steps please PROGRAM DESCRIPTION: The purposeof this programming project is to write a C++ program that usesprogrammer-defined functions to validate user input, calculate some results, and then printout a diamond patterned shape to the screen based on input from

PROGRAM DESCRIPTION: The purpose of this programming project is to write a C++ program that uses programmer-defined functions to validate user input, calculate some results, and then print out a diamond patterned shape to the screen based on input from the user REQUIREMENTS As with all homework programs in this course, your program's output will initially display the department and course number, your name, your EUID, and your e mail addres You will first prompt the user to enter an odd integer between 1 and 19, inclusively. You will validate the user's input by creating a programmer-defined function to ensure that the integer is an odd integer in the range 1 to 19 inclusively. The integer entered by the user should be passed as a parameter to this function. If the number is not valid, you will display a meaningful error message before re-prompting the user to enter the integer again. The return type of this function should be a boolean data type and you are to use this boolean result in determining whether or not the user input is valid. You may assume that the user enters an integer, though it may be out of range Once validated, you will calculate and return the sum of the integers from 1 to the integer entered by the user using another programmer-defined function. Again the integer entered by the user should be passed as a parameter to this function The return type of this function should be an integer data type and you are to use this integer result and print it to the screen in a meaningful message. You will then prompt the user for and read in a printable character that will be used to draw the diamond. You may assume that the user enters a printable character Finally, you will draw the diamond using a programmer-defined function that accepts both the integer and the printable character entered by the user as parameters. The integer entered by the user will specify the number of rows in the diamond. You may only use statements that print a single character cout (i.e., that passed in by the user), a single space, or a single new-line character (such as In' or endl). Maximize your use of repetition with nested for loops and minimize the number of statements. This function should be a void cout function that does not return a value. It should print a diamond of the appropriate size using the printable character entered by the user. See the sample program run for an example of what should be output Your code should be well documented in terms of comments. For example, good comments in general consist of a header (with your name, course section, date

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!