[solved] – Question 92217

Q2) The monthly sunshine record for a holiday resort follows.

month jan feb march april may june july aug sep oct nov dec

hours of sunshine 100 90 120 150 210 250 300 310 280 230 160 120

Write a program to do the following.
(a) Store the names of the months and the hours of sunshine in two one-dimensional arrays.
(b) Calculate and display the average number of hours of sunshine over the year.
(c) Calculate and display the names of the months with the highest and lowest number of hours of sunshine.

Expert Answer


[solved] – Question 92252

If we want to develop an app for bio institution, can we use desktop application, mobile application or both? Justify your answer with reasons.

Expert Answer


[solved] – Question 92287

In a batch operating system, three jobs JOB1, JOB2, JOB3 are submitted for ex-
ecution. Each job involves an I/O activity, a CPU time, and another I/O activity.
JOB1 requires a total of 21 ms, with 3 ms CPU time. JOB2 requires 29 ms total
time with 5 ms CPU time. JOB3 requires 14 ms total time with 4 ms CPU time.
3.1 What will be the CPU utilisation for uniprogramming? Write down all interme- (3)
diate steps.
3.2 What will be the CPU utilisation for multiprogramming? Write down all inter- (2)
mediate steps
Task 4 . . . . . . . . . . . . . . . . . .
5.1 Explain brie
y how and why the need for larger and larger operating systems (1)
stimulated the rise of software engineering as a new sub-discipline of computer
science.
5.2 Explain brie
y what is software engineering (in contrast to mere programming). (1)
5.3 Recapitulate brie
y the the most important points of problem-discussion at the (1)
famous 1968 NATO Science Conference in Garmisch/Bavaria.

Expert Answer


[solved] – Question 92303

What command would you give to list all lines of userNotes.txt that contain sentence endings with two or more blanks before the start of the next sentence?

Expert Answer


[solved] – Question 92304

2. Write a program that will let the user to enter employee name, Basic Pay, Number of hours work and number of overtime. Then the program will automatically compute the overtime pay, gross pay, total deduction and net pay.
Project Name and Source Name: SURNAME_PrelimLabExam2
Consider the following condition:
•SSS deduction is100 and pag-ibig deduction is 50
•Hourly Rate is equivalent to basic pay divided by 104
•Overtime Rate is equivalent to hourly rate multiply by 1.25
•Overtime Pay equivalent to overtime rate multiply by number of hours of overtime
•Total Deduction is equivalent to the sum of SSS, pag-ibig, and tax
•Gross Pay is equivalent to hourly rate multiply by hours’ work plus Overtime Pay
•Tax is equivalent to10% of Gross Pay
•Net Pay is equivalent to gross pay less the total deduction.

Expert Answer


[solved] – Question 92341

Artificial intelligence (AI) is a sub field of computer science that emphasize on the invention of intelligent machines. Accelerating trends in artificial intelligence (AI) point to the significant enhancements in every field of life. Do you think that this will impact our daily lives in near future or there is still a decade to see its major impacts? Justify your answer by providing solid reasons and examples.

Expert Answer


[solved] – Question 92343

Creating your first application on VB coding

Expert Answer


[solved] – Question 92368

def mystery(l):
l = l + l
return()

mylist = [22,34,57]
mystery(mylist)

value of mylist after execution of function

Expert Answer


[solved] – Question 92372

In competitive diving, each diver makes dives of varying degrees of difficulty. Nine judges score each dive from 0 through 10 in steps of 0.5. The difficulty is a floating-point value between 1.0 and 3.0 that represents how complex the dive is to perform. The total score is obtained by discarding the lowest and highest of the judges’ scores, adding the remaining scores, and then multiplying that total by the degree of difficulty. Write a program to score each of the dives, using the following input and output specifications, and determine the winner of the competition.
Input:
Create the following input file m6dive.txt:
7
Anna2.08.08.58.58.59.09.09.09.59.5
Sarah1.67.07.58.08.08.08.58.58.59.0
Deborah2.39.09.09.510.010.09.59.59.59.5
Kathryn2.49.09.09.09.59.59.59.08.08.5
Martha2.79.09.09.59.59.08.58.58.58.5
Elizabeth2.98.08.07.58.58.58.08.07.58.5
Tina2.58.58.58.58.58.58.58.58.58.5

Expert Answer


[solved] – Question 92380

Write the algorithm and create a flowchart to ask the user to input the distance
from their hostel to the academic block in km(s) and calculate the average
number of walking steps (1 km = approx. 1300 steps) and display it to the user.

Expert Answer