Determine the percentage composition of the elements is sodium chloride (NaCl) or table salt.
Build app for icecream parlor using file handling to record daily sales. Icecream parlor offers 10 flavours icecreams. Each has different price per scoop. Different flavours rates, description and rate/scoop are stored in file named flavors.txt. Also for each flavor sugarfree version also exists. It has same flavor and description but rate is 20% more than original per scoop price . There is no separate file or record for sugar free types. Build an interface by yourself.
A sale is done by selecting flavor from the list. Customer specifies the number of scoops & bill is calculated. If sugar free checkbox is selected then price is recalculated as mentioned above and bill is adjusted accordingly. Upon finishing a sale, sale record is saved in file named sales.txt. This file will contain record of all the sales of the day. Also create a separate file named total.txt. This file will contain just one number which is grand total of all the sales done
Write a shell script using Nested for loops of your own and explain each statement of that script. Explanation
Write a shell script to determine if an input number is a palindrome or not.
Write a shell script that, given a file name as the argument will write the even numbered line to a file with name even file and odd numbered lines in a text file called odd file.
A basketball of mass 0.0400 kg is dropped from a height of 5.00 m to the ground and bounces back to a height of 3.00 m.
a. On its way down, how much potential energy does the ball lose?
b. On its way back, how much potential energy does the ball regain?
Write a menu driven shell script using the select statement to print calories for food items such as pizza, burger, Salad, Pasta etc
Given three floating-point numbers x, y, and z, output x to the power of z, x to the power of (y to the power of z), the absolute value of y, and the square root of (xy to the power of z).
The Power set P(S) of the set S = { Φ, { 1,2, 3 } , 3 , {{1,2}} } is?
Write a program to input side of a square and find the area and perimeter of a square.