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, 22.06.2019 11:30
Awell-diversified portfolio needs about 20-25 stocks from different categories is this true or false?
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
Researchers measured the data speeds for a particular smartphone carrier at 50 airports. the highest speed measured was 78.1 mbps. the complete list of 50 data speeds has a mean of x overbarequals16.11 mbps and a standard deviation of sequals18.65 mbps. a. what is the difference between carrier's highest data speed and the mean of all 50 data speeds? b. how many standard deviations is that [the difference found in part (a)]? c. convert the carrier's highest data speed to a z score. d. if we consider data speeds that convert to z scores between minus2 and 2 to be neither significantly low nor significantly high, is the carrier's highest data speed significant? a. the difference is nothing mbps.
Answers: 3
question
Computers and Technology, 24.06.2019 07:00
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
The program below has been generalized to read a user's input value for hourlywage. run the program. notice the user's input value of 10 is used. modify that input value, and run again. generalize the program to get user input values for workhoursperweek and workweeksperyear (change those variables' initializations to 0). run the program. monthsperyear will never change, so define that variable as final. use the standard for naming final variables. ex: final int max_length
Answers: 2
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
question
Mathematics, 21.09.2019 16:30
question
Mathematics, 21.09.2019 16:50
Questions on the website: 13722360