Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write code using the range function to add up the series 20, 30, 40, ... 90 and print the resulting sum each step along the way


Read the following scenario, then answer the question that follows:

“To help students determine whether they qualify for a supplementary exam, students can enter their final module mark and exam mark on a webpage. If the student obtained more than 30% for their exam mark and a final mark of less than 50%, the student will be informed that he/she qualifies for a supplementary exam.”

Question:
Write the pseudocode that will prompt a user for the required information and accurately represent the logic contained in the scenario provided at the beginning of the question.
Q.1.1 In order to understand the problem a program should solve, one should:
(1) Consider the needs of the users;
(2) Consider the output of the system;
(3) Understand who all the users are;
(4) Document all findings and information discovered;
(5) All of the options provided.

Q.1.2 The statement, set result = 2 * 3, is an example of an _________ statement.
(1) Input;
(2) Output;
(3) Assignment;
(4) Startup;
(5) None of the options provided.

Q.1.3 Programming modules can also be referred to as:
(1) Subroutines;
(2) Procedures;
(3) Functions;
(4) Methods;
(5) All of the options provided.

Q.1.4 The variable ‘HourlyWage’ was declared using ____________ casing
(1) Pascal;
(2) Hungarian;
(3) Kebob;
(4) Camel;
(5) Snake.
Consider the following snippets of code. Then, identify and describe the sorting algorithm used.

num scores[5] = 90,85,65,95,75

sort()
x = 1
while x < SIZE
temp = scores[x]
y = x – 1
while y >= 0 AND scores[y]>temp
scores[y+1] = scores[y]
y = y – 1
endwhile
scores[y+1] = temp
x = x + 1
endwhile return
Write the pseudocode for a program that will continue prompting a user for a value whilst the total of all values remain less than 100. The program must keep track of the number of times the loop executes and display the number of times the loop executed once the loop had finished executing.
Using examples, explain the difference between a definite loop and an indefinite loop.

Create a Hierarchy chart that will accurately represent the information in the scenario below:

 

“A main programme calls three modules: getDetails(), calculateFees(), and register(). The calculateFees() module calls a module called courses() and a module called courseCost(). The register() module calls a module called printProof().” 


Write a python program to create the dataframe to perform binary functions on it


Write a menudriven program to extract data from dataframe.
a)Row Wise b)Row Wise Series Object(iterrows()).
Write a program that reeds from a CSV file(marks.CSV stored in desired location)in a dataframe then add a column total storing total marks in there subjects and another column for storing average marks.Print the dataframe after adding these columns.
LATEST TUTORIALS
APPROVED BY CLIENTS