Will pay generously!!

I have an assignment due soon in Java. My problem is i can read the code, but unfortunately cannot problem solve. If interested get in touch.

QUESTION 1
(a)     Develop a JAVA method(subroutine) using nested loops called solidDiamond, so that when called it will generate the type of pattern shown below. It should have a parameter called size that specifies the number of asterisks appearing along any side of the pattern. Show how it would be called to generate the pattern below.
(b)     Develop a similar method called hollowDiamond to generate the following type of pattern.
(c)     Hence, or otherwise, develop a program to generate the following type of pattern, where alternate rows are blank, regardless of the size of the diamond.                                                                      
                                                                                                                                       (25 marks)
QUESTION 2
Develop a program that simulates the computer chess type game with the computer and a player alternatively placing Queen pieces on a chess board in positions where they are not being attacked by other Queen pieces already on the board. Remember that a Queen piece can attack along any Row, Column, or Diagonal of the board. All Queen pieces on the board can potentially attack each other (so the colour of a Queen is not relevant � assume they are all the same colour). Neither the computer or the player should place a piece in an occupied position. If the player puts a piece in a position where it is being attacked the game should report this and give the player another chance to reposition that piece in a safe position. Your testing should show the game developing over a number of moves (possibly 5 or more). You should display the board after each move as an 8X8 grid with �X� representing an occupied position and �O� representing an unoccupied position.
Hint: You can represent the chess board as an 8X8 boolean array. When a position is occupied that position is set to TRUE, otherwise it is FALSE.                    (25 marks)
QUESTION 3
The following details on performance in a module are held on students, where the Registration Number is unique to each student and the information is stored in ascending Registration Number order.
Coursework Results (Registration Number , Name, CourseworkMark (percentage to two decimal place) in a file called �CourseWork.dat�)
For example:
451234 Bloggs_Joe 56.00
451236 Green_Peter 32.00
451237 Lunney_Tom 67.00
452356 Jones_Mary 45.00
452357 Brown_Harry 46.00
454567 Doherty_Marie 62.50
454568 Sweeney_Tom 32.00
454666 McKevitt_Paul 69.00
454667 McGregor_Stephen 56.00
454669 Hill_Jane 88.00
454670 Millar_Trevor 70
-1
Similarly the examination results are stored in the same format, but the name of the student is not included as anonymous marking is employed.
Examination Results (Registration Number, ExaminationMark (percentage to two decimal place) in a file called �Examination.dat�)
For example:
451234 60.00
451236 34.00
451237 60.00
452356 27.00
452357 36.00
454567 60.00
454568 56.00
454666 62.00
454667 64.00
454669 30.00
454670 37.00
-1
(a)     Develop a program that will read the details from these two data files and generate a file called PassList.res with the following information:
Reg. No. StudentName Coursework Examination Overall Mark
===== ======== ======= ======== =======
Assume the coursework and examination elements each contribute equally towards the final mark. Also assume that there are no details missing in the two data files. To pass a student must obtain an overall mark of 40% at least, with the percentage of each component being at least 40%. Alternatively, if either the coursework or examination mark falls between 35% and 40%, then a condoned pass is allowed if the overall mark is at least 45%.
(b)     Generate a list of students (in a file called RetakeList.res) who have to retake either the Coursework or Examination component for this module and specify what has to be taken, for example
     Reg. No. StudentName CW EX
     ======== =========== == ==
     451236 Green_Peter X X
     452356 Jones_Mary X
     452357 Brown_Harry X
     454568 Sweeney_Tom X
     454669 Hill_Jane X
     +++ End of Results +++
                                             (25 marks)
QUESTION 4
Using the same file type information as question 3 (above), develop a program that will carry out statistical analysis on the performance of the student cohort, producing the following type of results in a file called Statistics.res.
Analysis of Module Marks
=====================
Coursework Average = 56.68
1-29 30-39 40-49 50-69 70-100
N 0 2 2 5 2
% 0.00 18.18 18.18 45.45 18.18
Examination Average = 47.82
1-29 30-39 40-49 50-69 70-100
N 1 4 0 6 0
% 9.09 36.36 0.00 54.55 0.00
Total Average = 52.25
1-29 30-39 40-49 50-69 70-100
N 0 2 2 7 0
% 0.00 18.18 18.18 63.64 0.00
+++ End of Results +++
Note. All programs should be properly documented and tested and the solutions presented should include a program listing with sample input and resulting output. Include any stepwise refinement you carried out.
Also comment on any difficulties/problems encountered.
Learning Outcomes:
1.     An understanding of the role and use of methods/subroutines
2.     Further development of file handling techniques and its use in test analysis
3.     Selecting appropriate program construct for array manipulation.
4.     Ability to develop and use sorting algorithms to sort non trivial data
Note. Each solution will be marked with the following guideline criteria in mind:
1)     The program uses appropriate programming constructs (e.g. while loop)
2)     The program is properly documented (i.e. appropriate comments) and indentation is used correctly
3)     The program is tested to cover the main input/output scenarios and the correct results obtained in each case.
4)     There is an appropriate report that comments on the results produced by each program and any difficulties
encountered when developing the solutions.
What do you think? If your interested think of a price and get back to me at [email protected] and we can discuss. Thx

