Get help from the best in academic writing.

Insert With Methods * Please check the uploaded file and do as the pseudocodes and instructions asking for The program should be able to run on Textpad8

/********************************************************** * Program Name : EmptyArrayInsertWithMethods * Author : * Date : 10/4/15 * Course/Section : * Program Description: This program will prompt user to input * integers into an array with pre-determined bounds. The * user will continue to input integers until either the user * enters the sentinel value or the array becomes full. In both * cases the inputted array will be displayed for the user, with * the execption that if the array is full, it will be displayed * along with the results. * * Methods: * ——- * main – enters numbers into an array with pre-determined bounds an * displays the array when full or when user terminates the program. * arrayInsert – * dispArray – **********************************************************/ import java.text.*; public class EmptyArrayInsertWithMethods { /********************************************************** * Method Name : main * Author : * Date : 11/4/15 * Course/Section : CSC111 – 111 * Program Description: This program will prompt user to input * integers into an array with pre-determined bounds. The * user will continue to input integers until either the user * enters the sentinel value or the array becomes full. In both * cases the inputted array will be displayed for the user, with * the execption that if the array is full, it will be displayed * along with the results. * * BEGIN EmptyArrayInsert * Prompt user for the size of the array * WHILE (size is not 0) * instantiate the array * call method to insert numbers into the array * clear the screen * call method to display contents of the array * prompt user for size of the next array or 0 to quit * END WHILE * END EmptyArrayInsert **********************************************************/ public static void main (String [] args) { //local constants //local variables /****************************************************/ //Prompt user for size of array or quit //While user didn’t quit while () { //instatiate the array //call method to put data in the array //clear the screen //call method to display the array // prompt user for size of next array or 0 to quit }//end while } //end main method /********************************************************************** *Program Name : CSC 111 Array Input Using Sentinel *Author : Professor Scheemaker *Due Date : April 11, 2011 *Course/Section : CSC 111 – 001 *Program Description: Input an unknown number of * values into an empty array. It is important that the array * not have any values in it that you want saved prior to * implementing this code * *BEGIN Array Input Using Sentinel Value * Set Count = 0 * Input first value or quit value * WHILE (User did not enter the quit value) * Store the input in the array at position Count * Increment Count by 1 * IF (the array has been filled) * Output message indicating max inputs have been reached * Set the Input variable to the quit value * ELSE //the array has not been filled * Prompt the user for next input value or quit value * END IF * END WHILE * Clear Screen * return the count of values inserted into the array *END Array Input Using Sentinel Value *****************************************************************/ public static int arrayInsert (int ary[]) { //local constants final int QUIT = -1; //local variables int value; //the value input by the user int count = 0; //the number of values inserted in the array /********************************************/ }//end arrayInsert /********************************************************************** *Program Name : CSC 111 Array Input Using Sentinel *Author : Professor Scheemaker *Due Date : April 11, 2011 *Course/Section : CSC 111 – 001 *Program Description: Display…. * *BEGIN Array Input Using Sentinel Value * Display Heading * FOR (Each value in the array) * Display value on its own line * END FOR *END Lab01 – Array Input Using Sentinel Value *********************************************************************/ public static void dispArray(int[] ary, int count) { //local constants //local variables /**********************************/ }//end dispArray } //end EmptyArrayInsertWithMethods

Essay Writing at Online Custom Essay

5.0 rating based on 10,001 ratings

Rated 4.9/5
10001 review

Review This Service




Rating: