Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do coding C++ please olete the following exercises from the book. Complete this in CodingRooms or zip your files and pseudocode into a folder

Please do coding C++ pleaseimage text in transcribed

olete the following exercises from the book. Complete this in CodingRooms or zip your files and pseudocode into a folder and submit here. Exercise 10.15.1 pg. 292-293 The following programming exercises are to be developed using all phases of the development method. Be sure to make use of good programming practices and style suck and constants, whitespace, indentation, naming conventions, and commenting. Make sure all input prompts clear and descriptive and that your output is well formatted and looks professional. 1. Write a program that includes the following three functions: a. isPalindrome - This function returns true if the cStringparameter is a palindrome, false if not. As you have seen, a palindrome is any group of characters (i.e., a word) which appears the same written both forward and backward. b. isAlphaStr - A function that returns true if the cString you pass it contains all alphabetic characters. If the parameter does not contain all alpha characters, return false. Feel free to use the isalpha function we discussed earlier. c. countChar - A function to simply count and return the number of times a specific character occurs in a cString. This function will take two parameters, the cString to check and the specific character you are looking for. Within your program make sure you clearly exercise all three of the above functions. Exercise 10.15.5 pg. 295296 Write a program that creates and displays Pascal's Triangle. Pascal's Triangle is used in the manipulation of polynomials. A basic Pascal's triangle is shown below. As you can see the outside edges are always 1 . Ine inside numbers are computed by adding the two numbers from the above row. For example, the two numbers shown in red are added together to get the resulting numbers shown in blue. Pascal's Triangle is used in calculating the coefficients of the x terms in a polynomial. For example, if we have the following mathematical expression: (x+1)3, the resulting polynomial would be: x3+3x2+3x+1. Notice the coefficients of the x terms are 1,3,3,1, which are also the same values in the fourth row of Pascal's Triangle. Create a program that asks for the maximum value from the user. Then calculate and display the resulting triangle. For example, the above triangle was created for the user input of the fourth power

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

Logidata+ Deductive Databases With Complex Objects Lncs 701

Authors: Paolo Atzeni

1st Edition

354056974X, 978-3540569749

More Books

Students also viewed these Databases questions

Question

How is safety stock included in a material requirements plan?

Answered: 1 week ago