Write a function which prints the fine for breaking traffic rules. The function should take two parameters: Speed and Helmet.
Input Format
helmet = 0 (worn)
helmet = 1 (not worn)
speed = 60 km/hr
Constraints
Speed limit = 60 km/hr
Rules:
1. If speed > speed limit and helmet is worn, then fine = Rs 1000;
2. If speed <= speed limit and helmet is not worn, then fine = Rs 2000;
3. If speed > speed limit and helmet is not worn, then fine = Rs 5000;
4. If speed <= speed limit and helmet is worn, then print 'No Fine'
Output Format
Fine: Rs 1000
(or)
No Fine
Cisplatin or Platinol has a chemical PtCl2(NH3)2 that is used in the treatment of certain cancers. Calculate (a) the amount (mol) of compound in 285.3 g of cisplatin
Create a java program that will count all words in a sentence. The program should have a minimum of two classes.
a) The first class should be named class1, this class will have the following:
The main method (starting point)
The object of class2
Should also call the get method count_words(String str).
b) The second class should be named class2, this class should have the following:
A constructor
A get method named count_words(String str)
c) Construct a flowchart for class1 and class2 both combined
Segmentation, Targeting for Ola Scooter considering the profile of the Indian consumer.
An e-commerce company plans to give their customers a special discount for the Christmas They are planning to offer a flat discount. The discount value is calculated as the sum of all the prime digits in the total bill amount.
Write an algorithm to find the discount value for the given total bill amount.
assess and evaluate human resource management system of hotels
Is there a difference when the needle or metal clip is placed on the surface of distilled water and on the surface distilled water with dilute amounts of liquid detergent? Explain your observations in terms of the strength of IMFA present in each condition.
Let p, q, and r be the propositions
p: You get an A on the final exam.
q: You do every exercise in this book.
r: You get an A in this class.
Write these propositions using p, q, and r and logical connectives (including negations).
1. You get an A on the final, you do every exercise in this book, and you get an A in this class.
2. To get an A in this class, it is necessary for you to get an A on the final.
3. You get an A on the final, but you don’t do every exercise in this book; nevertheless, you get an A in this class.
4. Getting an A on the final and doing every exercise in this book is sufficient for getting an A in this class.
assess and evaluate human resource management system of any organization
Opportunities and challenges in a diverse work place with practical examples