in the example the first test case number is 9966777819 and this number should be divided into 4 3 3 format
the first divided part should be read a double nine double six. As there are two consecutive 9's,it should be read as double nine.similarly there are two consecutive 6's it should be read as double six
in the second divided part there are three consecutive 7's it should be read as triple seven.
In the third divided part there are no consecutive digits each digit should be read separately.
sample input1
9966777819
sample output1
double nine double six triple seven eight one nine
sample input 2
7299613014
sample output 2
seven two double nine six one three zero one four
Cost of cementing
Walkway
Our goal is to find out the cost of cementing given
the other parameters about the park.
The length and breadth of the rectangular park are
in a ratio x:y and the perimeter of the park is
given as p meter. The walk way of wm wide is built
along the border inside the park. We have to find
the total cost of cementing that path at the rate of
Rs. r per m²
Create a small Arduino project in tinkerCAD.
The project must make use of at least the following:
● Any 1 of the following analog sensors: TMP36, Flex sensor, Photoresistor, or Force Sensor.
AND
● Any 2 of the following Digital input devices: Pushbutton, Slide switch, or DIP switch.
AND
● Any 1 of the following Digital output devices: LED, or Piezo Buzzer.
AND
● Any 1 of the following PWM output devices: DC Motor, Hobby gearmotor, RGB LED.
AND
● A 16x2 LCD display
In you program you must make use of the following:
● analogRead(), digitalRead(),analogWrite(), digitalWrite()
● if statements and if else statements, (i.e. testing the value of a sensor)
● at least 1 while loop
● at least 1 for loop
● an array
● variables
● The LCD display
● arithmetic ( + , - , * , / , % ) and compound operators (+=,-=,*=,/=,%=)
● Comparison and Logical operators
Which one is not part of IoT Architecture?
Consider the following relation with set of functional dependencies R(ABCDEF) ABC->D, ABD->E, CD->F, CDF->B, BF->D
a) Identify the candidate key(s) in the relation (with proper steps followed).
b) Identify which normal form this relation is in and reason for the answer.
Hallindrome
Given a string S. Let us divide 5 into two equal parts s1 and s2.s is called a halindrome if at least any one of the following conditions satisfy:
1.Sis a palindrome and length of S>=2
2.S1 is a halindrome.
3S2 a halindrome.
In the case of an odd length string the middle element is not present in both S1 and S2. If index of middle element is m. then, S1= S [0,m-1] and S2=S[m+1|S|-1].
Input Specification
input 1: Number of strings 1<=input1<=100.
imput2:An array of size input1 containing strings 2<=length of each string<=100.
output specification:
for each test case, return the number of strings which are halindromes.
EX:input1:1
input2:{harshk}
output 0
explanation:1.string S is not forming a palindrome.
2.string S1=har,which is not a halindrome.
3.String S2=shk,which is not a halindrome.
as none of the conditions are true,hence output to be returned is 0.
please give java coding solution for this question
Write a VB program to calculate the wages based on different rates (Normal hours and Overtime rates).
Write a FUNCTION to calculate the wages based on the following condition:
-Normal Hours: RM 10 per hours
-Overtime: RM 15 per hours
NOTE: The function should pass in a value of hours as Double, and a value of type as String. The function should return the calculated amount of wages and return as a Double.
*set the Enabled properties of the Total Wages Text Box to False
You are given a string containing ten digits, write a program to print these digits in a human readable format.
There are some rules to how to read a number,
• use the following prefixes for consecutive digits
# Single numbers just read them seperately
# if two successive numbers use double
# if three successive numbers use triple
# if four successive numbers use quadruple
Windows
The Information Systems Department is selling T-shirts. Create an attractive user interface that allows users to select sizes (S, M, L, XL) and quantity. Choose the most appropriate controls. Remember, the fewer keystrokes required of the user the better. Display the selections madeby the user with the Process menu option. Include an option to exit the application. Include two more sizes, XSmall and XXLarge. Add statements that process the order by calculating the total cost. Each shirt is $16 except the XSmall and XXLarge; their speciality prices are $20 each Display the total cost of then selection. Include a help option that displays instructions. You can enhance your solution by allowing users to purchase different sizes on the same order.
Write a menu driven console application for Maintaining Train Details in Southern Railway using the concept of interfaces.
a. Create an interface called IOperations and declare necessary functions such as addTrain(), editTrain(), etc.
b. Create a class called Railways which implements this interface.
c. Create a Test class which contains the main function.
d. Include functionalities such as
i. Add Train
ii. Edit Train
iii. Display All Train Details
iv. Search Train by Name
v. Search Train by
i. Add Train
ii. Edit Train
iii. Display All Train Details
iv. Search Train by Name
v. Search Train by Source & Destination
vi. Search Train by Train Number
vii. Display all the Express Train