[solved] – Question 897
I dont know what to put for the comments?
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
var numPics:Number;
var thumbIndex:Number = 0;
var thumbRowCount:Number = 6;
var numThumbsX:Number = 0;
var numThumbsY:Number = 0;
var xSpacing:Number = 115;
var ySpacing:Number = 110;
var largePics:Array = new Array();
var thumbPics:Array = new Array();
var thumbCanvas:MovieClip = new MovieClip();
addChild(thumbCanvas);
var picCanvas:MovieClip = new MovieClip();
addChild(picCanvas);
// set the height of our viewing area to one pixel less
// than the y-position of our dividing line
// position the thumbCanvas thumbnail container movie clip as shown in the .swf
// setting its x and y properties
//
// Load the XML file data
loadTheXML();
Expert Answer
[solved] – Question 8971
·It captures the “NumberFormatException” that is thrown if a string cannot be converted to a number. When the exception is captured, the user must be informed that he is an idiot.
·Define a new exception called “NotMemberException”. The exception must be thrown if the registration number entered by the user does not exist in the list of StudInfo. Your program should catch the exception as follows. It should first try to see if the number before and after the one entered exists. If so, it informs the user that they probably made a typo and provides them the name of the found student. If neither is found it must simply inform the user that such registration number does not exist.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package exhandassgn;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/**
*
* @author christoforos
*/
public class Main {
/**
* @param args the command line arguments
*/
static ArrayList<StudInfo> ls;
public static void main(String[] args) {
populate();
System.out.println(“Enter a registration number:”);
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
try {
String inp = in.readLine();
int rVal = Integer.parseInt(inp);
StudInfo foundStudent = getStudent(rVal);
System.out.println(foundStudent.getName());
}
catch(IOException ioe) {System.out.println(ioe.getMessage());}
}
static void pop
Expert Answer
[solved] – Question 8973
create a simple java program that enter his name, surname and age. Note that the program has an age limit of 18 years old.
Expert Answer
[solved] – Question 89737
Implement a sorting algorithm and sort the following array of words alphabetically. For this question, do not define or use an explicit swap function (you will revisit this in question 3). Can not use the sort function either
vocab = [ “Libraries”, “Bandwidth”, “Hierarchy”, “Software”, “Firewall”, “Cybersecurity”,”Phishing”, “Logic”, “Productivity”]
Expert Answer
[solved] – Question 8974
Create a Parent class called Players (e.g., an Interface class). The Players class should have setter and getter methods for the following attributes: name, surname, age, score,allScores and averageScore.
Expert Answer
[solved] – Question 89755
Declare a 4×5 array called N. Write a subprogram called printIt to print the values in N. Use this subprogram to print the values in the array after each part of the initialization exercise.
Write the loops to initialize the array to the following:
Expert Answer
[solved] – Question 89758
Write a free function getStat the gets a queue of integers, and calculates the highest and lowest numbers in the queue, as well as the sum of all of the integers in the queue. You may manipulate the original queue any way but upon completion of the function, the original queue must be restored to its original configuration. Use the queue operations defined in the queue class. Write a main function to test the code and please leave comments.
Sample output:
the original queue: 4 10 5 1 3 2 5 1 3 7
highest=10
lowest=1
sum is 41
the queue after calculations: 4 10 5 1 3 2 5 1 3 7
Expert Answer
[solved] – Question 89780
write a program that has a class named “students”. the class should have at least two constructors:one being the default constructors and the other one being a copy constructor. and two more functions of your choice.create two objects of type student:one created using the default constructor and the other by the copy constructor.call at least two functions from the class using both object.
Expert Answer
[solved] – Question 89782
the program below has errors.rewrite the program and fix each and every error on it and have it running and display the output.
include <iostream>
template<class G>
Expert Answer

