Question
C Programming Assignment Outcome: The student will demonstrate that he or she has the ability to research, find, and learn new concepts. This assignment requires
C Programming
Assignment Outcome:
The student will demonstrate that he or she has the ability to research, find, and learn
new concepts.
This assignment requires a
COP1000
student
to learn t
hings that were
not taught in the class. As you prog
ress in your career, you will be faced with new
challenges. You will be required to learn and find new and better ways to design a
program
Program Specifications:
Write a C program that does not use a
do while, while or for loop
. The program will
enter any number between 2 and INT_MAX from the user. The program will output if
the number entered was PRIME or NOT PRIME.
Example Run:
Please enter a number between 2
and 2147483647
: 7
The number 7 is a prime number.
Example Run
Please enter a number between 2 and 2147483647: 2
The number 2 is a prime number.
Please enter a number between 2 and 2147483647: 77
The number 77 is NOT a prime number.
RULES:
You are not permitted to use the following commands:
while
do while
for
goto (by the way, you are NEVER ALLOWED TO USE goto)
There is another way to do a loop in C, Java, C++ and other programs
HINT:
You will probably need to teach yourself something that was
not
taught in
C
OP1000.
Try Google, YouTube, TheNewBoston,
CodeAca
demy, or if you have any,
your friends.
Submission Requirements
(for all assignments in this course all
semester)
You will create a design tool (pseudocode, flow chart, IPO chart, structure, or a blend
of any of these tools. You are to save the design tool as a separate document. You
are not permitted to place the design tool as a co
mment in your code or Canvas.
You are to create a well written C program that follows the design tool. The program
will be well documente
d. The program will contain a comment header which will
include your name, date written, and purpose of the program.
In this assignment a
nd all future assignments, you are to name the assignment project
folder:
lastName
-
assignmentName within the project folder you will name your source
documents lastName
-
assignmentName.c and lastName
-
assignmentName.h. Within the
src folder you will also place your design tool.
Name the design tool: lastName
-
DesignTool.(something)
.
Once you
are finished placing the design tool within the well written c program, you
are to, using Window Compress Program, compress the entire project folder. Finally,
you are to attach the zipped document to Canvas.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started