Questions: 11 448

Answers by our Experts: 10 707

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

Write one dimensional array C++ program that ask to the user to enter the array size and reads n integers, finds the largest of them, and count its occurrences. Suppose that you entered 100, 200, 100, 50, 50, 50 as shown in sample input/output. The program finds that the largest is 200 and that the occurrence count for 200 is 1.

1. Write a program using string function that will accept the name of the capital as input value and it will display the corresponding country.

CAPITAL                          COUNTRY

                  Ottawa                                  Canada

                  Washington D.C.                 United States

                  Moscow                                Russia

                  Rome                                     Italy


2. Write a simple decryption program using string functions which will apply the Substitution Method. Here is the given Substitution Table.




Substitution Table:



* A



$ E



/ I



+ O



= U




Write one dimensional array C++ program that ask to the user to enter the array size

and reads n integers, finds the largest of them, and count its occurrences. Suppose


(20 points) KWIC is an acronym for ”Key Word In Context”. This is the most common format for



concordance indexes in documents. It is also the starting point for most spelling and grammar checkers



in word processors. You will use the classes in the C++ Standard Library to write a program that



creates such an index for text read from the standard input.



Begin by writing a C++ function that has a single argument: a string containing a file name and



returns a reference to a list of stings. Open the file and then read each word in the text file into a



C++ STL list of strings. Return


example of shorthand if-else statement and multi variable declaration and explain each part of your line code/snippet.


Write a c++ program to read 10 integers from the keyboard in the range 0-100 and count how many of them are larger than 50

Design a program that converts an octal number into binary numbers. Use a constructor.

Design a program that converts a decimal number into hexadecimal number without an array. Use a constructor.

Did you know that in lotteries, a 3-digit number with the same numbers in all digits like 777 will hit the jackpot in a casino? In the same manner, let's make a program that will test if a certain 3-digit number hits a jackpot or not by identifying if all the digits of a given number is the same as the second inputted number. If it is, print "Jackpot!"; else, print "Nah".









Let's try this out now!









Input









A line containing two integers separated by two input.








Enter 3-digit integer :777


Enter second digit to be searched 0-9):7







Output









A line containing a string.









Jackpot!

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS