00:01
Hello, welcome to this lesson.
00:02
In this lesson, we write a c+ + program.
00:05
They will convert human numerals to, that will convert numbers to your corresponding human numerals.
00:14
The first thing i will do is that we declare a strength that i'll call women.
00:20
And now this should have to 20 items.
00:25
And i can initialize it because i know exactly what should be their values.
00:32
So from here it starts from i which is 1 to xx which is 20.
00:43
Alright so the next thing i'll do is that i would declare an integer number there would be anything above 20 so this number would hold one user inputs from the console now check it if it is between one and 20 i'll print the roman numeral corresponding from the roman numeral list.
01:28
Now if it's below, if it's zero, i would actually quick the programs.
01:34
So i'll use a y loop while the number is not equal to zero.
01:42
Means well's user has not still pro zero.
01:45
This is what i'll do.
01:47
I would ask user, user, using a number.
01:50
The c out to enter a number between 1 and 20.
02:09
I'll say enter 0 and whatever number that they enter, i will use the c in to catch that number and give it to.
02:31
After that i would look at, i'll print that the room for what you've entered is this.
02:43
Is this.
02:44
So i will say c out, then the roman numeral for, so for what they entered, for the number that they entered is.
03:14
Then here, i have the roman.
03:18
So the index of that, but the index is from jail.
03:23
And the number is also starting from one.
03:26
So what i would do is that i would reduce the number by one.
03:31
Okay, enough to end the line.
03:37
Alright.
03:38
Now if they quits, i would give them a message that, thank you.
03:52
Say thanks for your time.
03:59
This will only be printed once user press 0 and quits the program.
04:06
Alright, so we have the roman numeral desktop.
04:09
There's 20 slots, that's up, starts from i to xx30 from 1 to 20.
04:17
Now a variable which will be holding word user, user inputs on the console...