Posts

Showing posts from July, 2021

C++ Experience

Image
Objectives:  In this assignment your robot willDraw a birthday cake for your child. Display the words “Happy Birthday.” Display your child’s age by entering both your child’s year of birth and the current year as inputs. You will need your program to deduct your child’s year of birth from the current year and then to display the output. For example, 2016 minus 2010 is six. Note: The output to the last program is an integer. Produce the program that edits, compiles and executes the above tasks. Submit the header, source code, and a screenshot of the output to your initial post.   #include<iostream> #include<string> using namespace std; int main() {    int birthYear;    int currentYear;    int age=0;    string message="Happy Birthday!";    cout<<"Enter year of birth : ";    cin>>birthYear;    cout<<"Enter current year : ";    cin>>currentYear;    age=curr...