help please ( c++programing ) # 4 http://assets.openstudy.com/updates/attachments/580d1930e4b06a18dc461792-marcelie-1477253437321-astroproject.pdf
this is what i did #include <iostream> using namespace std; int main () { cout << " *****" << endl; cout << " * *" << endl; cout << " * 0 0 * Astrology - the study of the movements and relative " << endl; cout << " * ! * positions of celestial bodies interpreted as having " << endl; cout << " * \\___/ * an influence on human affairs and the natural world." << endl; cout << " * *" << endl; cout << " ***** " << endl; return 0; } int month,date; cout<<" Enter your birth month:"; cin>>month; cout<<" Enter your birth date:"; cin>>date; if (( month == 12 && date >= 22) || ( month == 1 && date <=19)) { cout<<" Your zodiac sign is Capricorn\n"; } else if (( month == 1 && date >= 20) || ( month == 2 && date <= 18)) { cout<<" Your zodiac sign is Aquarius\n"; } else if (( month == 2 && date >= 19) || ( month == 3 && date <= 20)) { cout<<" Your zodiac sign is Pisces\n"; } else if (( month == 3 && date >= 21) || ( month == 4 && date <= 19)) { cout<<" Your zodiac sign is Aeries\n"; } else if (( month == 4 && date >= 20 ) || ( month == 5 && date <= 20 )) { cout<<" Your zodiac sign is Taurus \n"; } else if (( month == 6 && date >= 21 ) || ( month == 7 && date <= 22 )) { cout<<" Your zodiac sign is Cancer\n"; } else if (( month == 7 && date <= 23 ) || ( month == 8 && date <= 22)) { cout<<" Your zodiac sign is LEO\n"; } else if (( month == 8 && date >= 23 ) || ( month == 9 && date <= 22 )) { cout<<" Your zodiac sign is VIRGO\n"; } else if (( month == 9 && date >= 23 ) || ( month == 10 && date <= 22)) { cout<<" Your zodiac sign is LIBRA\n"; } else if (( month == 10 && date >= 23 ) || ( month == 11 && date <= 21)) { cout<<" Your zodiac sign is SCORPIO\n"; } else if (( month == 11 && date >= 22 ) || ( month == 12 && date <= 21)) { cout<<" Your zodiac sign is SAGUITTARIUS\n"; } else if (( month == 12 && date >= 22 && day <= 31) || ( month == 1 && date <= 19 ) <<endl; } return 0; }
Join our real-time social learning platform and learn together with your friends!