Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(i) A company maintains some of its item price in a random access file. The file stores the item number and its price. Write a
(i) A company maintains some of its item price in a random access file. The file stores the item number and its price. Write a program that creates 10 blank records first and then allow user to enter any item price using any item number from 1 to 10. Insert each new record into a file at a location that is equal to the item number. The program stops when user input -999 as item number. Your program should also check that the item number entered is between 1 and 10 and that the price cannot be negative. Save your program as CreateltemRecord.java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started