You are on page 1of 5

Visual Programming (CS411) Total marks = 20

Assignment # 03
Deadline Date

7th Feb, 2022

Please carefully read the following instructions before attempting assignment.

RULES FOR MARKING


It should be clear that your assignment would not get any credit if:

 The assignment is submitted after the due date.


 The submitted assignment does not open or file is corrupt.
 Strict action will be taken if submitted solution is copied from any other student or from the
internet.

Lectures:

 Lectures 18 to 26 are covered in this assignment

NOTE

No assignment will be accepted after the due date via email in any case (whether it is the case of load
shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of
deadline. It is recommended to upload solution file at least two days before its closing date.

If you people find any mistake or confusion in assignment (Question statement), please consult with your
instructor before the deadline. After the deadline no queries will be entertained in this regard.

For any query, feel free to email at: cs411@vu.edu.pk


(Marks 20)

Problem Statement:
You are required to create a C# WPF application using Visual Studio with the following
functional requirements:

You have to create a Pharmacy Management Software considering following points.


 When the application starts, a window of splash screen similar to the following window
should appear for a few seconds and then control moves to login window. The design
must be same as shown in the figure below.

 “Login Window” should be similar to the window given below in terms of color scheme
and design. You can use any other logo of Virtual University to place in this window.
Now the credentials of login window should be your complete VUID as username and
last 3 digits of your VUID as password. While login, if you enter some other VUID or
password it must show error “Invalid username or password”. And if you click on exit
button then whole application must be closed.
 After successful login, Main Dashboard window will appear similar to following window
and your login username must be passed to dashboard window and appear on screen as
shown in the image.

 In next step, you have to Click on invoice button and it will open Invoice form as show in
the figure below. Now, you have to fill the form and when you enter submit button it will
check if any of the text box is empty then it will print message as shown in the given
figure. You have to apply conditions on all textboxes to check none of them will be
empty. Otherwise show relative message in front of the textbox.

 When you click on the required field textbox, the message should get disappear from the
screen.

 You have to apply validation on Price and Quantity textbox, both of them should only
contain numeric digits. Any other character is not allowed other than numeric value. And
when you enter value in quantity textbox then calculation should be performed
accordingly and total price will appear in total textbox on runtime. For better
understanding see attached gif file and understand working of this application.

 If none of the textbox is empty then on clicking save button “Transaction Successful”
message should appear on screen. And when Close button is clicked, in that case only
current form should be closed.
Note:
You must have to follow the color scheme as shown in images. If you want to check
color of any label, button, background on any specific area you can use a Software name
“Color Cop” already provided you in Download Section. And You must have to use your
own VUID for Username and Password.

Submission details

Following Files Must be submitted in a single zip or rar file. File name must be your VUID.

 Xaml file of each window.


 C# code file (Xaml.cs)
 A .gif file which shows only “execution” of your Application (For Recording .gif a
software named Screentogif is uploaded on LMS, or you can use any other gif recording
tool as well)
You are not required to submit the complete project, only copy required file from project folder.

If you do not submit any of the above-mentioned file you will be awarded Marks partially.

“The End”

You might also like