Question: Exercise 1 (40% of assignment mark) Write a program that reads three characters from the keyboard and prints on the screen the approximate shape of

 Exercise 1 (40% of assignment mark) Write a program that reads

Exercise 1 (40% of assignment mark) Write a program that reads three characters from the keyboard and prints on the screen the approximate shape of a pyramid using those characters. For example if the characters are 'and'e', then the program should display the following: #@#% #@@@#3 Your program should include A function info that displays instructions to the user, reads the three characters from the keyboard and returns those values to the calling function A function pyramid that takes three parameters of type char and prints on the screen the approximate shape of a pyramid using the characters provided as the actual arguments The main function should call first the info function to instruct the user to input three characters and read those characters from the keyboard, and then should pass these values as parameters to the second function pyramid to print the pyramid shape on the screen

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!