Page 1 of 1

2022 CLONE Home Select the function that takes an argument in the range from 1 to 9, inclusive, and prints the English n

Posted: Fri May 20, 2022 5:37 pm
by answerhappygod
2022 Clone Home Select The Function That Takes An Argument In The Range From 1 To 9 Inclusive And Prints The English N 1
2022 Clone Home Select The Function That Takes An Argument In The Range From 1 To 9 Inclusive And Prints The English N 1 (79.6 KiB) Viewed 40 times
2022 CLONE Home Select the function that takes an argument in the range from 1 to 9, inclusive, and prints the English name for that integer on the computer screen. If the argument is not in the required range, then the function should print an error message. If a match is found, the function should stop evaluating the rest of the code in the function logical code block. Syllabus Announcements el Modules void digitName (int digitValue) Assignments E. Discussions Quizzes switch (digitValue) { case @ I cout << "zero\n"; break; case 1 cout << "one\n"; break; ; ; case 2 : cout << "two\n"; break; 2 :; case 3 cout << "three\n"; break; 3 : case 4 : cout << "Four\n"; break; case $ cout << "five\n"; break; case 6 : cout << "six\n"; break; : ; case 7 : cout << "seven\n"; break; : \" case 8 : cout << "eight\n"; break; case 9: cout << "nine\n"; break; 9 default : cout << "digit error\n" ) Grades ST ConferZoom Tutor Me 3 NetTutor Library Wellness Central Chat void digitName (int digitValue) { switch (digitValue) 1 case 1 + cout << "one\n"; case 2: cout << "two\n"; 2 \; case 3 : cout << "three\n"; case 4 : cout << "four\n" case 5 : cout << "five\n" case 6 cout << "sixin"; case 7 # cout << "seven\n"; case 8 cout << "eight\n"; case 9: cout << "nine\n"; n default : cout << "digit error\n"; Accudemia ) 3 void digit Nane (int digitValue) switch (digitValue) case 1 cout << "one\n"; break; : case 2 cout << "twoln"; break; case 3 : cout << "three\n"; break; case 4 I cout << "Four\n"; break; " Case 5 cout << "Five\n"; break; case 6 : cout << "six\n"; break; case 7 :cout << "seven\n"; break; case 8 : cout << "eight\n"; break; case 9: cout << "nine\n"; break; "; default : cout << "digit errorin"; 0 3