
Please help me with these questions. I am having trouble understanding what to do
Programming language: (HTML, CSS, JavaScript)
Please Just draw the flowcharts and please provide preconditions and postconditions for each
solution you provide.
IMPORTANT: In Ex 13, 14, and 15, you are not allowed to use strings. Instead, you should work
with numbers and mathematical operators, such as division, remainder, etc
Ex 13) The following sequence of numbers is used in a sorting
sort (https://en.wikipedia.org/wiki/Shellsort), which balances implementation
complexity and performance. 1, 3, 7, 15, 31 …
The n-th number in the sequence is equal to (2n - 1), where n is some positive
integer. Devise an algorithm to input an integer greater than 0 as n, and output the first n
members of this sequence.
Ex 14) Devise an algorithm to input an integer greater than 1 as n, and output the first
n valuesof the Fibonacci sequence. In Fibonacci sequence, the first two values
are 0 and 1 and other values are sum of the two values preceding it. For
instance, if the input is 4, the program should print 0, 1, 1, 2. As another
example, if the input is 9, the program shouldoutput 0, 1, 1, 2, 3, 5, 8, 13, 21.
Learn more about applications of Fibonacci number in reallife here: http://
www.ijesi.org/papers/Vol(6)9/Version-3/B0609030714.pdf . There may be a
question on this in the pre-lab mini quiz!!
Ex 15) Devise an algorithm to input a positive integer, n, – and by using ‘*’ characters –
output the figure below that has n rows, with 3 ‘*’ characters in the top row
and 3*n charactersin the last row. For instance, if input is 5, the figure on the
left (and if the input is 12, the figure on the right) should be generated by the
program

Step by stepSolved in 3 steps with 1 images

- Details Use Turtle to draw trees and people. the program should have four functions.the first function accepts a turtle object and color and draw a tree in that color. the core of the tree is equilateral triangle.the second function accepts a turtle object and a color and draw a human in that color.the function uses the circle function to draw the head of the human.the third function accepts a turtle object and draw a circle.the last function which is the main function prompts the user for the number of tree human pairs he would like to draw and their colors. the program then uses the tree and human functions to draw the number of tree-human pairs. for each pair, a tree should be draw first followed by human. the ground should be drawn in green connecting all the trees and humans. out putarrow_forwardTheory of Computation homework Please help me understand how to do this with as much information as possible please. I have finals coming up and I need to understand how to properly do these questions and I really don't understand it. Thanks in advance. I will upvote if the answer returned is correct and got enough information for me to understand.arrow_forwardMorse Code (python ) Morse code maps each letter of the alphabet to a series of dashes and dots (a = .-). The list of the Morse code for all English letters (from a to z) is provided below: [".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","- -","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.-- ","--.."] Your goal here is to implement a function that takes a list of strings as its only parameter (called “words”). Each of the words can be transformed to Morse code by concatenation of a number of the above strings (without spaces). For example, the transformation of “ab” will be “.--...” (“.-” + “-...”). The word “ems” will also have the same transformation “.--...” (“.” + “--” + “...”). In this function, the goal is to return the number of the unique transformations in “words” list. Here is an example (none of this is needed to be printed, the function will only return one integer): Words = [“ab”, “a”, “ems”]Returned value: 2Explanation:…arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





