Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS508- Modern Programming Languages Assignment No. 03 Solution January 2016
#1
Question: 01 (Marks: 10)

In Java programming language declaring array is reference to array object, it means declaring an array would only declare a pointer to array object while the memory to array elements will allocate only when the “new” keyword is used.
Write a Java program which declares an array of size 5. This array stores the marks of five courses of a student. Use “for” loop which add the marks of all courses. Your program must display marks of individual courses as well as the total marks of the student.

Question: 02 (Marks: 10)

Write a program in Java which declares a class named “Employee” having three data members “Emp_name”, “Designation” and “Salary” which store employee name, designation and salary respectively.
The class should have default constructor, parameterize constructor and a method “Display” which print the information of employee.

Further, your program should have a main class “TestEmployee” which declare (create) two objects one with default constructor and one with parameterized constructor. Also call “Display” method with both objects.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS401 assignment no 3 Solution 20th January 2016 Vuhelper 0 10,249 01-20-2016, 05:15 PM
Last Post: Vuhelper
  Human Computer Interaction (CS408) Assignment no 3 20th January 2016 Vuhelper 0 1,059 01-20-2016, 05:13 PM
Last Post: Vuhelper
  CS101 Introduction to Computing Assignment No.2 Solution Spring Semester 2013 Vuhelper 4 12,093 12-13-2014, 01:23 AM
Last Post: Vuhelper
  ENG101 English Comprehension Assignment No.1 Solution Spring Semester 2013 Vuhelper 3 4,601 11-25-2014, 03:35 PM
Last Post: Vuhelper
  CS201 Introduction to Programming Assignment No. 3 Solution Spring Semester June 2013 Vuhelper 1 4,066 06-24-2013, 10:39 PM
Last Post: Vuhelper
  MGT101 Financial Accounting Assignment 2 Solution Spring Semester June 2013 Vuhelper 0 3,068 06-15-2013, 11:57 PM
Last Post: Vuhelper
  ISL201 Islamic Studies Assignment No.1 Solution Spring Semester 2013 Vuhelper 0 4,560 05-17-2013, 09:33 PM
Last Post: Vuhelper
  CS201 Introduction to Programming Assignment No.2 Solution Spring Semester 2013 Vuhelper 5 6,525 05-17-2013, 02:55 AM
Last Post: Xpert
  ENG201 Assignment No.2 Solution Spring Semester 2013 Vuhelper 1 5,737 05-16-2013, 04:41 PM
Last Post: Vuhelper
  ENG001 Elementary English Assignment No. 2 Solution Spring Semester 2013 Vuhelper 0 3,995 05-14-2013, 10:20 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)