Java | JSP | JSF Answers

Questions answered by Experts: 3 611

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Write an application containing three parallel arrays that hold 10 elements each. The first array holds four digit student ID numbers, the second holds first names and the third holds the students grade point averages. Use dialog boxes to accept a student ID number and display the student's first name and grade point average. If a match is to found, display an error message that includes the invalid ID numbers and allow the user to search for a new ID number. This is for an assignment that is due monday,would appreciate it if you can help me before the due date.
Your lecturer wishes to store the exam marks for java, and perform an analysis of the marks. The marks are expressed as a percentage. There are 15 students that wrote the exam. write the java program that will input the marks for each student and store in an array called Supp. The input must be validated before being stored. Also determine and display the highest and lowest mark. the inputs are: 15,27,38,2,98,42,87,92,99,13,5,72,67,2,1. This is for an assignment and its really urgent, if you could please help me. thanx
write a application that display a series of at least four survey question;the survey can be on any social or political topic,each question should have at least three possible numeric choice answers.at the end the survey,use a dialog box to ask whether the user wantsto
1.enter another set of responses to the same set of questions
2. quit
continue to accept the sets of responses until the user chooses to quit,and then display the results of the survey for each question indicate how many users chose the first option,second option,and so on
input the marks for each student and store in an array called supp.the input must be validated before being stored :input are 15 27 38 2 98 42 87 92 99 13 5 72 67 2 1
my qestion is how do i determine and display the highest and lowest mark
Write a payroll program that prompt a user to Enter his/her name, hourly rate, working hours in the week and display the amount earning by each employee in Rand.
Note: User is not allowed to enter any negative value for hourly rate and working hours
write a java program that wil prompt the user for a positive integer(num)and then display two triagles with num number of line to represent the following pattern of asterisks.the input num must be validated,and if invalid,the user must be allowed a maximum of 3 tries to enter the correct value
difficult exercise in racket sheme programming??????????
A function named occurrences that takes as parameters two arguments, a and b. If a is not a list
then the function should return #f. Otherwise it should return the number of times b is found in
the list a. For example, if a is (3 4 2 53 3 5 4) and b is 3 the function should return 2
You are a manager of a parking lot and decide to keep track all the cars parked in your lot. You want to know the maker, model, color, and license plate of the cars. Since you learned about ArrayList and you like to use an ArrayList to keep track of cars entered the lot. Each time a car left the lot, the remove method of ArrayList class can be used. Each time a car entered, add method can be used. To keep track how many cars in the lot, the size method can be used.
But before you write your application to create a class called MyParkingLot, you have to write a class call Car which contains all the information you need as describe in the previous paragraph. Also develop constructor(s) and getters or setters as needed so that you can retrieve (get) and record (set) information such as maker, model, color, and license plate number.
For MyParkingLot class, it shall consist of an ArrayList which will be used to maintain the information of all the cars in and out of this parking lot.
I have to write a test class for a program and a counter class, its a course work in my university. I'm in my first year, so it may not be as complex for you guys as it is for me. I wanna know like how much it'll cost to do this?, like an approximate value
// Qs. Write java program that contains the following 2 classes.
(i) Circle class that contains a radius field and getArea method that calculates its area.Give it a constructor where u pass in the radius.
(ii) TestCircle class which creates an array of 100 circles, each with a a random radius and prints out the sum of the areas , the biggest & smallest areas



class Circle {

private float radius;
public Circle(float r)
{
this.radius=r;
}
public float getArea()
{
return (float)(Math.PI*radius*radius);
}
}

class circle7
{
public static void main(String[] args)
{
Circle circles[]= new Circle[100];
for(int i=0; i<circles.length; i++)
{
circles[i]= new Circle((float)(50*Math.random()));
showAreas(circles);
System.out.println("the sum is"+ areaSum(circles));
System.out.println("the minimum is"+ minArea(circles));
System.out.println("the maximum is"+ maxArea(circles));

}
public static float areaSum(Circle c[])
{
float sum= 0;
for(int i=0; i<c.length; i++)
{
sum+= c[i].getArea();
}
return sum;


}

public static float minArea(Circle c[])
{
float min= c[0].getArea();
for(int i=1; i<c.length; i++)
{
if(c[i].getgetArea()<min)
min= c[i].getArea();
}
return min;

}




public static float maxArea(Circle c[])
{
float max= c[0].getArea();
for(int i=1; i<c.length; i++)
{
if(c[i].getgetArea()>max)
max= c[i].getArea();
}
return max;

}
public static void showAreas(Circle c[])
{
for(int i=0; i<c.length; i++)
{
System.out.println(c[i].getArea());
}


}

}


// Can someone plz find the errors in the program? Cuz the compiler is giving 8 errors.
LATEST TUTORIALS
APPROVED BY CLIENTS