Reference no: EM13691703
Question: Please help me with the subsequent.
Question 1.Write a program that reads a text file (compact.txt) and stores the integers in an array. Your instructor will provide this text file.
Question 2. Write a method compact that removes all zeroes from the array, leaving the order of the other elements unchanged. All local variables within this function must be scalar. In other words, you may not use a second array to solve the problem.
Question 3. Do not solve the problem by printing out only the non-zero values in the array. The compactmethod must remove all zeros from the array.
Instructions:
Part 1. Print out the list both before and after removing the zeros. For example:
Before: 0, 9, 7, 0, 0, 23, 4, 0
After: 9, 7, 23, 4
Part 2. Your program must use proper modular design and parameter passing.
Create a database to control its local libraries
: A county wishes to create a database to control its local libraries. Each library has a number of employees, one of whom is designated as the manager of the library and is responsible for supervising employees and the general day-to-day management..
|
Suggest three ddl and three dml commands
: Describe a specific scenario, situation, or application where using a foreign key would be necessary and explain your reasons, including the characteristics of the data, that necessitate the foreign key.
|
Problematic programming situation
: Suggest one example of a problematic programming situation or scenario that the use or implementation of a loop structure could resolve. Justify your response.
|
Program that will read in 8 numbers into an array
: Write a program that will read in 8 numbers into an array. Print out the numbers from the array, then print the 2nd number, the 5th number and the last number.
|
Write a method compact that removes all zeroes
: Write a program that reads a text file (compact.txt) and stores the integers in an array. Your instructor will provide this text file.
|
Write a program which initialize an integer array
: Write a program which performs the tasks - return the control to main( )and print the new array elements in main.
|
Steps in preparing a high level language program
: Describe the purpose of each step in preparing a high level language program for execution (editing, compiling, linking, and loading). Include in your description the types of files created with each of the first three steps.?
|
Give an algorithm that returns the position
: Give an algorithm that returns true if a string contains properly nested and balanced parentheses, and false if otherwise. Hint: At no time while scanning a legal string from left to right will you have encountered more right parentheses than left..
|
Define an adt for character strings
: Define an ADT for character strings. Your ADT should consist of typical functions that can be performed on strings, with each function defined in terms of its input and output. Then define two different physical representations for strings.
|