The Saffir-Simpson Hurricane Scale classifies hurricanes into five categories numbered 1 to 5.
Write a program that outputs a hurricane’s category based on the user’s input of the wind speed.
You may assume that wind speeds will be provided as integer values.
The categories are as follows:
252 km/h or higher-- 5
209 – 251 km/h --4
178 – 208 km/h --3
154 – 177 km/h-- 2
119 – 153 km/h --1
Any storm with winds of less than 119 km/h is not a hurricane
Write a program that asks a user for an IQ score. If the score is a number less than 0 or greater
than 200, issue an error message. Otherwise issue a message according to the following values:
Under 100 Below average
100 Average
Above 100 Above average
Write a program to find the sum of array elements
Write a python program that takes a string as an input from the user and then modifies the string in such a way that the string always starts with an uppercase letter and the case of each subsequent letter is the opposite of the previous letter (uppercase character followed by a lowercase character followed by an uppercase character and so on). Finally the modified string is printed to show the user.
You are given an array of N non-negative integers: A1, A2, ..., AN. An alternating subsequence is a subsequence in which the indices of any two consecutive elements differ by exactly two in the original array. That is, if Ai1, Ai2, ..., Aik is some subsequence, then for it to be an alternating subsequence, (i2 - i1 = 2), (i3 - i2 = 2), and so on should all hold true. Among all alternating subsequences, find the one which has maximum sum of elements, and output that sum.
Consider you are working as a developer in a software house “XYZ” and you have to develop a program that will detect the Real time objects by using the Camera. As a developer, you have to decide which programming paradigm would be feasible to design develop this system.
Identify the programming paradigm from the list given below and justify your answer with proper reasons.
Object Oriented Programming Paradigm
Procedural Programming Paradigm
1. How is the transfer of frames in ethernet similar to the transfer of frames in a packet-switching network? How is it different?
2. what are functions of session layer and presentation layer in the HTTP protocol.
3. Can a connection-oriented, reliable message transfer service be provided across a connectionless packet network? Explain.
4. Does Ethernet provide connection-oriented or connectionless service? Justify your answer.
Modify the previous program to use the Do-While Loop instead of the While Loop. This version of the program will ask the user if they wish to enter another name and accept a Y or N answer. Remove the "exit" requirement from before.
Output:
Enter the full name of a person that can serve as a reference: [user types: Bob Smith]
Bob Smith is reference #1
Would you like to enter another name (Y or N)? [user types: y]
Enter the full name of a person that can serve as a reference: [user types: Maria Garcia]
Maria Garcia is reference #2
Would you like to enter another name (Y or N)? [user types: N]
You have a total of 2 references
Write a program which takes a number n as input and prints YAYY if the sum of all digits except the rightmost digit is equal to the rightmost digit., otherwise print OOPS
Create a class called OneDimArray then create a private generic array of type Object inside class, initialize array using constructor then implement the following methods inside class, then create a driver class called OneDimArrayTest for testing your program. Test your program with integers.
· + Boolean addItem(item)
· + Boolean addItemAt(index, item)
· + Object removeItemAt(index)
· + Object removeItem(index, item)
· + Object deleteItemIfOdd(item)
· + Boolean isEmpty()
· + Boolean isFull()
· + Object getItemAt(index)
· + Boolean setItem(index, item)
· + void swapItems(index1, index2)