Something like the following. Also you need to give what language you are using. Anyways, you should be able to convert this to your language of choice.
<script type="text/javascript">
function checkGeneration() {
var gen = ["Baby Boomer ","Generation X","Xennials","Generation Y"];
var reversestr = "";
var getyear = window.prompt("Enter a 3 digit number: ");
if (parseInt(getyear) <= 1964) {
alert(gen[0]);
} else if(parseInt(getyear) <= 1979) {
alert(gen[1]);
} else if(parseInt(getyear) <= 1985) {
alert(gen[2]);
} else if(parseInt(getyear) <= 1995) {
alert(gen[3]);
}
}
checkGeneration();
</script>
Answer:
1st gen: Vacuum Tubes(1940–1956)
2nd gen: Transistors(1956–1963)
3rd gen: Integrated Circuits: (1964–1971)
4th gen: Microprocessors (1971–PRESENT)
5th gen: Artificial Intelligence (present)
Explanation:
private static String removeFromString(String old, String frag)
{
int i = old.indexOf(frag);
while (i> -1) {
String rest = old.substring(i + frag.length());
System.out.println("rest = " + rest);
old = old.substring(0, i);
System.out.println("rest = " + old);
old = old + rest;
System.out.println("rest = " + old);
i = old.indexOf(frag);
System.out.println("i = "+ i);
}
return old;
}
Here the index of first occurrence is obtained outside the “while loop” and if this loop runs until index value is >-1. It extracts the rest of the characters other than “frag” from the index and all the characters for which the given set of characters are removed.
The way that real-time text or RTT on her phone can help her is that;
C: On phone calls, it will convert speech into text
<h3>Speech to Text</h3>
We are told that Deirdre has a hearing disability. This means that she has difficulty in hearing words clearly but can read.
Thus, from her friends advice about real time text or RTT, it will aid her because whenever someone calls her on the phone, it can convert the content of the call speech into text.
The missing options are;
A. It will make her phone vibrate to notify her when she gets a phone call
B. It will make her phone vibrate to notify her when she gets a text message.
C. On phone calls, it will convert speech into text. D. While text messaging, it will convert text into speech
Read more on speech to text at; brainly.com/question/2375490
Answer:
Explanation:
Hadoop clusters can boost the processing speed of many big data analytics jobs, given their ability to break down large computational tasks into smaller tasks that can be run in a parallel, distributed fashion.