RAPTOR Translation

Hello, I have a homework assignment due for my Intro to Programming class, I have no idea what I am doing and wanted some help. I complete it in RAPTOR and generated the C++ code from there, but my professor doesn't want us to do it like that, he wants us to write it ourselves. Can anyone help me translate this from the RAPTOR format? I would really appreciate it!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <iostream>
#include <string>

using namespace std;
int main()
{
   string raptor_prompt_variable_zzyz;
   ?? password;
   ?? length;
   ?? index;
   ?? validpassword;

   while (1)
   {
      raptor_prompt_variable_zzyz ="Please enter your password:";
      cout << raptor_prompt_variable_zzyz << endl;
      cin >> Password;
      validPassword =false;
      Length =password'Length;
      if (Length<6)
      {
         cout << "Your password should be at least 6 characters long" << endl;      }
      else
      {
         Index =1;
         while (1)
         {
            if (Password(Index)>='0' && Password(Index)<='9')
            {
               validPassword =true;
            }
            else
            {
               Index =Index+1;
            }
            if (validPassword==true || Index>Length)) break;
         }
         if (validPassword==true)
         {
            cout << "Thank you, that is a valid Password!" << endl;         }
         else
         {
            cout << "Your password must include at least one digit (1-9)" << endl;         }
      }
      if (validPassword==true)) break;
   }

   return 0;
} 
Topic archived. No new replies allowed.