Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ 2.1 Question 11/20 points) Write a program that reads a lower-case letter in Letter, and prints a shape of an isosceles triangle. The first
c++
2.1 Question 11/20 points) Write a program that reads a lower-case letter in Letter, and prints a shape of an isosceles triangle. The first line of the triangle should have the letter a, the second line of the triangle should have the letter b, the third line of the triangle should have the letter c, the last line of the triangle should have the letter in Letter. In addition, the casing of the letters should alternate between lines. That is, in the first line, the 'a' should be lower case. In the second line, all 'b's should be upper case. In the third line, all the 'c's should be lower case, etc. Your program should interact with the user exactly as it shows in the following two executions: Execution example 1: Please enter a lower-case letter: e a BBB ccccc DDDDDDD eeeeeeeee Execution example 2: Please enter a lower-case letter: d a BBB CCCCC DDDDDDD Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started