Similar Messages

  • How can i get a comedy, Dutch Treat or/and its companion Detective School Dropouts released in 1987 be included in the iTunes US store for me to down load. i will pay any thing to download them.

    I wish to request that a comedy, Dutch Treat or/and its companion Detective School Dropouts released in 1987 be included in the iTunes US store for me to down load. i will pay any thing to download them.

    You can try requesting it via this page (these are user-to-user forums) : http://www.apple.com/feedback/itunes.html
    But unless the the US rights-holder passes it to Apple and allows them to sell it in the US then Apple won't be able to sell it there

  • I want to buy iPhones (4S and 5) and want to buy them in US $. But want Apple to ship them to Pakistan. I will pay the charges of shipment once told. I want to buy the iPhones in Contracts. I'll unlock them myself no problem. Is that possible? Apple ans?

    I want to buy iPhones (4S and 5) and want to buy them in US $. But want Apple to ship them to Pakistan. I will pay the charges of shipment once told. I want to buy the iPhones in Contracts. I'll unlock them myself no problem. Is that possible? Apple ans?

    No, you can't do what you want. Apple will only ship a US iPhone to a verified billing/shipping address in the US.

  • Can i change my old iPad with the new one, i Will pay the difference... Do you have this kind of program?

    Can i change my old iPad with the new one, i Will pay the difference... Do you have this kind of program?

    If you are past the return date, you can sell the older iPad and put the money towards a new one.
    Plus, old iPads make great gifts ! ! !

  • I will pay you if you can help me with..

    Logic studio. I have tons of questions about everything and I dislike reading. If you would be so kind to 'teach' me the programs inside logic studio I will pay you $5 an hour. Reach me at: [email protected] or my aol instant messenger screen name: wut a lewser
    please and thank you.

    Let's do some math.
    20 sessions at $5 a piece is $100. The same cost for 52 sessions.
    Also, I think you might be hard pressed to get some one to teach you Logic for $5 an hour. Not to sound arrogant but for $5 I might answer 1 question for that. Not to say you can't find someone, just remember you get what you pay for.
    See what works for you or how you can learn the application. There are some great tutorial books from peachpit press that you could look into.

  • CDs I burn from my itunes 10 on my macbook with snow lepard will not play in the regular cd player.  How do I burn Cds that will pay in a reg old cd player?

    CDs I burn from my itunes 10 on my macbook with snow lepard will not play in the regular cd player.  How do I burn Cds that will pay in a reg old cd player?

    When the computer was new, I had the same issue I have now.  It was new and I could not burn to play on a reg cd player. Today, I can not burn to play on a reg cd player. Inbetween, I could not burn to play on a reg cd player.  I keep giving up and then trying months later.
           I have recently made the cds that play on the computer.  I have also tried in the last month to make a dvd copy, it played.  I have gone to people's homes and tried the cd's burned in my computer. They are not recognized.  This last round I have only used the cd-r but have tried many others in the past. I am running out of money to keep buying different brands, kinds, etc.  I figured it must be my lac of knowledge and am trying to get some new here. 
    Sincerely,
    Paul

  • I will pay for who can help me with this applet

    Hi!, sorry for my english, im spanish.
    I have a big problem with an applet:
    I�ve make an applet that sends files to a FTP Server with a progress bar.
    Its works fine on my IDE (JBuilder 9), but when I load into Internet Explorer (signed applet) it crash. The applet seems like blocked: it show the screen of java loading and dont show the progress bar, but it send the archives to the FTP server while shows the java loading screen.
    I will pay with a domain or with paypal to anyone who can help me with this problematic applet. I will give my code and the goal is only repair the applet. Only that.
    My email: [email protected]
    thanks in advance.
    adios!

    thaks for yours anwswers..
    harmmeijer: the applet is signed ok, I dont think that is the problem...
    itchyscratchy: the server calls are made from start() method. The applet is crashed during its sending files to FTP server, when finish, the applet look ok.
    The class I use is FtpBean: http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/
    (I test too with apache commons-net, and the same effect...)
    The ftp is Filezilla in localhost.
    This is the code, I explain a little:
    The start() method calls iniciar() method where its is defined the array of files to upload, and connect to ftp server. The for loop on every element of array and uploads a file on subirFichero() method.
    Basicaly its this.
    The HTML code is:
    <applet
           codebase = "."
           code     = "revelado.Upload.class"
           archive  = "revelado.jar"
           name     = "Revelado"
           width    = "750"
           height   = "415"
           hspace   = "0"
           vspace   = "0"
           align    = "middle"
         >
         <PARAM NAME="usern" VALUE="username">
         </applet>
    package revelado;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.io.*;
    import javax.swing.border.*;
    import java.net.*;
    import ftp.*;
    public class Upload
        extends Applet {
      private boolean isStandalone = false;
      JPanel jPanel1 = new JPanel();
      JLabel jLabel1 = new JLabel();
      JLabel jlmensaje = new JLabel();
      JLabel jlarchivo = new JLabel();
      TitledBorder titledBorder1;
      TitledBorder titledBorder2;
      //mis variables
      String DIRECTORIOHOME = System.getProperty("user.home");
      String[] fotos_sel = new String[1000]; //array of selected images
      int[] indice_tamano = new int[1000]; //array of sizes
      int[] indice_cantidad = new int[1000]; //array of quantitys
      int num_fotos_sel = 0; //number of selected images
      double importe = 0; //total prize
      double[] precios_tam = {
          0.12, 0.39, 0.60, 1.50};
      //prizes
      String server = "localhost";
      String username = "pepe";
      String password = "pepe01";
      String nombreusuario = null;
      JProgressBar jProgreso = new JProgressBar();
      //Obtener el valor de un par�metro
      public String getParameter(String key, String def) {
        return isStandalone ? System.getProperty(key, def) :
            (getParameter(key) != null ? getParameter(key) : def);
      //Construir el applet
      public Upload() {
      //Inicializar el applet
      public void init() {
        try {
          jbInit();
        catch (Exception e) {
          e.printStackTrace();
      //Inicializaci�n de componentes
      private void jbInit() throws Exception {
        titledBorder1 = new TitledBorder("");
        titledBorder2 = new TitledBorder("");
        this.setLayout(null);
        jPanel1.setBackground(Color.lightGray);
        jPanel1.setBorder(BorderFactory.createEtchedBorder());
        jPanel1.setBounds(new Rectangle(113, 70, 541, 151));
        jPanel1.setLayout(null);
        jLabel1.setFont(new java.awt.Font("Dialog", 1, 16));
        jLabel1.setText("Subiendo archivos al servidor");
        jLabel1.setBounds(new Rectangle(150, 26, 242, 15));
        jlmensaje.setFont(new java.awt.Font("Dialog", 0, 10));
        jlmensaje.setForeground(Color.red);
        jlmensaje.setHorizontalAlignment(SwingConstants.CENTER);
        jlmensaje.setText(
            "Por favor, no cierre esta ventana hasta que termine de subir todas " +
            "las fotos");
        jlmensaje.setBounds(new Rectangle(59, 49, 422, 30));
        jlarchivo.setBackground(Color.white);
        jlarchivo.setBorder(titledBorder2);
        jlarchivo.setHorizontalAlignment(SwingConstants.CENTER);
        jlarchivo.setBounds(new Rectangle(16, 85, 508, 24));
        jProgreso.setForeground(new Color(49, 226, 197));
        jProgreso.setBounds(new Rectangle(130, 121, 281, 18));
        jPanel1.add(jlmensaje, null);
        jPanel1.add(jlarchivo, null);
        jPanel1.add(jProgreso, null);
        jPanel1.add(jLabel1, null);
        this.add(jPanel1, null);
        nombreusuario = getParameter("usern");
      //Iniciar el applet
      public void start() {
        jlarchivo.setText("Start() method...");
        iniciar();
      public void iniciar() {
        //init images selected array
        fotos_sel[0] = "C:/fotos/05160009.JPG";
        fotos_sel[1] = "C:/fotos/05160010.JPG";
        fotos_sel[2] = "C:/fotos/05160011.JPG";
         // etc...
         num_fotos_sel=3; //number of selected images
        //conectar al ftp (instanciar clase FtpExample)
        FtpExample miftp = new FtpExample();
        miftp.connect();
        //make the directory
         subirpedido(miftp); 
        jProgreso.setMinimum(0);
        jProgreso.setMaximum(num_fotos_sel);
        for (int i = 0; i < num_fotos_sel; i++) {
          jlarchivo.setText(fotos_sel);
    jProgreso.setValue(i);
    subirFichero(miftp, fotos_sel[i]);
    try {
    Thread.sleep(1000);
    catch (InterruptedException ex) {
    //salida(ex.toString());
    jlarchivo.setText("Proceso finalizado correctamente");
    jProgreso.setValue(num_fotos_sel);
    miftp.close();
    //Detener el applet
    public void stop() {
    //Destruir el applet
    public void destroy() {
    //Obtener informaci�n del applet
    public String getAppletInfo() {
    return "Subir ficheros al server";
    //Obtener informaci�n del par�metro
    public String[][] getParameterInfo() {
    return null;
    //sube al ftp (a la carpeta del usuario) el archivo
    //pedido.txt que tiene las lineas del pedido
    public void subirpedido(FtpExample miftp) {
    jlarchivo.setText("Iniciando la conexi�n...");
    //make folder of user
    miftp.directorio("www/usuarios/" + nombreusuario);
    //uploads a file
    public void subirFichero(FtpExample miftp, String nombre) {
    //remote name:
    String nremoto = "";
    int lr = nombre.lastIndexOf("\\");
    if (lr<0){
    lr = nombre.lastIndexOf("/");
    nremoto = nombre.substring(lr + 1);
    String archivoremoto = "www/usuarios/" + nombreusuario + "/" + nremoto;
    //upload file
    miftp.subir(nombre, archivoremoto);
    class FtpExample
    implements FtpObserver {
    FtpBean ftp;
    long num_of_bytes = 0;
    public FtpExample() {
    // Create a new FtpBean object.
    ftp = new FtpBean();
    // Connect to a ftp server.
    public void connect() {
    try {
    ftp.ftpConnect("localhost", "pepe", "pepe01");
    catch (Exception e) {
    System.out.println(e);
    // Close connection
    public void close() {
    try {
    ftp.close();
    catch (Exception e) {
    System.out.println(e);
    // Go to directory pub and list its content.
    public void listDirectory() {
    FtpListResult ftplrs = null;
    try {
    // Go to directory
    ftp.setDirectory("/");
    // Get its directory content.
    ftplrs = ftp.getDirectoryContent();
    catch (Exception e) {
    System.out.println(e);
    // Print out the type and file name of each row.
    while (ftplrs.next()) {
    int type = ftplrs.getType();
    if (type == FtpListResult.DIRECTORY) {
    System.out.print("DIR\t");
    else if (type == FtpListResult.FILE) {
    System.out.print("FILE\t");
    else if (type == FtpListResult.LINK) {
    System.out.print("LINK\t");
    else if (type == FtpListResult.OTHERS) {
    System.out.print("OTHER\t");
    System.out.println(ftplrs.getName());
    // Implemented for FtpObserver interface.
    // To monitor download progress.
    public void byteRead(int bytes) {
    num_of_bytes += bytes;
    System.out.println(num_of_bytes + " of bytes read already.");
    // Needed to implements by FtpObserver interface.
    public void byteWrite(int bytes) {
    //crea un directorio
    public void directorio(String nombre) {
    try {
    ftp.makeDirectory(nombre);
    catch (Exception e) {
    System.out.println(e);
    public void subir(String local, String remoto) {
    try {
    ftp.putBinaryFile(local, remoto);
    catch (Exception e) {
    System.out.println(e);
    // Main
    public static void main(String[] args) {
    FtpExample example = new FtpExample();
    example.connect();
    example.directorio("raul");
    example.listDirectory();
    example.subir("C:/fotos/05160009.JPG", "/raul/foto1.jpg");
    //example.getFile();
    example.close();

  • Ibought an ibook by mistake. I wanted an audiobook. I only have an ipad so cannot read large book on it. Can I transfer it to a Kobo Vox? If not, how do I go about switching the ibook for an audiobook. I will pay the difference, no problem.

    I bought an Ibook by mistake when I thought I was buying an audiobook. I only have an Ipod - can't read a big book like that on an Ipod. Is it possible to transfer it to a Kobo Vox? If not, how do I get hold of Itunes to exchange them (I will pay the difference)?

    " Is it possible to transfer it to a Kobo Vox? "
    No.
    " how do I get hold of Itunes to exchange them (I will pay the difference)?"
    There are no refunds/exchanges.  You can try contacting itunes support and asking for an exception:  Click Support at the top of the page, then click the link under Contact Us.

  • Updating Flex 2 to 3 will pay off?

    Hi,
    Sorry, but I did not find any information about this. If I
    buy version 2 of Flex, migration to version will pay off?
    Thanks in advance for your answer.
    Regards, Dexys

    Yes. and here is why:
    1) Bug fixes in the flex sdk
    2) deprecated and new API
    3) better performance for flex builder plus additional
    features
    ATTA

  • Will pay Spry Expert to fine tune vertical menu bar

    Hi,
    I have created a menu bar with DW CS4 for one of my web design clients, and I am running out of time to fine tune it.
    So I will pay an expert who can:
    1. Reduce the font size to small (maybe 8pt) on all items because the client has way too many items.
    2. Reduce the line height size to 4pt for the same reason.
    3. Stop submenu items from appearing on the left side of the window outside the menu bar.
    I am happy with the bg color and arial font.
    You can see the bar at: http://faithandfamilynutrition.com/
    Please let me know if you can do this job and how much you would charge.
    Thanks

    Hi,
    Never mind. Trial and error, figured it out using the CSS menu that came up when I clicked different sections of the widget.
    Thanks anyway

  • Why in the world is there an "Unsorted Bookmarks" folder appearing that I can't get rid of. I will pay money to get it gone... forever

    The details are:
    there's an "Unsorted Bookmarks" folder appearing that I can't get rid of. I will pay money to get it gone... forever
    clear enough?

    Do you have any Boot Camp or other secondary partitions set up on your system? If so then try running a disk verification routine (chkdsk, etc.) in Windows to repair the disk. While I've not heard of it happening recently, in the past errors in these partitions have resulted in stubborn ghost files appearing in OS X.

  • I am unable to register, I want to talk to the helpline, but I am currently in China, I will pay, I don't care what it costs, how can I do this?

    I am unable to register, I want to talk to the helpline, but I am currently in China, I will pay, I don't care what it costs, how can I do this?

    You are unable to register what ? If you are in China then you can only use the China iTunes store (you have to be in a country to use its store), if you want to contact China iTunes Support then you can do so via this page : http://www.apple.com/cn/support/itunes/contact/

  • Hello i have a problem  i can not use adobe programs. The payment for the month march is not be payed, but i will pay the payment.I can not found where i can do that. Also i see that my membership is stopped.

    Hello i have a problem  i can not use adobe programs.
    The payment for the month march is not be payed, but i will pay the payment.I can not found where i can do that. Also i see that my membership is stopped.

    Try the not-charging topic of:
    iPod touch: Hardware troubleshooting
    It could be that the battery is dead.

  • Wsdl trouble - WILL PAY FOR IMMEDIATE HELP

    I'm having trouble consuming a webservice - code works in PHP
    but coldfusion keeps getting back a null value. The function only
    takes 1 parameter, of which I'm sending. I'll paypal you money for
    your help - PM me for details

    > WILL PAY FOR IMMEDIATE HELP
    I do not believe that that is in the spirit of this forum. If
    you post your code here, you will most likely get a quick answer to
    the question anyway.

  • I will pay, who creates a method for importing tables from MS word

    I need a script or any other type of method, which will import the MSword document, which have tables and footnotes.
    WIth "Place" option (with "SHift"), it only imports the first page of word document, and even that first page is degraded and some part of  footnotes are moved to the second page of Indesign.
    for example,see such document: http://d2.minus.com/1342790256/zDuntjI5q2iNIJqkk5UPJA/dbjwjsXzUbRmjD/sample.rtf
    i will pay him, who will do that job (offer me your bid).
    my info:
    mail: selnomeria(*)yahoo.com
    skype: oceane.sa

    Hello!
    First of all:
    Indesign does not support footnotes in tables. There are some tricks i use, for example making a "hidden footnote reference" somwhere in the page (just assign a 0.1pt size and fillcolor of "None") but it's just a ugly hack and if you have to reformat the tables you will have to rebuild all teh footnotes. move them around etc.
    Second:
    If one of the cells in the table you are importing is larger (verticaly) than the page size the autoflow will stop. The table is imported in the story (check it out in the story editor) but indesign cannot display it. Enlage the frame until the cell fits (or make the cell smaller -decrease the text size?) and reflow the rest of the text.
    Third:
    If you are working with large tables and especialy large cells be prepared to have numerous crashes. And i mean NUMEROUS!! Every time you try to change something in the table.
    i am sorry to be the bearer of bad news but at the moment table and footnote support in indesign is crappy at best, and i don't think there's anyone besides the guys form Adobe that can do anything to help you.

Maybe you are looking for