Question

IN C++ LANGUAGE PLEASE::: Design and implement a program (name it Favorites) to print out on...

IN C++ LANGUAGE PLEASE::: Design and implement a program (name it Favorites) to print out on separate lines the following: your name, your birthday, your hobbies, your favorite book, and your favorite movie.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Thanks for the question.


Below is the code you will be needing Let me know if you have any doubts or if you need anything to change.

Please do change the values when you are running in your mac.


Thank You !!


=============================================================================================

#include<iostream>
#include<string>

using namespace std;

int main(){
  
   string myName="ALberto Higgins";
   string myBirthday="11/19/1996";
   string hobbies[] ={"Reading","Programming","Music","Soccer"};
   string myFavouriteBook ="Harry Potter";
   string myFavouriteMovie ="The Lord of the Rings";
  
   cout<<"My Name is : "<<myName<<endl;
   cout<<"I was born on : "<<myBirthday<<endl;
   cout<<"My hobbies are : "
       <<hobbies[0]<<" "
       <<hobbies[1]<<" "
       <<hobbies[2]<<" "
       <<hobbies[3]<<" "<<endl;
   cout<<"My Favourite Book: "<<myFavouriteBook<<endl;
   cout<<"My Favourite Movie: "<<myFavouriteMovie<<endl;
}

========================================================================================

Add a comment
Know the answer?
Add Answer to:
IN C++ LANGUAGE PLEASE::: Design and implement a program (name it Favorites) to print out on...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • PLEASE DO THIS IN PYTHON!!!!!!!! 1.) For each lab program you develop, make sure to include...

    PLEASE DO THIS IN PYTHON!!!!!!!! 1.) For each lab program you develop, make sure to include the following header - replace the dots with your section #, semester, your full name, your instructor’s name, and lab #:                         Class: CSE 1321L Section:       ...          Term:          ... Instructor:    ... Name:          ...    Lab#:          ... Make sure to put the correct comment character(s) before the above lines in each file. C# & Java use // for comments, Python uses a # Exercise #1:...

  • PLEASE DO THIS IN C#.Design and implement a program (name it ProcessGrades) that reads from the...

    PLEASE DO THIS IN C#.Design and implement a program (name it ProcessGrades) that reads from the user four integer values between 0 and 100, representing grades. The program then, on separate lines, prints out the entered grades followed by the highest grade, lowest grade, and averages of all four grades. Format the outputs following the sample runs below. Sample run 1: You entered: 95, 80, 100, 70 Highest grade: 100 Lowest grade: 70 Average grade: 86.25

  • ​Design and implement a program (name it Grade Report) that uses a switch statement to print out a message

    Design and implement a program (name it Grade Report) that uses a switch statement to print out a message that reflect the student grade on a test. The messages are as follows 

  • Program language - JAVA 1) Write a program that will display the following. My name is...

    Program language - JAVA 1) Write a program that will display the following. My name is ____(Shelby)_________. (your name)                 My major is ___Psychology________. (your major)                                 My hobbies are ___Surfing_____, ___Eating_____, and ___Reading______. (your hobbies) Code: Output:

  • In C++ Exercise #2: Design and implement a programming (name it SimpleMath) that reads two floating-point...

    In C++ Exercise #2: Design and implement a programming (name it SimpleMath) that reads two floating-point numbers (say R and T) and prints out their values, sum, difference, and product on separate lines with proper labels. Comment your code properly and format the outputs following these sample runs.

  • Write a Java program that: 1. Decide on a list of n favorites (songs, bands, movies,...

    Write a Java program that: 1. Decide on a list of n favorites (songs, bands, movies, video games, etc.) (between 5 and 10 favorites is fine). 2. Write a program that lists the n favorites but with a small twist. 3. Read in a file of n favorites (sample file in the Resources/Sample File area)...Please make your own. 4. Print a list of all n favorites to the user (so they know what is coming) 5. Ask if the user...

  • PLEASE DO IN PYTHON Program 2: Design (pseudocode) and implement (source code) a program (name it...

    PLEASE DO IN PYTHON Program 2: Design (pseudocode) and implement (source code) a program (name it FeetMeters) to display a conversion tables for feet and meter as show below. Document your code and properly. Feet Meter 1.0 0.305 2.0 0.610 3.0 0.915 . . . . . . 19.0 5.7.95 20.0 6.100 Meter Feet 1.0 3.279 2.0 6.558 3.0 9.837 . . . . . . 19.0 62.301 20.0 65.574 The program defines the following methods: Method feetToMeter() converts from...

  • C++ language This challenge is designed to reinforce the skills you leamed about classes and objects....

    C++ language This challenge is designed to reinforce the skills you leamed about classes and objects. In this challenge, you're going to create a movie class. The movie class will ask the user for the name of their top three favorite movies, what year the movie was released, and what was the rating, whether it was G for General Audience, PG for Parental Guidance, R for Restricted, or M for Mature. I want you to also add logic to make...

  • PLEASE DO THIS IN PYTHON!!! 1.) Exercise #1: Design and implement a program (name it Youth)...

    PLEASE DO THIS IN PYTHON!!! 1.) Exercise #1: Design and implement a program (name it Youth) that reads from the user an integer values repressing age (say, age). The program prints out the entered values followed by a message as follows: If age is less or equal to 21, the message is “Youth is a wonderful thing. Enjoy.”. Finally, the program always prints out the message “Age is a state of mind.” Format the outputs following the sample runs below....

  • Write this program in C language Ensure the program output is exactly as described, and that...

    Write this program in C language Ensure the program output is exactly as described, and that the whitespace of your source code is well formatted. Utilise good naming practices when declaring variables. EXERCISE NAME: Recursive Movie In the history of Jurassic Park movies the following movies were released: Movie's Name: Jurassic Park The Lost World: Jurassic Park Jurassic Park III Jurassic World Year of Release: Rotten Tomatoes: 1993 93% 1997 51% 2001 50% 2015 72% Implement a structure type named...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT