Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Names and nicknames:

There are N persons in a society .You know the names and nicknames of all of the N people in society. Your task is to determine if there any two persons who have the same name and nickname

input:

The first line of input contains integer N

Each of next N lines contains two space separated strings denoting the name and nickname of person

output:

print YES if there is a pair of people with the same name and nickname otherwise print NO

i/p:

2

3

stephen steve

sato hanako

stephen steve

2

conan kun

subaro kun

o/p:

yes

no

i/P:

2

3

thomas cat

jerry mouse

johny bravo

3

nicolas tesla

saito san

nicolas tesla

o/p:

no

yes


Using function arrange small letters before capital letters using cstring

Write a program in which there is five questions having 4 choices (a,b,c,d). You have to write question in (.txt) file and use fstream and use file handling concept in a [void question ()] function. Open the .txt file inside a function given above.









15 Marksp









Thanks.

Write a program that uses a for statement to find the smallest of several integers.


Assume that the first value read specifies the number of values remaining and that the


first number is not one of the integers to compare.



Create a python program that adds, subtract, multiply and divide two numbers. Use conditional keywords, iteration keywords, import keywords, function and structure keywords, and returning keywords on your program. Watch the attached video on this activity for your basis and guidelines.



Write a program that accepts 10 integer values from iser in an array and passes array and its size to a function . The function makes the odd values stored in the array 2- times the updated array is displayed by main().

1.input a positive integer.This will serve as the starting point of the loop.


2.Using a while()loop, print out all the odd numbers starting from the inputted integer,until 0.The outputted numbers must be separated by line.


3.Also remember that since the loop goes to descending order,a decrement variable shall be created and decreased per iteration for the loop to terminate when it reaches 0

  1. Input two integers in one line.
  2. Print the two integers in one line, and separate them with a space.
  3. Print a string message "Equal" on a new line, if both inputted integers are equal.


Write a program that first reads in the name of an input file and then reads the input file using the file.readlines() method. The input file contains an unsorted list of number of seasons followed by the corresponding TV show. Your program should put the contents of the input file into a dictionary where the number of seasons are the keys, and a list of TV shows are the values (since multiple shows could have the same number of seasons).

Sort the dictionary by key (least to greatest) and output the results to a file named output_keys.txt. Separate multiple TV shows associated with the same key with a semicolon (;), ordering by appearance in the input file. Next, sort the dictionary by values (alphabetical order), and output the results to a file named output_titles.txt.


Write a program for sorting an array. Declare a single dimensional array and accept 5 integer values from the user. Then sort the input in ascending order and display the output.


In C# Windows form




LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS