Questions:
1.What is the importance of knowing the IP addressing?
2.Cite a situation in which you can apply the knowledge about IP addressing.
Program that receives the current temperature as input. If the temperature is 80 degrees or more, output a message telling the user to go swimming, otherwise, if the temperature is 50 degrees or more, output a message to go running, otherwise stay inside.
#include <iostream.h>
void main()
{
double temperature;
cout<<”Input Temperature :”;
cin>>temperature;
if (temperature<=80)
{cout<<”go swimming”;}
else if (temperature<=50)
{cout<<”go running”;}
else
{cout<<”stay inside”;}
}
The system accepts maximum 2 input of answers for a displayed mathematical question. “WELL DONE” message is displayed for the correct answer and “TRY AGAIN” for the wrong answer. “SORRY. TIME’S UP” message is displayed if both answers are incorrect.
There are stations having the maximum frequency deviation of 75 kHz, and the maximum audio frequency for the modulation is 15 kHz , find its deviation ratio.
Write a program that uses nested for loops to print the following pattern to the console
*******
******
*****
****
***
**
*
Write a program to find the number and sum of all integers between 100 and 200 which are divisible by 9. Only a single for loop is required for this exercise.
Some counting
Use your newly acquired knowledge of the for loop to complete the following tasks. Print all values to console in each case.
• Write a program that counts up from 0 to 50 in increments of 1.
• Write a program that counts down from 50 to 0 in decrements of 1.
• Write a program that counts up from 30 to 50 in increments of 1.
• Write a program that counts down from 50 to 10 in decrements of 2.
• Write a program that counts up from 100 to 200 in increments of 5.
create a table and paste the screenshots of the execution done of the given questions:
Write q query to find all the employees whose salary is between 50000 to 100000.
Write a query to find the names of employees that begin with S.
Write a query to retrieve the EmpFname and EmpLname in a single column as FullName. The first name and the last name must be separated with space.
Write a query to fetch all employees who also hold the managerial position using inner join.
Write a query to fetch the department-wise count of employees sorted by departments count in ascending order.
Write a program to design a class
representing complex numbers and having functionality of performing addition
and multiplication of two complex numbers using operator overloading and friend function.
Write a program to design a class
representing complex numbers and having functionality of performing addition
and multiplication of two complex numbers using operator overloading.