Create an application that will take 5 employees data and print the data.take a skill name and print all the employee who have skill
Exam scores
Captain Holt has corrected the exam papers of detectives and noted the scores of the written and physical tests. The results were posted in two lists: one with the scores of the written test, the other with the scores of the physical test in order of the badge numbers. The office needs a list containing the detectives scores on both tests in order of their badge numbers.
Input:
First line of input contains the score of students in chemistry exam seperated by comma.
Second line of the input contains the score of students in English exam seperated by comma.
Output:
Every line of output contains the score obtained by each student in English and Chemistry exams separated by space.
Sample input:
65
75
Sample output:
75 65
Sample input:
85,88,78
85,86,84
Sample output:
85 85
86 88
84 78
Unique Matrix
You are given a N*N matrix. write a program to check if the matrix is unique or not. A unique Matrix is a matrix if every row and column of the matrix contains all the integers from 1 to N
Input:
The first line contains an integer N.
The next N lines contains N space separated values of the matrix.
Output:
The output contains a single line and should be True if the matrix is unique matrix and False otherwise.
Sample input:
4
1 2 3 4
2 3 4 1
3 4 1 2
4 1 2 3
Sample output:
True
Maximum number of books:
There are multiple (T) book stores in the area.Each shopkeeper has a list of B integers that represents the cost of each book.You have different pocket money (P) for each bookstore.Write a program to calculate the maximum number of books you can buy in each store with the corresponding pocket money
Input:
The first line of input is a positive integer T that represents the number of shops.The following lines represent the details of the T shops. Each set of two consecutive lines represent the details of a shop. The first line of each set contains two space separated integers B and P. The second line of each set contains B space separated integers.
Output:
The output should be T lines. Each line contains an integer that represents the maximum number of books that can be bought in each shop.
A Game of Patterns
A teacher asked Ramesh to draw a Quadrilateral of a specific pattern with only symbol. The length and height should be L. Here L is the number of characters in every line. The height of the
*
quadrilateral is the number of lines it contains.
The slope of the quadrilateral taken as S represents the the number of extra space characters in a line when compared to its next line.
The last line will not have any space characters before the
character.
Let the following array as matrix; write the MIPS mars code to transpose it. with output
class_marks: .word 10,11,12,13
.word 20,21,22,23
.word 30,31,32,33
.word 40,41,42,43
Let the following array as matrix; write the MIPS code to transpose it.
class_marks: .word 10,11,12,13
.word 20,21,22,23
.word 30,31,32,33
.word 40,41,42,43
Create a class called Account with member variable balance. Create three methods one for Depositing Money, the second for withdrawing money and the third for checking balance. In addition to the three classes, add a constructor to initialize the balance variable. Have the initial balance of the account set to 712,983.88. Have a user deposit any amount and prompt them if they wish to withdraw any amount. If not, print out the balance of the account.
Using struct
B) Program Sample Run
Enter the data about the fruit.
Name: Apple
Color: green
Fat: 10
Sugar: 50
Carbohydrate: 100
Here are the details about the fruit.
The fruit's name is Apple.
Its color is green.
It contains 10 amount of fat, 50 amount of sugar, and 100 amount of carbohydrate.
Using Struct
1. Program Sample Run 1
For first point:
Enter the value of x coordinate: 0
Enter the value of y coordinate: 3
For second point:
Enter the value of x coordinate: 4
Enter the value of y coordinate: 0
The distance between two given points is 5.
2. Program Sample Run 2
For first point:
Enter the value of x coordinate: -2.1
Enter the value of y coordinate: 3
For second point:
Enter the value of x coordinate: -9.12
Enter the value of y coordinate: 5