Subject Subject Code Department Semester

: Programming skills-III (OOCP) : 620004 : MCA : 2nd Sem Tutorial - 8

(1)

Use an Employee Class to write records of employee to a file. Include a menu that will allow the user to select any of the following features a. Add a new record. b. Modify an existing record. c. Retrieve and display an entire record for a given name. d. Generate a complete list of all names, addresses and telephone numbers. e. End of the computation.

(2)

Write a program that returns the size in bytes of a file entered on the command line.

(3)

You are the owner of a hardware store and need to keep an inventory that can tell you what different tools you have, how many of each you have in hand, and the cost of each one. Write a program that initializes the random access file "hardware.dat" to one hundred empty records, lets you input data concerning each tool, enable you to list all your tools, and lets you update any information in the file. The tool identification should be the record number. The file must contain following information for each tool record_no

(4)

tool_name

quantity

cost

A file contains name and phone numbers. Name contains only one word and names and telephone numbers are seperated by white spaces. Write a program which will include a menu driven functionality for the above file a. Display 2 column output with names left justified and phone numbers right justified. Name Phone Ram 56789125 Shyam 34565432 Rahim 23456789 Joseph 67213148 b. Determine the telephone number of a person. c. Determine the name if the telephone number is known. d. Update the telephone number. e. Prefix all the telephone numbers by 2.

Prepared By Mr. Milan Vachhani

HOD (MCA Department) Asst. Prof. V. A. Gandhi

Programming skills-III (OOCP)

d. Generate a complete list of all names, addresses and telephone numbers. e. End of the computation. (2) Write a program that returns the size in bytes of a file entered on the command line. (3) You are the owner of a hardware store and need to keep an inventory that can tell you what different tools you have, how many of ...

213KB Sizes 1 Downloads 165 Views

Recommend Documents

Programming - GitHub
Jan 16, 2018 - The second you can only catch by thorough testing (see the HW). 5. Don't use magic numbers. 6. Use meaningful names. Don't do this: data("ChickWeight") out = lm(weight~Time+Chick+Diet, data=ChickWeight). 7. Comment things that aren't c

pdf-1879\programming-android-java-programming-for-the-new ...
Try one of the apps below to open or edit this item. pdf-1879\programming-android-java-programming-for-the-new-generation-of-mobile-devices.pdf.

pdf-1425\the-jr-programming-language-concurrent-programming-in ...
... apps below to open or edit this item. pdf-1425\the-jr-programming-language-concurrent-progr ... rnational-series-in-engineering-and-computer-scie.pdf.

Fundamentals of C Programming
A programming language provides a set of rules to develop a program. A person who .... Windows and Apple Mac. ..... the application as well as the machine.

Concepts Lite - Programming Generically
auto si = find(s, 7); // calls associative container overload. At each call site, the compiler checks the requirements of each overload to determine which should be ...

The C programming Language
A preprocessing step performs macro substitution on program text, inclusion of other .... Chapter 1 is a tutorial on the central part of C. The purpose is to get the ...... As an illustration of some of the bit operators, consider the function getbit

Quantum Programming - Springer Link
Abstract. In this paper a programming language, qGCL, is presented for the expression of quantum algorithms. It contains the features re- quired to program a 'universal' quantum computer (including initiali- sation and observation), has a formal sema

FRC Java Programming - GitHub
FRC Java Programming Last Updated: 1/11/2016 ..... NI Update Service .... network. When you have entered the team number and the roboRIO is connected, ...

Scratch Programming
design your own sprites, how to clone them in Scratch 2.0, .... You don't need to install any software to use Scratch 2.0: it runs inside your browser, using an Internet connection. Scratch 2.0 needs a computer that can run the Adobe Flash Player, th

Programming Language.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Programming ...

Python Programming
Programming, Computers, Computer Science, Language ) free download pdf Python Programming: A Practical Guide On Everything Python To Go From A ...