Question
3 part question. The first two are easy and an answer for those are not needed. The third one is the one I don't understand.
3 part question. The first two are easy and an answer for those are not needed. The third one is the one I don't understand. We are using VM VirturalBox for these. Also, it will be in c++
1) Under Ubuntu Linux 18.04, create and run the Hello, World! program we discussed in class using cout, replacing World with your name.
2) Instead of hard-coding your name, ask the user for their name using cin. Then print Hello, [name], where [name] is whatever name they enter.
3) Instead of asking the user for their name, automatically identify the current user and print Hello, [name]! without any input or hard-coded names in the source code,where [name] is something that uniquely identifies the user, such as a user name, proper name, etc.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started