1. Write a script (lab2_q1.vbs) which inputs the hard disk size of a server in GB. The program must give an error message if the user enters
• any character other than a number
• Any value which is not between 50GB – 980GB
The program must loop until the user enters the correct number. Once the correct number is entered, the program computes the number of users and no. of applications running based on the following criteria:
Hard disk size (GB) No. of Users No. of Applications running
>=800 50 40
>=400 30 25
>=100 15 8
<100 3 2
The program must also input the average CPU time required for each application in seconds (which can be 50 to 150seconds) and then compute the Total CPU time as:
CPU time = Average CPU time * No. of applications running
You should display the output as:
Hard disk size (GB) :
No, of Users :
No. of Applications running :
Total CPU time : ___ hrs __min __ sec
(i.e.) display the time in hours, minutes and seconds