Question: USE C PROGRAMMING LANGUAGE Part 2 Loops that print output In this part of the assignment you are going to write a set of functions
USE C PROGRAMMING LANGUAGE
Part 2 Loops that print output
In this part of the assignment you are going to write a set of functions that will be used to output an ascii image of a Rocket.
A cropped screenshot of a sample output is shown here on the right: The draw_rocket function that you will design will take two arguments: 1) an integer for the size of the rocket (in this example the size is 2)
2) an integer for the number of boosters the rocket will have (in this example there are 2 boosters)
To encourage good software development practices we are requiring you to write and call a specified set of helper functions in your implementation. You are free to include additional functions, but to receive full marks your implementation must include the required set described on the following page. The prototypes for each of these function have been added to assignment4.c. Tip: You can write the helper functions in any order. Start with one of the simpler ones first such as the instrument_unit function.
Your functions must adhere to the following specifications including function names and order of arguments. These functions must print the portion of the image in the figure above where the function name corresponds to the label name in the figure. For example, the draw_booster function must print all parts of the shape labeled Booster and enclosed in the red square in the figure above. A zero grade will be given for any function that does not follow the following specification:
1. draw_tail must take as an argument one integer representing the size of the rocket it is being drawn for.
2. draw_booster must take as an argument one integer representing the size of the rocket it is being drawn for and print only ONE booster.
3.draw_instrument_unit must take as an argument one integer representing the size of the rocket it is being drawn for
4. draw_lem_adapter must take as an argument one integer representing the size of the rocket it is being drawn for
5. draw_space_craft must take as an argument one integer representing the size of the rocket it is being drawn for .
6. draw_rocket must take as arguments an integer representing the size of the rocket and an integer representing the number of boosters to be printed. Your implementation of this function must make use of the other helper functions you have written to draw the rocket.
We are asking you to decompose your program according to the following diagram, where you will implement at least one function for each of the diagrammed parts in the image below. This image was created with by calling draw_rocket with a size: 2 and number of boosters: 1

TEMPLATE
void draw_tail(int size); void draw_booster(int size); void draw_instrument_unit(int size); void draw_lem_adapter(int size); void draw_space_craft(int size); void draw_rocket(int size, int n);
THANK YOU
** /**\ //**\ ///**\!! +=*=*=*=*+- // & & & &\\ |// & & & & &\\ | +=*=*=*=*=*=*+ |||~#####|| ||~#23~#3~#3~#3~#23|| | +=*=*=*=*=*=*+ ||...... .. ... || ||/ ||. \\ /.. . |.. /.... /..| | +=*=*=*=*=*=*+ ||........ ... ||! ||/ ||. \\ /.. . || .. /.... /..| | +=*=*=*=*=*=*+ |/ \/ \/ \\ Space Craft /** //** ///** +=*=*=*=*+ 17 &&&& 11 &&&&& +=*=*=*=*=*=*+ 1-#-#-#-#-# Lem Adapter Instrument Unit || ||#-#-#-#-#- +*=*=*=*=*=*=+ Booster |../..../.. 1./ ../11.1 IN WWWWWVI 1.1 . 1 . |..V....V.. +=*=*=*=*=*=*+ 1 A A Tail ** /**\ //**\ ///**\!! +=*=*=*=*+- // & & & &\\ |// & & & & &\\ | +=*=*=*=*=*=*+ |||~#####|| ||~#23~#3~#3~#3~#23|| | +=*=*=*=*=*=*+ ||...... .. ... || ||/ ||. \\ /.. . |.. /.... /..| | +=*=*=*=*=*=*+ ||........ ... ||! ||/ ||. \\ /.. . || .. /.... /..| | +=*=*=*=*=*=*+ |/ \/ \/ \\ Space Craft /** //** ///** +=*=*=*=*+ 17 &&&& 11 &&&&& +=*=*=*=*=*=*+ 1-#-#-#-#-# Lem Adapter Instrument Unit || ||#-#-#-#-#- +*=*=*=*=*=*=+ Booster |../..../.. 1./ ../11.1 IN WWWWWVI 1.1 . 1 . |..V....V.. +=*=*=*=*=*=*+ 1 A A Tail
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
