Mr. Rajesh and his friends plans for trip for Deepavali Holidays, as there are multiple opinions, they have some choices, depending on the choice they plan to go to that particular place. The choices are given below
Choice
Place
Kerala
2
Hyderabad Film City
Kodachadri
3
Otherwise
Following are the requirements
Read the choice
1. 2. Compare the choice
number
with the given
3. Display the Place name appropriately for the choice
selected
1. My question) There is a button, a textbox and a datagridview on the form.
When the button is clicked, the id, name, surname and salary of the personnel belonging to the company written in the textbox1
It is requested to transfer the information to datagridview1.
Using object-oriented programming techniques the required class (with methods) and from that class
I need to encode the object to be created.
As my second question) I need to send a message on the screen of the total salary of all the personnel transferred to the datagirdview1 of the question I wrote above, I would be glad if you could help me. Thank you from now
Design a structure for the Invoice Detail and find total cost of purchase for a product.The structure includes members as Productname ,Quantity,Price.
Runtime Input :
Product name : Juice
Quantity : 2
Price : 15
Output :
Product name : Juice
Quantity : 2
Price : 15
Total cost : 30
Write a C program to print the string and its length using functions.
Runtime Input :
hello
Output :
Length = 5
H
E
L
L
O
Given a matrix of order M*N and a value K, write a program to rotate each ring of the matrix clockwise by K elements. If in any ring has less than or equal to K elements, then don’t rotate that ring.Input
For example, if the given M and N are 4 and 4 respectively. If the matrix elements are
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
If the given K is 3. Rotate each ring of the matrix by 3 elements.
In the above matrix, the elements (1, 2, 3, 4, 8, 12, 16, 15, 14, 13, 9, 5) is a ring, similarly, the elements (6, 7, 11, 10) will make a ring.
Therefore, by rotating each ring in clockwise direction by 3 elements will give (13, 9, 5, 1, 2, 3, 4, 8, 12, 16, 15, 14) and (10, 6, 7, 11). So the output should be
13 9 5 1
14 7 11 2
15 6 10 3
16 12 8 4
Given a sentence as input, find all the unique combinations of two words and print the word combinations that are not adjacent in the original sentence in lexicographical order.
For example, if the given sentence is "python is a programming language", the possible unique combination of two are (a, is), (a, language), (a, programming), (a, python), (is, language), (is, programming), (is, python), (language, programming), (language, python), (programming, python). Out of these the combinations, (a, is), (a, programming), (is, python), (language, programming) are not valid as they contain words that are adjacent in the given sentence. So the output should be
a language
a python
is language
is programming
language python
programming python
Professor Student data base system project
write a c++ program to make cricket game in which we have 2 teams and each team should hy 11 players.boling and bating full detail and we should print it on console no need for gui.
Implement a square class in C++. Each object of the class will represent a square
storing it’s side as float. Include a default constructor. Write a function area() to
calculate area of square and perimeter() to calculate the perimeter of square.
Due to upcoming end of financial year, you are being called in to write a program which will read in an input file called IncomeRec.txt, which contains a list of Annual (Gross) income records of employees in a firm, and produce various reports as outlined.
1. You must read this input file (IncomeRec.txt) and store the records of gross incomes into appropriate arrays.
2. Your program should then be able to process the following commands. i.e. program should provide user with the following menu.
▪ 1. Print the entire list.
▪ 2. Print list sorted by Gross income.
▪ 3. Print list of employees which match a given lastname initial
▪ 4. Calculate: a) the Tax corresponding to the provided gross income of each employee using Table 1; and b) the Net Income and c) Print in a file called IncomeTax.txt where the tax and Net income are displayed in separate columns.
[NB. The tax is calculated according to the Tax Calculation Table provided and the Net Income = Gross income – Tax]
▪ 5. Exit program