Write a C program to solve problem 3. Use three functions for the subproblems shown in your structure chart.
What will be an ideal response?
```
#include
/* Prototypes */
void draw_top(void);
void draw_sides(void);
void draw_bottom(void);
int
main(void)
{
draw_top();
draw_sides();
draw_bottom();
return (0);
}
/*
* Draw the top edge of the rectangle.
*/
void
draw_top(void)
{
printf("*+++++++++++++++++*\n");
}
/*
* Draw sides of the rectangle.
*/
void
draw_sides(void)
{
printf("| |\n");
printf("| |\n");
}
/*
* Draw bottom edge of the rectangle.
*/
void
draw_bottom(void)
{
printf("*-----------------*\n");
}
]
```
You might also like to view...
Search engines consider links to your site from other websites to evaluate your site's content and popularity.
Answer the following statement true (T) or false (F)
A color ____ is a set of mathematical values that numerically represent color.
a. standard b. model c. default d. detail
If a disk pool becomes full, how does Windows Server 2012 respond?
A. More space is automatically provisioned from available drives in the primordial pool B. Affected volumes are marked as read-only until more space is provisioned C. The disk pool is moved to an offline state until more physical storage is added D. The server notifies all users with data in the disk pool in order to encourage data cleaning activities
You have noticed that your computer is running slower than normal and that the amount of storage space on the hard drive is decreasing, even though you have not been doing anything different on your computer. You believe a program is replicating by attaching itself to other programs. What type of malware is on your computer?
A. Trojan B. Ransomware C. Rootkit D. Virus