[solved] – Question 98279

Write a loop that inputs words until the user enters “STOP.” After each input, the program should number each entry and print in this format:

#1: You entered _____
When “STOP” is entered, the total number of words entered should be printed in this format:

All done. __ words entered.

Sample Run
Please enter the next word: cat
#1: You entered cat
Please enter the next word: iguana
#2: You entered iguana
Please enter the next word: zebra
#3: You entered zebra
Please enter the next word: dolphin
#4: You entered dolphin
Please enter the next word: STOP
All done. 4 words entered.

Expert Answer


[solved] – Question 98280

Write a loop to print 10 to 90 inclusive (this means it should include both the 10 and 90), 10 per line.

Sample Run
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90

Expert Answer


[solved] – Question 98281

A user calls you and they cannot see anything on their monitor. List in order the three questions you would ask to troubleshoot:
a. Question #1:
b. Question #2:
c. Question #3:

2. While you are working with that user, you receive an email from a DIFFERENT client that all users have lost server access. What do you do?

3. How do you troubleshoot a computer that cannot connect to the internet?

Expert Answer


[solved] – Question 98282

A user calls you and they cannot see anything on their monitor. List in order the three questions you would ask to troubleshoot:
a. Question #1:
b. Question #2:
c. Question #3:

2. While you are working with that user, you receive an email from a DIFFERENT client that all users have lost server access. What do you do?

3. How do you troubleshoot a computer that cannot connect to the internet?

Expert Answer


[solved] – Question 98284

explain constructors

Expert Answer


[solved] – Question 98320

Write an algorithm to a program that reads the traveled distance and time of 10 cars, calculate their acceleration, and print the results.

Expert Answer


[solved] – Question 98325

Write a Prolog program that can answer
<S> → <A> a <B> b
<A> → <A> b | b
<B> → a <B> | a
Which of the following sentences are in the language generated by this grammar? a. baab
b. bbbab
c. bbaaaaa
d. bbaab.
Submit your code and screen shots of the results.

Expert Answer


[solved] – Question 98359

Write a program that an integer value from the user. If the value between 1 and 100 inclusive,print “OK” otherwise don’t print anything

Expert Answer


[solved] – Question 98362

An electricity board charges the following rates to domestic users to discourage large consumption of energy:
– For the first 100 units−50 P per unit – Beyond 300 units − 60 P per unit

If the total cost is more than Rs.250.00 then an additional surcharge of 15% is added on the difference. Define a class Electricity in which the function Bill computes the cost. Define a derived class More Electricity and override Bill to add the surcharge.

Expert Answer


[solved] – Question 98363

Give a function template SEARCH that can be used to search an array of elements of any type and returns the index of the element, if found. Give both the function prototype and the function definition for the template. Assume a class template Array <T> is available.

Expert Answer