C++ Assignment 2
C++ Assignment 2
#include <iostream>
int main() {
char choice;
do {
if ((month == 3 && day >= 21) || (month == 4 && day <= 19)) {
cout << "Horoscope: You are a natural leader and have a strong sense of
adventure. Use your energy to pursue your goals." << endl;
} else if ((month == 4 && day >= 20) || (month == 5 && day <= 20)) {
cout << "Horoscope: You are reliable and practical. Take time to enjoy the
simple pleasures in life." << endl;
} else if ((month == 5 && day >= 21) || (month == 6 && day <= 21)) {
cout << "Your sign is Gemini." << endl;
cout << "Horoscope: You are curious and adaptable. Embrace change and
keep an open mind." << endl;
} else if ((month == 6 && day >= 22) || (month == 7 && day <= 22)) {
cout << "Horoscope: You are sensitive and nurturing. Take care of yourself
and those around you." << endl;
} else if ((month == 7 && day >= 23) || (month == 8 && day <= 22)) {
cout << "Horoscope: You are confident and charismatic. Use your talents to
make a positive impact on the world." << endl;
} else if ((month == 8 && day >= 23) || (month == 9 && day <= 22)) {
cout << "Horoscope: You are analytical and organized. Focus on self-
improvement and personal growth." << endl;
} else if ((month == 9 && day >= 23) || (month == 10 && day <= 22)) {
cout << "Horoscope: You are balanced and diplomatic. Seek harmony in
your relationships and surroundings." << endl;
} else if ((month == 10 && day >= 23) || (month == 11 && day <= 21)) {
cout << "Horoscope: You are intense and passionate. Use your intuition to
navigate complex situations." << endl;
} else if ((month == 11 && day >= 22) || (month == 12 && day <= 21)) {
} else if ((month == 12 && day >= 22) || (month == 1 && day <= 19)) {
} else if ((month == 1 && day >= 20) || (month == 2 && day <= 18)) {
} else if ((month == 2 && day >= 19) || (month == 3 && day <= 20)) {
cout << "Horoscope: You are empathetic and creative. Use your
imagination to bring beauty and joy into the world." << endl;
} else {
return 0;
}
QUESTION 1
#include <iostream>
int main() {
} else {
return 0;