[solved] – Question 77114

Four experiments are performed, each consisting of five test results. The results for each experiment are given in the following list. Write a program using a nested loop to compute and display the average of the test results for each experiment. Display the average with a precision of two digits after the decimal point.
1st experiment results: 23.2 31 16.9 27 25.4
2nd experiment results: 34.8 45.2 27.9 36.8 33.4
3rd experiment results: 19.4 16.8 10.2 20.8 18.9
4th experiment results: 36.9 39 49.2 45.1 42.7
Use the input provided in the given list and execute the program.

Expert Answer


[solved] – Question 77274

So, I have been trying to make a program that operates as a calculator taking in a expression as a string, dividing it to two arrays i.e. one for operators and one for numbers then ultimately one by one operating on them while following the BODMAS rule.

I have added in comments and simplified the code as much as I could to make it easier to understand – https://pastebin.com/repd3ErN

As for more about problem :-
E.g. If I input 8/2/2 the ideal answer should be 2 but it gives 4 which I suppose is some fault in the loop section not being able to repeat properly or possibly in the array shifting part but I couldn’t figure it out. Any help is appreciated.

Expert Answer


[solved] – Question 77292

I’m developing a matlab project to give alarm when the person in the video closed eyes and yawning. I already can process video into frames and detect eyes and mouth using viola jones , but i don’t know how the system can recognize that the eyes are closed and the mouth is yawning. Can you suggest the best algorithm and code to extract the feature of the eyes and mouth?

Expert Answer


[solved] – Question 77297

Write a program that converts dates from numerical month-day format to alphabetic month-day format. For example, input of 1/31 or 01/31 would produce January 31 as output. The dialogue with the user should be similar to that shown in Programming Project 2. You should define two exception classes, one called MonthException and another called DayException. If the user enters anything other than a legal month number (integers from 1 to 12), your program should throw and catch a MonthException. Similarly, if the user enters anything other than a valid day number (integers from 1 to either 29, 30, or 31, depending on the month), your program should throw and catch a DayException. To keep things simple, assume that February always has 28 days.

Expert Answer


[solved] – Question 773

What do the tags in HTML like this mean: <example /> I’m just a beginner with some experience from before.

Expert Answer


[solved] – Question 77305

Scenario: As an IT networking trainee for your organization, your supervisor has given you an assignment to extend the Mayberry Network to an additional space (see existing diagram). The organization has obtained a space to create a 20-station learning center and two classrooms at the existing location. Each classroom will have one computer for the instructor and a wireless access point for the students. Typically, your supervisor has used computers with an Intel Core i5 processor, 16 GB of RAM, a 500 GB hard drive and a 10/100/1000 Ethernet NIC, but wonders if a better solution is available and would like you to recommend a solution.

Develop a 1-page network diagram using Microsoft® Visio®, or one of the free network diagramming programs you researched in Week One, to create a drawing of the learning center. The diagram should include:

22 computers that you specify
Detailed specification for cabling, routing and switching, and wireless or VLAN options to connect to the existing network

Expert Answer


[solved] – Question 77317

Suppose that you are in charge of customer service for a certain business. As phone calls come in, the name of the caller is recorded and eventually a service representative returns the call and handles the request. Write a class ServiceRequests that keeps track of the names of callers. The class should have the following methods:
addName (name) – adds a name to the list of names. Throws a ServiceBackUpException if there is no free space in the list.
removeName (name) – removes a name from the list. Throws a NoServiceRequestException if the name is not in the list.
getName(i) – returns the i’th name in the list.
getNumber – returns the current number of service requests.
Write a program that uses an object of type ServiceRequests to keep track of customers that have called. It should have a loop that, in each iteration, attempts to add a name, remove a name, or print all names. Use an array of size 10 as the list of names.

Expert Answer


[solved] – Question 77354

Write a program that searches a file of numbers and displays the largest number, the smallest number and the average of all the numbers in the file. Do not assume that all the numbers in the file are in any special order. Your program should obtain the file name from the user. Use either a text file or a binary file. For the text-file version, assume one number per line. For the binary-file version, use numbers of type double that are written using writeDouble

Expert Answer


[solved] – Question 77355

Write a program that reads a file of numbers of type int and writes all the numbers to another file, but without any duplicate numbers. Assume that the numbers in the input file are already ordered from smallest to largest. After the program is run, the new file will contain all the numbers in the original file, but no number will appear more than once in the file. The numbers in the output file should also be sorted from smallest to largest. Your program should obtain both file names from the user. Use either a text file or a binary file. For the text-file version, assume one number per line. For the binary-file version, use numbers of type int that are written using writeInt.

Expert Answer


[solved] – Question 77356

Write a program that checks a text file for several formatting and punctuation matters. The program asks for the names of both an input file and an output file. It then copies all the text from the input file to the output file, but with the following two changes: (1) Any string of two or more blank characters is replaced by a single blank; (2) all sentences start with an uppercase letter. All sentences after the first one begin after either a period, a question mark, or an exclamation mark that is followed by one or more whitespace characters.

Expert Answer