Home /UOG — University of Gujrat /Advanced Programming Techniques

Advanced Programming Techniques UOG — University of Gujrat 2022

Advanced Programming Techniques UOG — University of Gujrat 2022 — page 1

Discussion

Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.

Your email is only used to send you replies and occasional Ustadni updates. It is never shown publicly.

Log in to post under your name

No questions yet — be the first to ask.

Need Paper? See all →

Need a paper or stuck on a question? Ask here — students reply and you get an email.

Ask about a paper
  • Danish Yasin· 2 hours ago

    ICT 1st sister paper

    0 replies Reply →
  • Bushra· 1 day ago

    BS Islamic Studies, 5th semester, ISL-511 Translation of Holy Quran (3) — Government College University Faisalabad (GCU…

    0 replies Reply →
  • Khadija· 3 days ago

    Civics course code GCCE101

    1 reply Reply →
  • Tasddaq hussain· 3 days ago

    BS 4the semester2025 civics and community engagement past paper According UOs

    0 replies Reply →
  • Humna Khan· 4 days ago

    Bs public administration 1st semester mid term past papers

    0 replies Reply →
Ad

Paper text

UNIVER

Course Code: CS-303 -

Name yed: 150 Mines

Siddique

SITY OF GUJRAT

FALL 2022

Course Title: Advanced Programming Language

NOl4:520021519-073

Roll#:--

Question 1:

Describe GUI based application and its componen is in comparison with console based applications

Question 2:

Compare the common cor

Question 3:

istView and Com/boBox DropDown List) with

ect to purpose and usage

S

10

Write a console program and implement the details given in following figure

Classes

Inheritance

Function overriding

Create objects and show behavior of each class in action.

Person

-name: String

-address: String

+Person (name: String, addr

ss: String)

+getName (): String

*getAddress() :String

+setAddress(address: String) : void

*toString(): String

"name (address)"

Student

numCourses: int =

courses:String[] = {

-grades: int [] = {}

*Student (name: String,

address: String)

+toString() :String

+addCourseGrade (course: String,

grade:int) :void

+printGrades() :void

+getAverageGrade () :double

+tostring(): String °

Teacher

nuCourses: int

= 0

corses: String[] = ()

+Teacher (name: String,

aldress: String)

+toltring() :String

+adCourse(course:String) :boolean

+reoveCourse(course: String) : boolean

Hpitring():String

Return false if the course already existed

"Student: name (address)"

Return false if the course does not exist

"Teacher: nome(address)"

Question 4:

b) Consider a CSV File as follows:

Roll, Name, Email, DOB, Mobile

1,Usman,usman@gmail.com, 1/3/2023 10:44:15 AM,03331234567

2,SARA, sara@gmail.com, 1/3/2023 10:51:06 AM,03331234567

3,Saad, saadi@g

ع3/2022.10.52/

2 AM,03331234567

4,Adil, adil@gr

819/20230

M,03331234567

5, Waseem, wasie

com, 1/3/2023 D:44:15 AM,0333 1234567

10

Write a function that returns List of Student records using a Student Model Class.

Write a function thạt takes name of student as input and finds particular object/objects to return.

CS

CamScanner