by steps one and three in the first two pictures, how would I complete this assi
ID: 3717105 • Letter: B
Question
by steps one and three in the first two pictures, how would I complete this assignment only using pseudocode, and showing variables. and doing with no code. only pseudocode.
Step #3 -write the code The words written inside the symbols in step #2 are the words (codes) used in step 3 a) For a simple Sequence structure, the alignments are all on the left margin Start fgrade0.00 test1-0.O test2 0.0 test3 0.0 Read studname, smj fgrade- test1+ test2+ test3 = 0.0 Write studname, smj, fgrade Stop b) For a Selection Structure, indenting occurs on the true and false side g) Step #4 Test and Debug Since this is a false language, then the student stimulate how the variables looks in memory 1) Use a table to design step #4 fgrade 0.00 studname smj test1 test2 test3 0.00 0.00 0.00 75.00 80.00 90.00 Ted Doe Computer Sci 0.00 75.00 + 80.00 +90.00 = 245 2) Used step t2 to walk through your logic 3) Compare step 2 to the written codes in step #3. These and other syntax will continue to be used throughout the course There is no set way to solving a problemExplanation / Answer
Pseudocode:
step1:start
step2:how many stars you wanna rate?
step3:input counter
step4:if(counter > 0)
step4.1:repeat counter times
step4.2:enter rating
step4.3:if(rating > 0)
step4.4.1:ratingsum+=rating
step4.5:else exit
step4.6: go to step 4.1
step4.7:else exit
step5: stop
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.