Answered step by step
Verified Expert Solution
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
(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 functionStep 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