[solved]-Use Function Parameters Please Chapter Sorry Ignore Previous One Plz One Use Function Para Q39073118

Use Function & Parameters please. Thischapter.

Sorry, ignore previous one. plz do this one. use function andparameters(Chapter)

Assignment Write a program that prints the shape shown below. You may use output statements that print either a single asterisk (*) or a single blank. Maximize your use of repetition (with nested for or while structures) and minimize the number of output statements. Output ****** ********* ********** * ******* ** ******* * ****** * ******* *********** *** ******* Note: The output should look exactly as shown the example above IMPORTANT: You cannot use an individual loop for each row of asterisks. 6. Functions and Parameters Assignment Use the asterisk diamond program and create a function diamond (……..) that takes two values, an integer for the side of the diamond and a char value for the character printed and outputs the corresponding diamond shape. The function has default values, 5 for the side and * for the character. The user can choose to use the default values or specify new values. Output Sample 1 Do you want to use the default values? (Y/N): Y *** Output Sample 2 Do you want to use the default values? (Y/N): n Enter an integer for the side of the diamond: 3 Enter a char value for the character printed: @ @@@ @@@@@ @@@ Note: The output should have the same format as shown the examples above. Show transcribed image text Assignment Write a program that prints the shape shown below. You may use output statements that print either a single asterisk (*) or a single blank. Maximize your use of repetition (with nested for or while structures) and minimize the number of output statements. Output ****** ********* ********** * ******* ** ******* * ****** * ******* *********** *** ******* Note: The output should look exactly as shown the example above IMPORTANT: You cannot use an individual loop for each row of asterisks.
6. Functions and Parameters
Assignment Use the asterisk diamond program and create a function diamond (……..) that takes two values, an integer for the side of the diamond and a char value for the character printed and outputs the corresponding diamond shape. The function has default values, 5 for the side and * for the character. The user can choose to use the default values or specify new values. Output Sample 1 Do you want to use the default values? (Y/N): Y *** Output Sample 2 Do you want to use the default values? (Y/N): n Enter an integer for the side of the diamond: 3 Enter a char value for the character printed: @ @@@ @@@@@ @@@ Note: The output should have the same format as shown the examples above.
Expert Answer
Answer to Use Function & Parameters please. This chapter. Sorry, ignore previous one. plz do this one. use function and parameters… . . .
Related