Tuesday
September 2, 2014

Homework Help: Unix Script

Posted by Tina on Saturday, February 26, 2011 at 9:43am.

"Using "if" statement checks for a file called "student.txt" in the current directory. Removes (deletes) the file if it exist. This file will collect last name, first name, and grade for 5 people.

Use a while loop to get the information (last name, first name, and age) for 5 people. grade should be 0-100. Use three different variable names (fname, lname, and grade) to read the data from the keyboard.

Store the data read from the keyboard in a file called "student.txt". After reading all the data for 5 people, display contents of name.txt file on the monitor.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Unix Shell script - Shell script Using "if" statement checks for a file called...
C++ - File version maintenance utility   A team of software developers has been...
bookkeeping - Using your computer, you create a file for an existing costumer. ...
offfice finaces - Using your computer software, you create a new file for an ...
programming - b. Write a well-commented C++ program that reads data from the ...
operating system - I been working on this forever can you please show fully how ...
programming - How do I delete a file on my shared LAN network with vbs??? 1. The...
Programming - 2. Then it should prompt the user for the input file name of the ...
Java - I need to write a Java program using an input file with the below data. I...
window XP - Which of the following is true of the Encrypting File System (EFS)? ...

Search
Members