Explain the essential difference between perfect competition and monopolistic competition
Write a C program which will take numbers from the keyboard until the sum of these numbers is greater than 100 . On monitor display the sum min and average of numbers
What will be the final temperature if 50g of water at exactly 0°C is added to 250g of water at 90°C?
#include <iostream>
#include <string>
using namespace std;
int main() {
string last, first, middle;
int age;
string birthday;
string gender;
string address;
cout << "Enter you lastname: ";
cin >> last;
cout << "Enter you firstname: ";
cin >> first;
cout << "Enter you middlename: ";
cin >> middle;
cout << "Enter your birthday: ";
cin >> ws;
getline(cin, birthday);
cout << "Enter your age: ";
cin >> age;
cout << "Enter your gender: ";
cin >> gender;
cout << "Enter your permanent address: ";
cin >> ws;
getline(cin, address);
cout << "Hello " << first << " " << middle << " " << last << endl;
cout << "Your birthday is " << birthday
<< " and now you are " << age << " years old." << endl;
cout << "You are " << gender << endl;
cout << "and you live at " << address << endl;
return 0;
With explanation
Write a C program which will take an integer number from keyboard and display its digits on separate lines on monintor using a loop
Exercise 1.1 : Base and ASCII representation of character representation Print the decimal, octal and hexadecimal value of all characters between the start ad stop characters entered by a user. for example, if the user enters an ’A’ and ’H’, the program should print all the characters between ’A’ and ’H’ and their respective values in the different bases (decimal, octal, and hexadecimal) as follows ASCII Representation of D is 68 in Decimal 104 in Octal and 44 in Hexadecimal ASCII Representation of E is 69 in Decimal 105 in Octal and 45 in Hexadecimal ASCII Representation of F is 70 in Decimal 106 in Octal and 46 in Hexadecimal ASCII Representation of G is 71 in Decimal 107 in Octal and 47 in Hexadecimal ASCII Representation of H is 72 in Decimal 110 in Octal and 48 in Hexadecimal ASCII Representation of I is 73 in Decimal 111 in Octal and 49 in Hexadecimal ASCII Representation of J is 74 in Decimal 112 in Octal and 4A in Hex
A horizontal "hot air blower" consists of a fan, an electrical heating element and a nozzle The power input to the fan is 50 J/s and the power input to the heating element is 1.44 kJ/s. The air enters the fan with negligible velocity at a pressure of 1 bar and a temperature of 20 C, the volumetric flow rate being 0.5 m3 /min. After passing over the heating element, the air leaves the nozzle with a velocity of 25 m/s and a pressure of 1.1 bar. Treating the complete arrangement as a steady flow system and ignoring any heat loss from the system, determine: (a) The mass flow rate of air entering the fan in kg per second (b) The kinetic energy of the air leaving the nozzle per second (c) The change in enthalpy of the air occurring per second between entering the fan and leaving the nozzle (d) The temperature of the air as it leaves the nozzle. (e) The density of the air as it leaves the nozzle (f) The flow area at the nozzle exit. Take R = 0.287 kJ/kgK and cp = 1.005 kJ/kgK
A steady stream of air enters a horizontal compressor at the rate of 0.02 kg/s. The air temperature is 10o C at entry and 300o C at exit. The velocity of the air is 30 m/s at entry and 6 m/s at exit. During its passage through the compressor, the air experiences a heat loss of 105 kJ/kg of air. Calculate: (a) The change in kinetic energy per kg of air (b) The change in enthalpy per kg of air (c) The work done per kg of air (d) The power required to drive the compressor (e) The volume of air entering the compressor per second (f) The flow area of the entry pipe if the entry pressure is 1 bar Take R = 0.287 kJ/kgK and cp = 1.005 kJ/kgK
Evaluate the truth value of the following propositions using the set (1 ,3, 5, 7)
as the domain.
1. Vx: x (x2 – 4) = 0
2. Ǝx : x + 1 > 0
3. Ǝx : x (x2
– 4) = 0
write a C program which will print following pattern on monitor
*
**
***
****
*****
******