We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

# CS508- Modern Programming Languages Assignment No. 03 SEMESTER Fall 2015 Total Marks: 20 Due Date: 26/01/2016

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

Views: 3234

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Attachments:

### Replies to This Discussion

dosto koi to uplaod kar de code is ka

Plzzz koi code share kr do

is it correct solution?

any comment don't copy paste

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Marks
{
public static void main (String[] args)
{
int [] myArray={67,78,99,65,54};
System.out.println("marks of 5 subjects are:");
for(int i=0;i<myArray.length;i++){
System.out.println(myArray[i] + " ");
}
int total=0;
for (int i = 0; i < myArray.length; i++) {
total += myArray[i];
}
System.out.println("Total marks are: " + total);

}
}

import java.io.*;

class StudDetail
{
int RollNo;
}

class StudMarks extends StudDetail
{
float sub1;
float sub2;
float sub3;
float TotalMarks;

void getdata()
{
System.out.println("\nRecording Entry");
try{
String sRNo,sSub1,sSub2,sSub3;

System.out.print("Enter Roll No : ");
System.out.flush();
RollNo=Integer.parseInt(sRNo);

System.out.print("Enter Marks for Subject 1 : ");
System.out.flush();
sub1=Float.parseFloat(sSub1);

System.out.print("Enter Marks for Subject 2 : ");
System.out.flush();
sub2=Float.parseFloat(sSub2);

System.out.print("Enter Marks for Subject 3 : ");
System.out.flush();
sub3=Float.parseFloat(sSub3);

TotalMarks=sub1+sub2+sub3;
}
catch(Exception e){}
}

void display()
{
System.out.println("\nDisplaying Record");
System.out.println("Roll No : "+RollNo);
System.out.println("Subject 1 : "+sub1);
System.out.println("Subject 2 : "+sub2);
System.out.println("Subject 3 : "+sub3);
System.out.println("Total Marks : "+TotalMarks);
}

void totalMarks()
{
System.out.println("\nDisplaying Total Marks");
System.out.println("Roll No : "+RollNo);
System.out.println("Total Marks : "+TotalMarks);
}

}

class StudentDatabase
{
publicstaticvoid main(String args[])
{
System.out.println("\n=====STUDENT DATABASE=====\n");

float HighMark_sub1;
float HighMark_sub2;
float HighMark_sub3;
float StudHighMark;
int No_of_stud=3,choice;
String str;
char c;

try{
System.out.print("\nEnter number of Students : ");
System.out.flush();
No_of_stud=Integer.parseInt(str);
StudMarks SMobj[]=new StudMarks[No_of_stud];

while(true)
{
System.out.println("1) PASS ENTRY");
System.out.println("2) DISPLAY ALL RECORDS");
System.out.println("3) DISPLAY TOTAL MARKS for all students");
System.out.println("4) DISPLAY HIGHEST MARKS in each subject");
System.out.println("5) DISPLAY student who recived highest total marks");
System.out.println("6) Exit ");
System.out.flush();
choice=Integer.parseInt(str);

switch(choice)
{
case 1 : for(int i=0;i< us help it so think i="0;i

bhi dono cods ma error a raha ha plz help me

oper wal chal gia nechy wala ni chala

correct hai  No errors

I think not correct because the code does not fulfill the requirement of this line "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."

to bhi plz ap kar do upload correct code

next page nhi open ho raha...

Solution send kr do koi

100% Complete Solution ...... Eyes band kary kay submit kaar do Insh-Allah numbers ayen gy

Na samajh aye to pochoo

Attachments:

## Latest Activity

Maheen updated their profile
33 minutes ago
Mani Siddiqui BS VIII posted a status
"مزاج کی تلخ______ ، انا زادی_____ ضدی ہوں! المختصر_____، تمہارے تو بس کی نہیں ہوں میں"
1 hour ago
Muhammad Tayyab Rashid joined +M.Tariq Malik's group

### CS314 Introduction to Cellular Networks

1 hour ago
Mani Siddiqui BS VIII posted a status
"لفظوں نے ضرور کہا تھا الوداع مگر میرے لہجے نے ہاتھ جوڑے تھے"
2 hours ago
2 hours ago
2 hours ago
Mani Siddiqui BS VIII posted a status
"مجھ سے میری عمر کا خسارہ پوچھتے ہیں لوگ یعنی کے مجھ سے تمھارا پوچھتے ہیں لوگ"
2 hours ago
ZY and +!CS619!+ are now friends
3 hours ago
5 hours ago
Maham Raza. posted discussions
6 hours ago
6 hours ago

1

2

3