subject

A chocolate company has a new candy bar in the shape of a prism whose base is a 1-inch equilateral triangle and whose sides are rectangles that measure 1 inch by 2 inches. These prisms will be packed in a box that has a regular hexagonal base with 2-inch edges, and rectangular sides that are 6 inches tall.
Write a pseudocode for a program that calculates the number of candy bars that fit into such a box.
Source code and comments: Write a C code that calculates the number of candy bars that fit in such a box.
Correctness: How many candy bars fit in such a box?
Teacher briefing:
Pseudocode is a simpler version of program code written in plain English before it is converted to program source code. It is a simplest way of writing a program code without following strict syntax (programming language grammar rules). Simply, Pseudocode is a set of instruction that will be translated to a different types of program code.
When you write the pseudocode, you must include the following five steps to get full point.
Where is the program’s starting point? start
Inputs: what are your inputs?
Processing: what is that process you need to follow to come up with a solution
Outputs: what do you expect as an output?
At what point the program stops? End
Example: a pseudocode for a program that adds two numbers, Num1 and Num2 to get Sum.
Start
Inputs: Num1 and Num2 Processing: Sum = Num1 + Num2 Output: Sum
End
Assessment: The teacher assesses:
Understanding and fulfilling the requirement of the assignment
The correctness of your pseudocode and the program code
Formula: find all the formulas you need from the class note under the weekly class module on D2L
Grading Criteria
Pseudo code correctness: - 4 points for following all the steps
Source code:
Submitted a C program code fil
Student Name appears at the top – as a c program cod comment
Program Description - as a c program comment
Code analysis: Code correctness
Output: correct output. No syntax error, compile, run, correct output

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:00
Marissa is a high school student who wants to be a hydroelectric production manager. she talks to her guidance counselor about her education path, and the counselor says that she needs to get an associate’s degree from a four-year college and will follow that with significant on-the-job training. what error did the counselor make while advising marissa? marissa will not have on-the-job training. marissa also needs a three-year apprenticeship. marissa only needs to attend a two-year college. marissa needs a bachelor’s degree.
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best suited for this?
Answers: 2
question
Computers and Technology, 23.06.2019 05:20
What did creator markus “notch" persson initially call his game
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
What makes myhexadecimalnumber a child of mynumber? which methods does myhexadecimalnumber inherit directly from the mynumber class? what can an instance of the mynumber class do? what can an instance of the myhexadecimalnumber class do? which methods are overridden? why are they overridden? how many examples of overloading are there? why was this done? where is the super keyword used? what is it doing? why isn’t the incoming value set immediately in the second myhexadecimalnumber constructor? how many examples can you find of an inherited method being called?
Answers: 1
You know the right answer?
A chocolate company has a new candy bar in the shape of a prism whose base is a 1-inch equilateral t...
Questions
Questions on the website: 13722363