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 & Filtering

Take your Array of InventoryItems from assignment 11 and put them in an ArrayList to show how to use lists. Print all the InventoryItems in the ArrayList for the user.

Ask the user for a ItemID, Description, and Price and make a new InventoryItem and add it to the Arraylist. Print all the InventoryItems in the ArrayList for the user to show that you added one.

Remove 2 InventoryItems from the ArrayList and print all the InventoryItems in the ArrayList for the user a last time to show that you can dynamically remove them.

Program 2

Make a 2D array to hold saleAmounts from the user for a store that has 3 departments and 4 salespeople. Put zeros in all 12 spots in the array with an initialization list or through other code.

Ask the user 3 times for a department number, salesperson number, and sale amount. Put this sale amount into the array using the department number as a row and the salesperson number as a column.

Print the 2D array for the user with row totals and column totals.


Take your Array of InventoryItems from assignment 11 and add a ItemID as an Integer and change the test data in the program to have them. (This would be like an ID in a database and would be a number like 452 or 535. It wouldn’t be anything about the data in that object. It gives us another integer value to work with.) Make sure the test data doesn’t have the 5 InventoryItem ItemIDs in order yet at the start.

Write a linear search to find an InventoryItem by Description and tell whether that InventoryItem is in the set or not.

Sort the Array by using a Bubble Sort, Select Sort, or another sort you know of (and your instructor may have shown the Insert Sort in lecture) to sort the array by ItemID. Then loop through the array printing the values of each InventoryItem to show they are now in order.

Then ask the user for a ItemID and write a Binary Search to tell whether that InventoryItem is in the set or not.



Design a java application that will store three different vehicle details for a local car dealership. The vihicle details must be stored in parallel arrays for the Vehicle identification Number (VIN), Vehicle Manufacturer and vehicle price.


Prompt the user with a menu system for searching or displaying the vehicles. The user must have the option to enter the numbers 1,2 or zero to exit the application. Make use of JOptionPanes for input and output. Create a loadArray () method that will store the vehicle details into thr three parrallel arrays.



If a user enters one provide functionality for a vehicle search. Create a searchArray () method and write code to enable the user to search for a specific vehicle. If the VIN is found in the array, display the Vehicle details.


If the VIN that the user searched for does not exist in the array, show a message to indicate that the vehicle is not found.



2 must display all vehicles

0 must exit




Design an application that stores different types of products available at a local IT store and the corresponding product price. The product details must be stored in parallel arrays. Use the following data to populate the three (3) parrallel arrays in a loadArrau ()method.


Create a SearchArray () method and write the code to enable the user to search for a specific type of product and if the product ID is listed in the array, show the product details. If the product ID that the user searched for does not exist in the array, show a message to indicate that this product is not available.


Prompt the user to enter numbers 1,2 or any other key to exit the application.


The product ID , product name and the product price must be displayed in a message box if a valid product ID is entered by the user.


Implement user friendliness into the application by prompting the user if they would like to search for more products.



10. Along the main and additional diagonals of any two-dimensional square array


Create a program to find the sum of elements.

10. The coordinates of two points in the plane are known. Find their distance


Create a program.

write a c++application that extracts a day,month and year and determines whether the date is valid. if the program is given a valid date,an appropriate message is displayed.


Students captured 10 temperature readings in Celsius on a particular day. Write an Algorithm to input ten values and get the average temperature for that day. if the average temperature value is in between 970 Fahrenheit and 990 Fahrenheit then display the message “Your body temperature is normal…”. If it is more than 100.40Fahrenheit then display the message “You have a fever caused by an infection or illness…


(Parking Charges)A parking garagecharges a $2.00 minimum fee to park for up to three hours.The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hourperiod is $10.00. Assume that no car parks for longer than 24 hours at a time. Write an application that calculates and displays the parking charges for each customer who parked in the garage yesterday. You should enter the hours parked for each customer. The program should display the charge for the current customer and should calculate and display the running total of yesterday’s receipts. It should use the method calculateCharges to determine the charge for each customer.





1 What do you mean by Program? Briefly describe the basic structure of C programs.

2 What is a token? Differentiate between a for loop and a while loop? What are it uses?

3 What is a data type? Differentiate between array and pointer. Write a program to interchange 2 variables without using the third one.

4 What is an array of pointers? Is it possible to have negative index in an array? Why is it necessary to give the size of an array in an array declaration?

5 Submit a Report "the impact of improving debugging skill on programming ability" 


LATEST TUTORIALS
APPROVED BY CLIENTS