By using Figure 4(a), complete the codes to produce the program output as in Figure 4(b). Figure 4 (a) : SOURCE CODE 1. #include 2. #include 3. using namespace std; 4. int main () 5. { 6. char...


By using Figure 4(a), complete the codes to produce the program output as in<br>Figure 4(b).<br>Figure 4 (a) : SOURCE CODE<br>1.<br>#include <iostream><br>2.<br>#include<cstring><br>3.<br>using namespace std;<br>4.<br>int main ()<br>5.<br>{<br>6.<br>char pwd_master[5] =

Extracted text: By using Figure 4(a), complete the codes to produce the program output as in Figure 4(b). Figure 4 (a) : SOURCE CODE 1. #include 2. #include 3. using namespace std; 4. int main () 5. { 6. char pwd_master[5] = "MEL7"; 7. ; //1 declare variables to be used in this program 8. 9. cout<"please keyin="" the="" password:="" ";="" 10.="" ;="" 2="" store="" the="" keyin="" data="" in="" variable="" pwd="" with="" size="" 5="" 11.="" 12.="" ;="" 3="" backup="" 3="" first="" letter="" in="" pwd="" to="" pwd1="" 13.="" :="" 4="" uppercase="" the="" keyin="" password="" 15.="" if="" (="" )="" 5="" compare="" the="" master="" password="" and="" keyin="" password="" return="" true="" if="" the="" value="" is="" 0="" 16=""><"correct for="" the="" first="" 4="" letters="" \n";="" 17="" else="" 18=""><"in correct="" for="" the="" first="" 4="" letters="" \n";="" 19="" 20.="" return="" 0;="" 21.="" }="" figure="" 4="" (b)="" :="" output="" console="" (sample="" 1)="" please="" keyin="" the="" password:="" mel7="" correct="" for="" the="" first="" 4="" letters="" figure="" 4="" (b)="" :="" output="" console="" (sample="" 2)="" please="" keyin="" the="" password:="" mert="" in="" correct="" for="" the="" first="" 4="">

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here