[solved] – Question 92389

What does h(3231) return for the following function definition?

def h(x):
(m,a) = (1,0)
while m <= x:
(m,a) = (m*2,a+1)
return(a)

Expert Answer


[solved] – Question 92390

What is g(24) – g(23), given the definition of g below?

def g(n):
s=0
for i in range(1,n+1):
if n%i == 0:
s = s+1
return(s)

Expert Answer


[solved] – Question 92391

Consider the following function f.

def f(n):
s=0
for i in range(1,n+1):
if n%i == 0:
s = s+1
return(s%2 == 1)
The function f(n) given above returns True for a positive number n if and only if:

n is an odd number.
n is a prime number.
n is a composite number.
n is a perfect square.

Expert Answer


[solved] – Question 92392

Consider the following function f.

def f(m):
if m == 0:
return(0)
else:
return(m+f(m-1))
Which of the following is correct?

The function always terminates with f(n) = factorial of n
The function always terminates with f(n) = n(n+1)/2
The function terminates for non­negative n with f(n) = factorial of n
The function terminates for non­negative n with f(n) = n(n+1)/2

Expert Answer


[solved] – Question 92433

Develop an Institution management system (based on VB.NET platform) linked with
Microsoft Access Database as infrastructural support. The primary purpose of this application is to
automate students, modules, staff’s information and other data resources.

Expert Answer


[solved] – Question 925

design a solution in pseudocode for swallowing a pill? Translate the solution into a flowchart.Write about which tool they like the best and why? which tool do they think be the esaiest to learn?)

Expert Answer


[solved] – Question 92500

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

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

Expert Answer


[solved] – Question 92506

A large retail food chain wants to leverage any advantage it can get based on this module’s technologies, especially as they could be applied

Develop a feasibility study that examines the potential impact of this module’s technologies on a business in the industry described above. Use the resources and templates introduced on the Feasibility and SWOT Analysis page in Module 01 as a guide. Your submission should be:

grammatically correct and free from spelling errors

Expert Answer


[solved] – Question 92558

Mr. John wants to calculate the total marks and average marks for his class of 5 students
for Maths, Science and Geography (for each subject). Write down coding that will help
him to accomplish this task using while loop

Expert Answer


[solved] – Question 92569

Create two classes Date and GroceryItem with their respective fields given in

Expert Answer