Statistics
0 Problems
50 Solutions
RANK
N/A
of 302,380
REPUTATION
N/A
CONTRIBUTIONS
0 Questions
0 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
0
RANK
of 21,759
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Discussions
AVERAGE NO. OF LIKES
Feeds
Solved
Character variable: Compass direction
* Assign compassDirection with sensorReading's value. Both are character variables.
11 years ago
Solved
Double summation
Write two nested for loops to calculate the following double summation: <<https://drive.google.com/uc?id=0B74PAULDIwwsWFhlNTV...
11 years ago
Solved
For loops: Odds sum
Write a for loop that assigns summedValue with the sum of all odd values from 1 to userNum. Assume userNume is always greater th...
11 years ago
Solved
For loops: Savings account
The for loop calculates the amount of money in a savings account after numberYears given an initial balace of savingsBalance and...
11 years ago
Solved
While loop: Summation
Write a while loop that assigns summedValue with the sum of all values from 1 to userNum. Assume userNum is always greater than ...
11 years ago
Solved
Insect population
An insect population doubles every generation. * Write a while loop that iterates numGeneration times. * Write a statment ...
11 years ago
Solved
While loop with branching
Write a while loop that adjusts userValue while userValue is less than 0 or greater than 80. If userValue is greater than 80, th...
11 years ago
Solved
While loop with multiple conditions
Write a while loop that multiplies userValue by 2 while userValue is not 10 and while userValue is less than 25.
11 years ago
Solved
Logical operators: Flipping bits
The xor operator will toggle the bit if the bit is xored with 1. Ex: 1 XOR 0 = 1, 1 XOR 1 = 0. The xor operator will retain th...
11 years ago
Solved
Logical operators and arrays: 3-input and truth table
Given 3 inputs (inputA, inputB, inputC), assign threeInputAnd with the truth table outcomes for a 3 variable logical-and operati...
11 years ago
Solved
Logical variables: Running late?
* Assign onTime with true if noTraffic is true and gasEmpty is false.
11 years ago
Solved
Genetic markers test
Assign testResult with 1 if either geneticMarkerA is 1 or geneticMarkerB is 1. If geneticMarkerA and geneticMarkerB are both 1, ...
11 years ago
Solved
Food safety
Assign safeTemperature with 1 if foodTemperature is less than 40 or greater than 165.
11 years ago
Solved
Check bounds
Assign inRange with 1 if userWeight is greater than 100 and less than or equal to 200.
11 years ago
Solved
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
11 years ago
Solved
Compute change
A cashier distributes change using the maximum number of five dollar bills, followed by one dollar bills. Given amountToChange, ...
11 years ago
Solved
Currency conversion
A currency exchange booth offers an exchange rate of 119.771 Japanese yen for 1 US dollar. The currency exchange booth rounds do...
11 years ago
Solved
Luggage delivery
Assign deliveryCost with the cost to deliver a piece of baggage weighing baggageWeight. The service charges twenty dollars for ...
11 years ago
Solved
Nth root.
* Assign outValues with the nth root of the inValues, the root is specified by rootValue
11 years ago
Solved
Tree Height
Assign treeHeight with the tree height given the shadow length and angle of elevation. Simple geometry can compute the heigh...
11 years ago
Solved
Coordinate geometry
Assign pointsDistance with the distance between point (x1, y1) and point (x2, y2). The distance is calculated by: Distance =...
11 years ago
Solved
Population growth
Assign finalPopulation with the population size given an initial population, population growth rate, and number of years. The fi...
11 years ago
Solved
Constructing column arrays
* Construct a column array elevatorStops with values 2, 4, 5, 9, and 10
11 years ago
Solved
Linear-spaced points array
* Construct a row array plotPoints with 5 values that are spaced linearly from lowValue to highValue. Ex: If lowValue is 1 and ...
11 years ago
Solved
Indexing the array: Shift right with variable sized arrays
* Write a statement to shift the array contents 1 position to the left. * Assign the rightmost element with -1. Ex: [12, 85...
11 years ago
Solved
Indexing the last element: Print queue
* Delete the last element of row array printQueue.
11 years ago
Solved
Adding an element: Ticker tape
* Add stockPrice to the beginning of row array tickerTape
11 years ago
