You are given the temperature T of an object in one of Celsius, Fahrenheit, and Kelvin scales.
Write a program to print T in all scales viz Celsius, Fahrenheit, and Kelvin.
Formula to convert from Fahrenheit F to Celsius C is C = (F - 32) * 5 / 9.
Formula to convert from Kelvin K to Celsius C is C = K - 273.
Here "C", "F", "K" represent that the temperature scale is in Celsius, Fahrenheit and Kelvin scales respectively.
The input contains the temperature (a number) and the unit of the temperature scale (C, F, K) without any space.
The output contains temperature in Celsius, Fahrenheit and Kelvin scales
The first line of output should contain the Celsius value and the unit of the Celsius without any space.For example, if the given temperature Value is 25C then Celsius value is 25.0C, Fahrenheit value is 77.0F, and Kelvin value is 298.0K.
Sample Input 1
25C
Sample Output 1
25.0C
77.0F
298.0K
Sample Input 2
37.5F
Sample Output 2
3.06C
37.5F
276.06K
Construct a C++ program to store the data in column X as an array, then process the data to obtain the data as in column Y and Z. Store the data as an array as well.
Question 2 Construct a C++ program to store the data in column X as an array, then process the data to obtain the data as in column Y and Z. Store the data as an array as well. X Y Z 0 100 95 2 98 93 4 96 91 6 94 89 8 92 87 10 90 85 … … … … … … 100 0 -5
Q3. An institute have decided to automate their batch details operations. The application is to be developed in such a manner that a proper directory structure is to be maintained to store the files. The directory structure to be maintained is as shown below:Academy - 1. Chennai->Chennai.txt 2. Banglore->Banglore.txt 3. Mumbai->Mumbai.txt 4. Pune->Pune.txt .You need to perform operations in C# application Create a menu based application to store batch details.· The first option in the menu should allow the user to create a directory structure and the files (if not exists)in the c drive as shown in the above figure.· The second option should accept the batch details from the user. Based on the location given by the userappend the batch details in the respective files.· The third menu option allows the user to create a backup copy of the Academy folder in D Drive .The fourth option should allow the user to view the details of the all text files
Q1. Write a Code to Read and Display the contents of a text file. Accept the name of the file from the user. Handle all the exceptions that might occur during reading.
Q2. Write a Code to perform File Copy operation. You need to accept the source and destination file names. The data should be copied from source file to destination file.
Handle all the exceptions that might occur during the file copy operation.