Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(in C programing language) Text and Binary Files 1. Write a program that uses text files and binary/random access files containing structures. Each structure contains

image text in transcribed

(in C programing language)

Text and Binary Files 1. Write a program that uses text files and binary/random access files containing structures. Each structure contains a student name, student ID, three grades, and student average. You are to input the student information, excluding the average, from a text file, one student at a time. Your program should compute each student's average then store the student record in a binary file. Compute the class average, and raise each student average that is below the class average by 10%. After all computations and modifications have been completed, print all records in the binary file, in table form, to the text file named StudentResults.txt. Do not use arrays to help perform this taskll Perl Module 1 2. Write a script to swap the value of two variables in Perl without using third variable. 3. Write a script to convert temperature from degree Celsius to Fahrenheit. Get the temperature in degree from the user. (The following formula may be helpful:T-Trox9/5+32) 4. Write a script to find the simple interest (i.e. (amount rate time)/100). Get rate, amount and time from user input. Write a script to get the basic salary for an employee and calculate its gross salary. The gross salary is the sum of the basic salary, dearness allowance (10% of the basic salary), and traveling allowance (12% of the basic salary). 5. Perl Module 2 6. Write a script to find the greatest number among 3 numbers, pass them through command line arguments: Example run: s perl greaterNumber.pl 13 17 99 Output: 99 is the greatest number among 13, 17 and 99 7. Write a script to reverse a given number passed through the command line argument. Example run: s perl reverseNumber.pl 9887 Output: Reverse of 9887 is 7889 8. Write a script to print the Prime numbers till 100. 9. Write a script to get Factorial of Number 10 without using any function

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

Explain strong and weak atoms with examples.

Answered: 1 week ago

Question

Explain the alkaline nature of aqueous solution of making soda.

Answered: 1 week ago

Question

Comment on the pH value of lattice solutions of salts.

Answered: 1 week ago