Mindmap
firstAssignment
Inhalt der Mindmap
firstAssignment
First Create 6 random numbers using the function randnit
- Now we will perform different operations
- Find the largest number
- We will initially set randomNumberA to a new variable largestNumber
- Then we will compare the largestNumber to randomNumber B
- If randomNumberB is bigger then the largestNumber then we will assign largestNumber to be randomNumberB
- Next we continue this iteration till we compare the variable largestNumber to randomNumberE
- Thus we determine the largestNumber
- Next we continue this iteration till we compare the variable largestNumber to randomNumberE
- If randomNumberB is bigger then the largestNumber then we will assign largestNumber to be randomNumberB
- Then we will compare the largestNumber to randomNumber B
- We will initially set randomNumberA to a new variable largestNumber
- This algorithm is similar to the one for the largestNumber.
- The only difference is that we have a new variable smallestNumber and compare each of the randomNumber's to this variable and determine the smallest number
- Given inputValue, find the number of times this number exists in our data of Random Variables
- Define a variable called count. Then check in our list hotaw many times each Random Variable is there in our data base
- Then print the count for each of the Random Variables
- Define a variable called count. Then check in our list hotaw many times each Random Variable is there in our data base
- Calculate the smallest odd number in our data base
- A number is odd if remainder after dividing by 2 is 1.
- For each Random Number determine if it is odd using this rule. For the 1st number which is odd, assign the smallest odd number to this Random Variable
- Use this algorithm for each of the odd numbers and thus determine the smallest odd number
- For each Random Number determine if it is odd using this rule. For the 1st number which is odd, assign the smallest odd number to this Random Variable
- A number is odd if remainder after dividing by 2 is 1.
- Last we determine the Average of all the Random Variables
- Find the largest number
- Now we will perform different operations
Informationen
- Beschreibung
- Computer Science Mindmap am firstAssignment, erstellt von Amar Shah am 24/01/2021.
- Erstellt von
- Amar Shah · Jan 2021
- Aktualisiert
- 25 Jan 2021
- Aufrufe
- 0
- Bewertung