Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguity in instructions for "Warm Up -> Hello World! -> Introduce Yourself" #9

Open
telans opened this issue Jun 27, 2023 · 0 comments
Assignees

Comments

@telans
Copy link

telans commented Jun 27, 2023

The instructions for the task "Introduce Yourself" state:

Write a simple program that will ask the name of a person and then print the string "Hello Username" (where "Username" should be substituted by the actual name given to the program).

However, the expected answer appears to require that the only text printed to the console is std::cout << "Hello " << name;.

For example,

#include <iostream>
#include <string>

int main() {
    std::string name;
    std::cout << "What is your name?" << std::endl;
    std::cin >> name;
    std::cout << "Hello " << name;
    return 0;
}

Is an incorrect answer because it contains the text "What is your name?", despite the instruction to ask for the name.

A solution for the integrated test would be to check for the string "Hello Student" on the last line of the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants