Answered step by step
Verified Expert Solution
Question
1 Approved Answer
hi I am having trouble with this program im writing in c++ 7:14 4 50% CISC 3142 Homework Assignment - 1 (5-pt total) 1.1 Hello
hi I am having trouble with this program im writing in c++
7:14 4 50% CISC 3142 Homework Assignment - 1 (5-pt total) 1.1 Hello from you (2-pt) Write a C++ program to print the following banner to the console: 1 1 Hello from your name) Have programmed in: List languages you know) 1 Specific requirements: You must print those "--" characters that make up the boundary of the banner There is a space between the left edge and the first character of each string You could output more than 3 lines of text in total, but see below You must make the banner wide enough to accommodate the longest string, but not too wide for it to have more than one trailing space Important: you must achieve the above in an automatic way, That is, you don't manually assign fixed number of - or spaces, or a literal string, to have a fitting boundary In other word, your program would always generate a fitting boundary with any reasonably sized string for the third line. Hint: you may use the string class (from
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