eLMS Practice Exercises
• Let P(x, y) be the statement “student x has taken class y”, where the domain for x consists of all students and y consists of all computer engineering courses at your school.
• Express each of the quantification in English sentences
1. ∀x ∀y P(x,y)
2. ∀x Ǝy P(x,y)
3. Ǝx ∀y P(x,y)
4. Ǝx Ǝy P(x,y)
Why sweating in effective way to cold the body
A teacher divides her class in different group (gr) sizes according to the
activity they have to do. Write a program to determine the number (nr) of groups as well as the nr of pupils (p) who are left to form a smaller gr. They're 56 in the class.
Program structure:
• Declare 3 int variables nrPupils, nrGroups, and nrLeft. nrPupils is the
nr of ps in a class, nrGroups is the nr of grs the class is divided into, and nrLeft is the nr of ps who're in the remaining smaller gr.
• Assign the value 56 to nrPupils.
• Declare an int variable groupSize that's used by a cin statement to input a value from the keyboard and store the size of the grs the teacher requested. Display a message. E.g. Please enter the size of each gr?
• Write the statement to calculate the nr of grs of size groupSize.
• Write the statement to calculate the nr of ps who're in the remaining smaller gr.
The output of the program must be displayed as follows:
There are 9 grs consisting of 6
pupils There are 3 remaining pupils
How would you prepare 500ml of 28% w/v (weight/volume) KOH (potassium hydroxide) solution? From this stock, how would you prepare a 0.1M working solution?
Find a good cookbook. Read the instructions for your favourite dish. Write a program to display the recipe on the screen but with a difference. The quantity of each ingredient must be multiplied by a value entered from the keyboard. For example, if the recipe needs 2 cups of flour the output displayed will be something like this Please enter the factor to multiply the ingredients with : 4 Recipe name Ingredients // other ingredients 8 cups flour Method The program has the following structure: • Declare an int variable named mFactor to store the value with which the quantity of each ingredient must be multiplied. • The program must make use of a cin statement to input a value from the keyboard and store it in mFactor. Submit both your program and output.
A sample of helium gas behaves as an ideal gas as energy is added by heat at constant pressure from 273K t 393K. If 20.0J of work is done by the gas during this process, what is the mass of the helium present?
The characteristic odor of pineapple is due to ethyl butyrate. Combustion of 2.78 mg of ethyl butyrate yields 6.32 g of CO2 and 2.58 g of H20. The property of the compound suggest that the molar mass should be between 100 and 150g/mol. What is the molecular formula?
a car is traveling up a hill that is inclined at an angle x above the horizontal determine the ratio of the magnitude of the normal force to the weight of the car when x=15degrees and x=35degrees
What are the most well-known causes of imbalances in the balance of
payments (BoP) of a country?
The latest nationwide political poll indicates that for Indians who
are randomly selected, the probability that they are with alliance
ABC is 0.55, the probability that they are with alliance PQR is
0.30 and the probability that they are with alliance XYZ is 0.15.
Answer the following questions pertaining to a randomly chosen
group of 10 Indians.
What is the probabilities:
(i) None are with alliance ABC ?
(ii) 2 are with alliance XYZ ?
(iii) At least 8 are with alliance PQR ?