Ramesh and suresh started doing fun activity in which ramesh writes down the word and tell suresh the number of letters in his word. Then suresh tries to guess the word that ramesh had written. After suresh guesses the word they both compare the words to determine the minimum number of letters suresh has to replace his guessed word becomes an anagram of ramesh word.
Note: suresh and ramesh words are same length
Input line contains two space seperated strings
Output must be in single line representing minimum number of letters to be replaced
Input: honey moon
Output: 1
Input: ccbp pbcc
Output: 0
Need correct output sir
Write a C++program to accept two integers and check if it is greater than or equal to 100. If not, return a message "The number is less than 100". Specify the input of first and second of the possible output.
Rahul is playing a guessing number game with computer. The objective of the game is to guess the number that computer thinks. A guess is correct when the guess exactly matches with computer number. After each guess by rahul, the computer will give a score comprising of black and white coins.
Black coin== guessed digit is present in the computer number and in same position
White coin== guessed digit is present but in another position..
Your task is to find out the no.of black and no.of.white coins.
Input: first line contains two space seperated integers denoting rahuls guess and computer number.
Input1: 1423 1234
Output: black: 1 white: 3
Input2: 1423 5678
Output: black:0 white: 0
Need correct output sir
Write a class named CharArray that has the following field:
1. myCharArray. The myCharArray field is a character array.
In addition, the class should have the following constructor and other methods.
• Constructor: The constructor should accept the char array as arguments
• swapFirstAndLast: The swapFirstAndLast method should swap the first element with the
last element in the array.
• DisplayArray: The DisplayArray method should display the characters in the array.
• DispalyString: The DispalyString method should display the char elements as a string word
in the array.
1
ICE1 WEDE6021
Create a website that registers people for voting.
1. Must only register users over 18 year olds.
2. The user must enter their the following details
Name
Surname
ID Number
Address.
T
3. Use an HTML form and display within the PHP script.
Create a VB program that will compute for the sum, difference, product, quotient and remainder of quotient of two numbers.
sample output:
Math Operators:
1.Multiplication
2. Addition
3. Division
4. Subtraction
5. Modulus Division
Select Operator: 1
Enter First Number: 3
Enter Second Number: 4
Product: 12
Using Object-Oriented Programming, develop a programme that implements a part of a Bank management system. The developed programme should consider the following:
1- An object named Customer for which you need to identify 3 attributes of the object and at least one method.
2- An object named Account includes the account number (int) and the balance (double).
3- A subclass of Account named Saving includes the account number (int), the balance (double), and the type (string)
4- A subclass of Account named fixed (fixed deposit) includes the account number (int), the balance (double) and the interest rate (double).
Rob is fond of collecting coins but unfortunately,sometimes he has to sell a coin to get other coins.he puts all his coins one over the other in a column.
(0,i):Add coin with value i to the collection.
(1,0):sell a coin.
Selling a coin:For selling a coin ,he picks up the top coin in the coloumn if he constraint A is satisfied.Constraint A:Rob can only sell the coin if the coin collection value is more than Y.
Upon removal ,the coin collection value goes to the previous value.Initially,with 0 coins ,coin collection value is 0.
Adding a Coin:on adding a coin of value i to the collection the coin collection value increments via the following prodcedure.
If the coin collection had>=X value then current total value is X+i else X+2*i.
Rob needs to find and return the final value of coin collection after Q operations.
Note:Initially,the value X is 0 and not X.
Ex1:
i/p1:10(deciding increment)
i/p2:0(selling coins)
i/p3:1(no of operations)
i/p4:{{0,5}}
o/p:10
Considering the Abstraction Principle, perform the following:
a. [2 Marks] Define an abstract class by the name of Shape, the class consists of an attribute (D) which refers to the dimension and a member function Area().
b. [2 Marks] Make the function Area a pure virtual function
c. [2 Marks] Define a class Circle which is s subclass of the superclass Shape and define the Area inside the class.
d. [1 Marks] Define a second class Square which is a subclass of Shape and define the area inside it.