Program to display asterisks in the shape of a plus sign, C/C++ Programming

Write a program called plus that will display asterisks in the shape of a plus sign which has the height and width specified by the user. You must only allow entry of an odd number for the height. (Reuse the Java code you created for task 1.) When an odd number (n) has been entered, display a plus sign that is n asterisks tall and n asterisks wide.

Hints:

1.    Use multiple loops to create the plus shape, including nested loops

2.    Reuse the odd/even code you created in task 1

Enter Size: 10

SIZE MUST BE ODD

Enter Size: 12

SIZE MUST BE ODD

Enter Size: 15

Posted Date: 3/19/2013 5:23:40 AM | Location : United States







Related Discussions:- Program to display asterisks in the shape of a plus sign, Assignment Help, Ask Question on Program to display asterisks in the shape of a plus sign, Get Answer, Expert's Help, Program to display asterisks in the shape of a plus sign Discussions

Write discussion on Program to display asterisks in the shape of a plus sign
Your posts are moderated
Related Questions
How must runtime errors be handled in C++ - Runtime errors in C++ can be handled using exceptions. - This exception handling mechanism in C++ is developed to handle errors i


A: Mostly can be overloaded. The only C operators which can't be are. and?: (and sizeof, that is technically an operator). C++ adds a few of its own operators, mostly which can be

How do I create two functions: one to put a collection of criteria into normal form, and one to compute the score of a document. A collection of criteria will be represented using

#Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.   #include float start_poi


Define the Volatile Keyword Qualifiers in C Language? The volatile keyword proceed as a data type qualifier and a volatile variable is for dynamic use. E.G. for data that is to

Differentiate between a template class and class template in C++? Ans) Template class: A generic definition or a parameterized class not instantiated until the client gives the

Pointer Arithmetic We can manipulate the pointers too. We can perform operations such as addition, subtraction, increment and decrement etc.,. As the pointer variables have add

What is the real function of class - to export data? No, Real purpose of a class isn't to export data. Instead, it's to provide services. Class provides a way to abstract behav