Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Urgent Help needed with a Looping and selection structures code help - PART 2 I posted the first part of this question earlier, and now

Urgent Help needed with a Looping and selection structures code help - PART 2 I posted the first part of this question earlier, and now I'm making a second post for the second part

image text in transcribed

Method display Triangle(numRows: int): Points - 10 This method is to display a triangle in the console that consists of star character (*). It should display them in the following pattern based upon the parameter passed for numRows, which represents how many rows of stars are to be printed. (Example shows numRows being passed the value 5) Method: displayCheckerBoard(size: int): Points - 15 This method is to display and checkerboard type pattern of x's and o's. The pattern should have the number or rows and columns be determined by the parameter size. The pattern needs alternating x's and o's across the rows and down the columns (Example shows 5 passed to the size parameter) oxoxo oxoxo Method: findGrade(points: float): Points - 10 This method should determine the grade of the passed point value. Grades should be rounded appropriately (ie 89.5 is an A, 79.5 is a B and so on). This should print the letter grade based upon the passed parameter Method: findGrades(): Points - 10 This method should print the letter grades of an undetermined number of scores. This method should call method findGrade(points: float) appropriately and should continue to ask for grades until a flag is entered to stop the loop. The user should be aware of the flag Method findDigitSum(value: int) : Points - 15 This method should sum all the individual digits of the value passed by parameter. It should then display the sum (ie if 243 is passed to the parameter it should display 9 as the sum, b/c 2 + 4 + 3 = 9) Method: isPalindrome(word: str): Points - 15 This method should display if the word passed by parameter is a palindrome. A palindrome is a word or phrase that is spelled the same forwards and backwards (ie racecar is a palindrome... spelled the same from left to right and right to left)

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

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

Students also viewed these Databases questions

Question

How are investments related to changes in OCI?

Answered: 1 week ago