Top answers

All subjects
All levels

A common construct found in many algorithms is a loop. Using pseudocode, write a pre-condition loop to output all of the even numbers between 99 and 201.

Key points when answering questions are the marks given for it and how the question is defined. In this example we need to write a pre-condition loop to output all the

Answered by Stylianos A. Computing tutor
2854 Views

Write a function in pseudocode that determines if a given string is a palindrome

Declare and Initiate a new empty stringTraverse the given string using a loopTake each char from the given string and concatenate it to the beginning of the new stringCompare the final new string with the...

Answered by Charles V. Computing tutor
1598 Views

Given an ordered array of integers "V" and a integer "Sum", write a function that would return "true" if it finds two numbers in V that add up to Sum, and "false" otherwise.

Because there is no unique solution to the problem the goal is to think different ways to approach an issue and ultimately opt for the best one in terms of complexity. There is an example of set of answer...

Answered by Fabio D. Computing tutor
1398 Views

A binary, 8-bit floating point number 0111 0010 is said to have a 4-bit mantissa and a 4-bit exponent. What is meant by the terms 'mantissa' and 'exponent'? What is the value of this 8-bit binary floating point number?

Take an example 8-bit floating point number of 0111 0010.The 'mantissa' of this floating point number are the most significant bits -- in this case, the first 4 bits -- which represent the value a...

Answered by Haroun B. Computing tutor
8191 Views

Show how the decimal number -183 would be represented as an 8-bit two's complement arithmetic

For this question you should firstly lay out your placeholders for an 8 bit binary number, from 2^0 up to 2^7 (1,2,4,8,16,32,64,128). Then you find how 183 as a positive number would be represented in bin...

Answered by Harley M. Computing tutor
1405 Views

We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences