6. Find out the number of palindrome strings in a given string - Link
5. Find the minimum positive integer such that it is divisible by A and the sum of its digits is equal to B - Link
Write a function that replaces the elements of an integer sequence whose value a is the value of b. Write a main program that uses that function and displays the resulting sequence of numbers on the screen.
Write a C++ program to implement a three-player dice game with the following rules:
1. Begin with Player A and roll two dice: dice d1 and dice d2.
2. If the sum of the two dice is odd, then accumulate it as the score of Player A. If even, then the score is 0.
3. Then roll d1 and d2 for Player B.
4. If the sum of the two dice is odd, then accumulate it as the score of Player B. If even, then the score is 0.
5. Then roll d1 and d2 for Player C.
6. If the sum of the two dice is odd, then accumulate it as the score of Player C. If even, then the score is 0.
7. Repeat steps 1 to 6 for n rounds, where n is a positive integer provided as input by the user.
Problem Statement: Implementing Polymorphism using abstract class and interface
Define Vehicle interface,AbstractManufacturer abstract class,Car class,Bike class and VehicleService Class as given below:
Interface Vehicle
create abstract method. +maxSpeed(String type) : int
Abstract class AbstractManufacturer
Declare private properties.
name : String
modelName : String
type : String
Provide getter for all properties
Declare abstract method +getManufacturerInformation() : String
Car Class
Make the class as subclass of Vehicle and AbstractManufacturer.
Define parameterized constructor passing three parameters to initialize name,modelName and type.
Override the abstract methods and follow the instructions given as comments for the business logic.
Bike Class
Make the class as subclass of Vehicle and AbstractManufacturer.
Define parameterized constructor passing three parameters to initialize name,modelName and type.
What is the relationship between a process and thread in an Operating System? (Opinion)
Create a form, using HTML, for admission to a University. The form should ask for the following information: Your email id as user name (it should be of the type xxxx@abc.in) A pin chosen by you (should have a minimum size of 4 decimal digits) Name of the Student City in which student is residing (You should create a drop-down list of about 4 to 6 cities for selection of City, default value for City should be Mumbai) Select from the options Yes/No for the question Mathematics at 10+2? The form should include a SUBMIT button.
What is a truncation error? How can Taylor's series be used to determine truncation error? Explain with the help of an example.
Give an example of how does a process and thread work with each other on a Computer.
Illustrate the complete procedure to map a domain name to an IP address through an example