Q#1 Write a C program to accept the height of a person in centimeter and categorize the person according to their height.(IF-ELSE IF)
HEIGHT < 150 = Dwarf
HEIGHT = 150 = Average height.
HEIGHT > = 165 = TALL.
Q#2 Write a program to make decision for the employees ‘salary as under:
Employees’ salary HRA added to the salary DA
Less than Rs. 5000 20% of basic salary of HRA 90% of basic salary DA
Equal to Rs. 5000 or above Rs. 2000 will be added of HRA 95% of basic salary DA
Take input of the employee salary and find the gross salary of the employee based on above conditions.
NOTE: HRA is House Rent Allowance , DA is Dearness Allowance
Hollow Diamond
Given the number of rows N, write a program to print the hallow diamond pattern similar to the pattern shown below.
A
B B
C C
D D
E E
D D
C C
B B
AThe input will be a single line containing a positive integer (N).Output
The output should be (2*N - 1) rows and (2*N - 1) columns containing the alphabet characters in the hollow diamond pattern.Explanation
For example, if the given number is 5, the pattern should contain 9 rows and 9 columns as shown below.
A
B B
C C
D D
E E
D D
C C
B B
Anote:left side spaces shouldnt be..
Write a program that print the third last digit of the given number. The third last digit is being referred to the digit in the hundreds place in the given number.
For example, if the given number is 3197, the third last digit is 1.
Note 1 - The third last digit should be printed as a positive number. i.e. if the given number is -197, the third last digit is 1.
Note 2 - If the given number is a single-digit or double-digit number, then the third last digit does not exist. In such cases, the program should print -1. i.e. if the given number is 5, the third last digit should be print as -1.
Finding the total measurements in fleet from a list of 5 numbers
Mr.x was making noise in the class.so,he was guven the task to arrange the boxes in an order.Each box is placed in each room. The teacher told him to arrange in ascending order.he has to compare the size of the box and arrange them.help mr X in the logic of sorting and generate a c application for the same.
Requirements:-
1.read the number of boxes.
2.read the size of the boxes
3.display the size of boxes after sorting
create a file given "adress" with proper ios flags.. write 5 lines in the file and each line should have a student's data in the following format.
Name:adress:phoneNumber.
read the file and display all the numbers students data whose number starts with 0300.
Write a program that reads all the match outcomes and summarizes the information of all the matches.
Points are given to the teams based on the outcome of the match.
A win earns a team 3 points. A draw earns 1. A loss earns 0.
The following information is expected:
MP: Matches Played
W: Matches Won
D: Matches Drawn (Tied)
L: Matches Lost
P: Points
The team information should be displayed in descending order of points.Input
The first line contains a single integer N, denoting the total no. of matches played.
The following N lines contain outcomes of N matches.
Each of those lines has information on the teams (T1, T2) which played and the outcome (O) in format T1;T2;O.
The outcome (O) is one of 'win', 'loss', 'draw' and refers to the first team listed.
See Sample Input/Output for better understanding.
The team name may contain spaces.Output
Draw an Entity Relationship Diagram (ERD) using Unified Modelling Language (UML) notation, representing these business rules. Your design should be at the logical level – include surrogate primary key and foreign key fields and remember to remove any many-to-many relationships.
1.A launchpad hosts multiple launches over time, and each launch is hosted by exactly one launchpad. Launchpads will be created in the database even before the first launch is hosted there.
2. A launchpad is located in a country, and a country in turn is located on a continent.
3. Each launchpad has a name and a location.
4. A launch requires three things: a launchpad that hosts it, a launch vehicle (the rocket), and the payload.
5. For a launch, the date, time and name should be recorded as well as whether it is a crewed launch or not
Write a program that prompts the user to enter two integers. The program outputs how many numbers are multiples of 3 and how many numbers are multiples of 5 between the two integers (inclusive).
For term Cix^Pi, if the coefficient of the term Ci is 1, print x^Pi instead of 1x^Pi.this condititon is not giving result for this code?