1. Draw a flowchart for a program that will compute the average
of 10 exam scores entered by the user. List the variables needed
for this program.
2. Modify previous problem to allow the user to input the total
number of exam scores. List the necessary variables and draw the
flowchart.
3. Draw a flowchart for a program that will obtain 10 exam scores
from the user and determine whether the score is passing (a score
of 60 or above) or failing. Your algorithm should count the number
of passing and failing scores. Output the average of the scores,
the number of failing scores, and the number of passing
scores.
4. Programming overview a) Name three high-level languages and
describe their application areas. b) What processes are needed to
transform a C program to a machine language program that is ready
for execution? Show in a diagram with descriptions.
5. Match the following terms and definitions.
ANSI C output devices compilation machine language central
processing unit (CPU) debugging arithmetic logic unit (ALU)
a) The brain of the computer b) Devices used to show the results of
programs c) The process that converts a C program into machine
language d) The part of a computer that performs the mathematical
computations e) The process of removing errors from a program f)
The specific definition of the C language approved by the American
National Standards Institute g) The representation of a program in
binary
Solution
4)
a)
a) Name three high-level languages and describe their application areas
C
C++
Java
---
b)
Step 1
Compiler
Converting source code to assembly code
Step 2
Assembler
Converting assembly code to object code
Step 3
Linker
Converting object code to exe code
Step 4
Loader
Storing exe code in memory
Diagram
5)
--
Answered two questions, really sorry for that
please post remaining question separately, love to answer
all the best
Get Answers For Free
Most questions answered within 1 hours.