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

Explain at least not less than five differences between data-oriented programming and object-oriented programming. In your explanations, include concepts of data-oriented design, object-oriented design, and use at least five examples which should include source codes to support your arguments.


Write a program to count Vowels and Consonants in string.


Explain at least not less than five differences between data-oriented programming and
object-oriented programming. In your explanations, include concepts of data-oriented
design, object-oriented design, and use at least five examples which should include
source codes to support your arguments.

Explain complement arithmetic and its significance in the computation


Write a program which calculates and displays the Pay of an employee A. The employee is

paid on the basis of number of hours he/she works for. Regular duration of work is 40 hours. 

Basic pay for regular hours of work is calculated at the rate of 600Rs.per hour. Consider an 

employee has worked 45 hours. The pay-rate for each overtime hour is 300Rs. Per hour. Use 

variables with proper naming conventions. 


Day Name - 2

Given the weekday of the first day of the month, determine the day of the week of the given date in that month.

Input

The first line is a string

D. The second line is an integer N.Output

The output should be a string.

Explanation

In the given example,

D = Monday. As the 1st of the day of the month is a Monday, it means the 7th and 14th of the month will be Sundays (A week has 7 days). So the 16th day (N = 16) of the month will be a Tuesday.So, the output should be

Tuesday.


Denominations - 3

Write a program to find the minimum number of notes required for the amount

M. Available note denominations are 500, 50, 10, 1.Input

The first line is a single integer

M.Output

Print

M in denominaitons.Explanation

Given

M = 1543, it can be written as1543 = 3*(500) + 3*(50) + 0*(10) + 1*(3)Then the output should be

500: 3 50: 0 10: 4 1: 3


Denominations - 4

Write a program to find the minimum number of notes required for the amount

M. Available note denominations are 2000, 500, 200, 50, 20, 5, 2, 1.Input

The first line is a single integer

M.Output

Print

M in denominations.Explanation

Given

M = 2257 Then 2257 can be written as

2000 * 1 + 500 * 0 + 200 * 1 + 50 * 1 + 20 * 0 + 5 * 1 + 2 * 1 + 1 * 0So the output should be

2000:1 500:0 200:1 50:1 20:0 5:1 2:1 1:0.


Temperature Conversion

You are given the temperature T of an object in one of Celsius, Fahrenheit, and Kelvin scales.

Write a program to print T in all scales viz Celsius, Fahrenheit, and Kelvin.

Formula to convert from Fahrenheit F to Celsius C is C = (F - 32) * 5 / 9.

Formula to convert from Kelvin K to Celsius C is C = K - 273.

Here "C", "F", "K" represent that the temperature scale is in Celsius, Fahrenheit and Kelvin scales respectively.

The input contains the temperature (a number) and the unit of the temperature scale (C, F, K) without any space.

The output contains temperature in Celsius, Fahrenheit and Kelvin scales in each line in the format similar to input and the value of the temperature is rounded to 2 decimal places.


Input


The first line of the input contain a temperature Value in one of Celsius, Fahrenheit, and Kelvin scales.



For example, if the given temperature Value is 25C then Celsius value is 25.0C, Fahrenheit value is 77.0F, and Kelvin value is 298.0K.


The possible denominations of currency notes are 100, 50, 20 and 10. The amount A to be withdrawn is given as input.

Write a program to break the amount into minimum number of bank notes.

Input


The first line of input is an integer A.

Output

The output should be a string representing number of 100, 50, 20, 10 notes possible.


Explanation

In the given example amount 370, it can be written as


370 = 3*(100) + 1*(50) + 1*(20) + 0*(10)


Then the output should be 


100 Notes: 3

50 Notes: 1

20 Notes: 1

10 Notes: 0


LATEST TUTORIALS
APPROVED BY CLIENTS