Wednesday, 30 January 2019

CS304-OOP Assignment no. 2 Solution FALL 2018 Due date: 30 January, 2019 | SUPERSTARWEBTECH

Subject: CS304-Object Oriented Programming
Semester: FALL 2018
Assignment No. 2
Due date: 30 January, 2019
 CS304 ASSIGNMENT 2 SOLUTION FALL 2018

CS304-OOP Assignment 2 #Question

Write a program containing three classes Person, Student, and Exam for an Examination database using Inheritance. Class Person is the base class, Student is the intermediate base class, and Exam is the derived class. The Student class should inherit the properties of Person class whereas, the Exam class should inherit the properties of Student class (directly) and properties of Person class (indirectly). Implement the model shown in figure using the following hints.

Data Members

Person Class: Name, Gender Age

Student Class: RollNo, Subject

Exam Class: Sub1Marks, Sub2Marks

Member Functions

You are required to write the following member functions for all three classes:

·         displayData()

Tuesday, 29 January 2019

CS602-Computer Graphics Assignment no. 2 Solution FALL 2018 Due date: 31 January, 2019 | SUPERSTARWEBTECH

Subject: CS602-Computer Graphics
Semester: FALL 2018
Assignment No. 2
Due date: 31 January, 2019
 CS602 ASSIGNMENT 2 SOLUTION FALL 2018

CS602-Computer Graphics Assignment 2 #Question

Question no. 1:
Incident Light ray is passing through glass, with refractive index of 1.1, on an interface separating glass and water with refractive index 1.25. What is the angle of refraction if the angle of incidence of the ray in glass is 35°?

Question no. 2:
Given are the points that lie on a plane P, P1<3.0,6.0,7.0>,
P2<4.0,3.0,5.0>,
P3<7.0,4.0,2.0>.
You are required to find the equation of a normal to the plane P.

Question no. 3:
In RGB model we are required to simulate the entire visible spectrum by three colors with a limited range. Suppose a light is coming from a particular source and is represented by following intensity.
Light color id = [0.43314, 0.32632, 0.62343]
Surface color is represented with the following rgb values.
Surface color Cs = [0.23435, 0.62527, 0.32333]
You are required to calculate the color combination of this surface from a given light by using piecewise multiplication of the color values.
id Cs =?

Monday, 28 January 2019

CS301-Data Structures Assignment no. 2 Solution FALL 2018 Due date: 28 January, 2019 | SUPERSTARWEBTECH

Subject: CS301-Data Structures
Semester: FALL 2018
Assignment No. 2
Due date: 28 January, 2019
 CS301 ASSIGNMENT 2 SOLUTION FALL 2018

CS301-Data Structures Assignment 2 #Question

Question: Consider the following string saved into a string type variable. We want to send it over the network to another computer. Use the given string and answer (solve) the questions given below.

String: “I love to study data structures”.

1. Build frequency table and Huffman encoding tree. Marks [5 + 10]

2. Calculate how much bits are consumed by original and compressed strings. What percentage of bits is saved by Huffman encoding scheme? Marks [5]

Wednesday, 23 January 2019

CS401-Assembly language Programming Assignment no. 2 Solution FALL 2018 Due date: 29 Januar, 2019 | SUPERSTARWEBTECH

Subject: CS401-Computer Architecture and Assembly language Programming
Semester: FALL 2018
Assignment No. 2
Due date: 29 January, 2019

CS401-Assembly language Programming Assignment 2 #Question

Question:           [15 Marks]

Write a TSR program that will print first letter of your Name on the screen (upper left corner). The letter will be printed when you will press that letter on keyboard and how many times it will be printed depends on the last digit of your VUID

CS401-Assembly language Programming Assignment 2 #Explaination

• Let’s say your name is Muhammad Usman, and your VUID is BC123456789. You will write code in
• such a way that if you press M (first letter of name), then M will be printed on the screen, nine times
• (which is the last digit of VUID)
• As another example, let’s say your name is Ali Raza, and your VUID is BC987654321. You will write code in such a way that if you press A (first letter of name), then A will be printed on the screen, one time (which is the last digit of VUID)
• If last digit of your VUID is zero, then you’ll print first letter of your name ten times
• You will use DOSBox to compile and execute your code
• Keep name of assembly file according to last eight digits of your VUID. For example, if your VUID is BC123456789, you will keep name of the assembly code file as 23456789.asm

CS401-Assembly language Programming Assignment 2 #Submit

What to submit:

Your solution must be in a single Word file (DOC or DOCX) containing the following:

1) Complete code written in Word file

2) First screenshot that will show the command to compile the code

3) Second screenshot that will show the final output

CS401-Assembly language Programming Assignment 2 #Output Sample

Sample Output:

CS401-Assembly language Programming Assignment 2 #Video with output

CS401-Assembly language Programming Assignment 2 Solution