Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#include #include using namespace std; void displayOriginalArt ( ) { / / Your original ASCII art goes here / / Make sure it's between 5

#include
#include
using namespace std;
void displayOriginalArt(){
// Your original ASCII art goes here
// Make sure it's between 5 and 80 lines
// and has a maximum width of 100 characters per line
}
void displayHotAirBalloon(int size){
// Your code to display the hot air balloon based on the given size goes here
}
int main(){
cout << "Program 1: Hot Air Balloons" << endl;
cout << "Which option would you like?" << endl;
cout <<"1. Display original graphic" << endl;
cout <<"2. Display Hot Air Balloon" << endl;
cout << "Your choice: ";
int choice;
cin >> choice;
if (choice ==1){
displayOriginalArt();
} else if (choice ==2){
int size;
cout << "What is the size of the hot air balloon? ";
cin >> size;
if (size >=2){
displayHotAirBalloon(size);
} else {
cout << "Size must be 2 or greater." << endl;
}
} else {
cout << "Invalid choice." << endl;
}
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions