00:01
In this question to run a program we have to we need to have the hla that is the high level assembly that is the hla software installed on the computer.
00:29
So once installed once this high level assembly software is installed we have to save the code to a file with a .hla so this extension so then you can assemble and run the program using the hla software that is there.
00:51
Then when you run the program it will prompt us to enter the order as 4 hexadecimal digits.
01:00
Then after we enter the value it will calculate the total cost based on the specified number of items.
01:08
So total cost is being calculated here.
01:15
That is what we have to calculate and we have to also see that the hla code will assume that you have the hla standard library for that we also have to have a standard library that is there.
01:34
It is stdlib .hhf we have to make sure we have this so that in the same directory as the program file so we have to download it from the official hla website and place it in the same directory.
02:00
So now let us look at the problem program that we are going to code.
02:07
So for that i'll just use a basic compiler to show you.
02:11
So first thing that we will do is we have to include the library as i told you.
02:18
So we'll do that.
02:21
Then what we'll do is we have to start with the program that says calculate order cost procedure which is the main entry point of the program.
02:36
Now for that we'll use this as you can see here.
02:43
So now we have to get input procedure so for that the get input procedure we have to call for the user to enter the order as 4 or 6 hexadecimal digits but we will also give this prompt for that to happen...