A3
.pdf
keyboard_arrow_up
School
Arizona State University *
*We aren’t endorsed by this school
Course
100
Subject
Computer Science
Date
Dec 6, 2023
Type
Pages
5
Uploaded by ChefClover20268
Assignment
3
-
Due
on
Feb.
24
CSE
100
-
Assighment
3
No
late
assignment
will
be
accepted.
Maximum
Points:
20
pts
Due
Date:
February
24
by
11:59PM
Topics:
Chapters
4
&
5
o
Control
Flow
--
Conditional
and
repetition
(loop)
statements
Your
programming
assignments
require
individual
work
and
effort
to
be
of
any
benefit.
Every
student
must
work
independently
on
his
or
her
assignments.
You
must work
alone
on
the
assignments
—
no
collaboration
of
any
kind
is
permitted.
You
cannot
use
Google,
StackOverflow,
Chegg
or
any
other
on-line
resources
to
look
up
for
the
solution.
Sharing
your
assignments
with
others
in
any
way
is
NOT
permitted.
Violations
of
the
University
Academic
Integrity
policy
will
not
be
ignored.
Violations
of
the
University
Academic
Integrity
policy
will
not
be
ignored.
The
university
academic
integrity
policy
is
found
at
Important
Note:
All
submitted
assignments
must
begin
with
the
descriptive
comment
block.
To
avoid
losing
trivial
points,
make
sure
this
comment
header
is
included
in
every
assignment
you
submit.
[
//
AUTHOR:
your
name
//
FILENAME:
title
of
the
source
file
I/
SPECIFICATION:
description
of
the
program
//
FOR:
CSE
100-
homework
#-
days
and
time
of
your
class
//
TIME
SPENT:
how
long
it
took
you
to
complete
the
assignment
/]
*/
Reasonably
good
amount
of
comments
should
be
added
in
your
program
so
tr
people
to
understand
it.
Please
see
the
comment
style
in
the
textbook.
Part
1:
Written
Exercises:
(4
points)
What
do
the
following loops
print?
Work
out
the
answers
by
tracing
the
code,
r
computer.
a.
int
s
=
1;
int
n;
for
(n=1;
n<=4;
n++)
{
S
+=
n;
N++;
}
cout
<<
s
<<
<<
n;
double
x
double
y
int
i=
o
do
{
}
while
(x
<
1.8);
cout
<<
"Value
of
1
is:
"
<<
1i;
string
stars
=
"¥xx¥*".
string
strips
=
"=====";
int
i
=
@;
while
(
i<
10)
{
if
(i%2
==0)
cout<<
stars
<<
endl;
else
cout
<<
strips
<<
endl;
i++;
}
d.
for
(int
j
=
0;
j
<
4;
j++)
{
for
(int
k
=
0;
k
<
4;
k++)
if
(j==k)
cout
<<
"$"
;
else
cout
<<
"*"
<<
"\n"
;
Write
a
C++
program
called
Assighment3.cpp.
There
are
two
tasks
in
this
ast
program
will
ask
for
user
to
choose
task
1
or
task
2
and
based
on
which
it
will
two
tasks.
(use
switch
for
the
2
tasks)
After
performing
the
selected
task,
your
program
should
ask
the
user
if
t|
another
execution
of
the
program.
If
the
user
chooses
to
continue,
then
y
loop
again
and
display
the
option
for
the
two
tasks,
else
it
should
termin:
Read
the
instructions
carefully
for
each
task.
Follow
the
instruction
step
by
ste
next step
if
your
program
does
not
return
the
proper
output
from
previous
step.
Task
1:
Ask
user
to
enter
two
integers,
then
compute,
and
print
the
greatest
common
¢
integers.
For
instance,
given
integers
24
and
18,
the
greatest
common
divisor
is
6,
beca
integer
that
divides
evenly
into
both
24
and
18.
We
will
denote
the
greatest
co
y
as
gcd(x,
y).
The
algorithm
is
based
on
the
clever
idea
that
the
gcd(x,
y)
=
g
The
algorithm
consists
of
a
series
of
steps
(loop
iterations)
where
the
“larger”
i
the
difference
of
the
larger
and
smaller
integer.
In
the
example
below,
we
compute
gcd(72,
54)
and
list
each
loop
iteration
comr
line.
The
whole
process
stops
when
one
of
the
integers
becomes
zero.
When
greatest
common
divisor
is
the
non-zero
integer.
gcd(72,
54)
gcd(18,
54)
gcd(18,
36)
gcd(18,
18)
gcd(72
-
54,
54)
gcd(18,
54
-
18)
gcd(18,
36
-
18)
gcd(18
-
18,
18)
gcd(18,
54)
gcd(18,
36)
gcd(18,
18)
gcd(0,
18)
=
18
To
summarize:
Create
a
loop,
and
subtract
the
smaller
integer
from
the
larger
one
(if
the
in
may
choose
either
one
as
the
“larger”)
during
each
iteration.
Replace
the
larger
integer
with
the
computed
difference.
Continue
looping
until
one
of
the
integers
becomes
zero.
Print
out
the
non-zero
integer.
Task
2-
Read
in
a
sequence
of
positive
integers
until
a
user
enters
-1
to
quit
(we
don't
|
numbers
the
user
may
enter).
The
loop
continues
to
process
input
values
until
Below
is
sample
of
the
program
execution.
Once
user
enters
-1,
then
stop
aski
integers,
and
compute
the
largest,
smallest
among
the
integers,
the
number
of
by
the
user,
the
number
of
odd
integers
entered
by
the
user,
and
the
cumulativ
entered
by
the
user.
DO
NOT
include
-1
in
the
computation
which
is
the
last
in
program.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Suppose an iteration in Elaboration is 2 weeks and you are the leader of the team. Also assume that Elaboration has 20 iterations and you are now in the 5th iteration of Elaboration. (a) What are the activities that would typically happen in this iteration? (b) What is the order of these activities? (c) Roughly how much time and on which day(s) should you spend on each of the activities?
arrow_forward
Tasks
Tasks
Correct output and file contents for sufficient funds case 1
3.33
out of
10.00
O out of 2 checks passed. Review the results below for more details.
Checks
Test Case • Incomplete
Sufficient funds case 1
Code Pattern ● Incomplete
Sufficient funds case 1 final account balance
Correct output and file contents for over limit case 1
Correct output and account balance for 300 to 500 case 1
5.00
out of
10.00
1 out of 2 checks passed. Review the results below for more details.
Checks
Test Case
Complete
300 to 500 case 1
Code Pattern
Incomplete
>
300 to 500 case 1 final account balance
>
>
arrow_forward
Create an analysis connecting one or more points in this article to at least two of the CSE activities you completed earlier this semester. “Connecting” can take a wide variety of forms. For example, you might compare the ideas in this article with the ideas in one of the earlier CSE articles we worked with. You might take a theoretical framework and/or practical case we worked with earlier and apply ideas in this article to the theory, the practice, or both.
(Please type answer no write by hand)
arrow_forward
E3
In this project, you are asked to independently research and write a short report relating to our discussion on Biofuel Energy. Your topic selection is completely of your choosing, though the report must clearly demonstrate how the subject is relevant to the overall topic of Biofuels. This course presents introductory discussions through module content and our weekly lectures, to enhance this learning it is up to the student to further explore and independently research topics of interest. The goal of this research report is to explore what interests you, and get on paper your ideas about this area of renewables technology.
The marking scheme rewards originality and uniqueness of topic selection. Students with same/similar topics will loose significant marks. Plagiarism will result in a 0 mark, and will be dealt with according to Conestoga Academic Integrity policies.
As this is a research report, it is important to develop an overview or a thesis statement about the topic you wish…
arrow_forward
Q4:- A size is the main factor for determining the cost of a project, an accurate size can be used to estimate the cost and schedule of the software project. Give your view in favor and against the statement.
arrow_forward
Computer Science
Lab 3: Goal-Question-Metric (GQM) – Part 1/2
Scenario:
Suppose you are software project manager in a reputable organization. You are managing a software development project. “Reliability” is amajor concern for that project. During the testing phase, the testing team has found a series of anomalies (bugs/errors/faults/problems). If the same situation persists for long time (before deadline) the software could not be delivered and would not be of a good quality. You then decideto fix those anomalies before the deadline.
Task:
==========================================
Draw a GQM tree that will help you to decide when to ship the software.
==========================================
Hint 1: Revisit the definition of reliability from slides of first week. Re-read GQM if required.
Hint 2: It would be easier to first write Goal, then Questions and then Metrics. Then, think, discuss (with class fellows and with the lab teacher), and update them. Then construct the GQM tree.
arrow_forward
Subject: Quality Assurance in Software Engineering
Make Testing Cases for the Project Development that you started earlier in the Object Oriented Paradigm.
Using Boundary Value Analysis, there are two valid test cases and one invalid test case.
Using Equivalence Class Testing, there are two valid test cases and one invalid test case.
Using decision box testing, several situations comprising of both valid and invalid conditions were identified.
arrow_forward
Title: Comparative Analysis of Software Testing Tools
Objective:
The objective of this assignment is to explore and research different software testing tools
available in the market, compare their features and capabilities using a provided comparison
framework, and demonstrate the installation, configuration, and basic usage of one chosen tool
in a group setting.
Task Description
1. Research: In groups of three students, conduct research on software testing tools
available in the market. Each group member will be responsible for researching and
comparing a specific number of tools based on the following distribution:
a. Compare nine testing tools.
2. Comparison Framework: Utilize the provided comparison framework (including
parameters such as testing types, features, ease of use, documentation and support,
integrations, licensing, popularity, test scripting/customization, Type of Application
and Programming Support.) to evaluate and compare the researched testing tools.
Prepare a…
arrow_forward
Select all the responses that complete the following statement correctly. There is
more than one correct response.
When documenting software requirements, the requirement engineer should
ensure that the requirement
Is uniquely identified
Introduces new features to software systems
Consists of the overall objectives for the system or product
Is expressed in a single action
arrow_forward
Subject : Software Quality Engineering
Note: Assignment must be in clear words and described full as mentioned in the assignment.
Gracias.
arrow_forward
It is of the utmost importance to provide a case study that details the ways in which the students were successful in accomplishing the objectives of their project. You have the choice between the following available alternatives: Discussions over the outcomes c. the very last phrase The introduction, or must we begin with the abstract?
arrow_forward
Computer Science
A pharmaceutical company writes contracts with its chemical suppliers that ensure each container has the proper amount of chemical within some allowable range. For example, a one liter container is permitted to contain between 997 cm3 and 1,003 cm3. Design a test suite for testing the company’s quality control using a liter container of a different amount of chemical for each different test case.
arrow_forward
i need design in draw not code design
arrow_forward
Q: It is always challenging to decide when to sop testing. Testing exit criteria can be decided either formally or informally. You are required to write a minimum of 2500 words on testing exit criteria. A plagiarism report with a plagiarism value up to 15% is required to attach with your submission.
arrow_forward
SDLC - Requirement Analysis
For your course project you will specify the requirements. In this assignment you will produce the first deliverable for your course project, the requirements specification.
The purpose of this assignment is for you to learn how to write a complete and precise requirements specification, which is the first step in developing a large software system.
The teaching assistant is your customer, and he would like you to build a text editing system with the following features:
Text Editing System
A software system is desired for creating, storing, retrieving and modifying files of text.
The text editing system will be accessible through a full-screen interface for interactive editing.
The system will support a variety of editing commands, including inserting and deleting lines, modifying text in existing lines, and searching for text.
You as the supplier are responsible for building a software system that meets the needs of your customer. However, they…
arrow_forward
Q: An accounting firm wants to modernize and outspread its current time recording structure. You have been appointed as a software project manager and have drained up a strategy for the main project activities, as follows. You are required to prepare the followings.
1: Program Evaluation Review Technique by using Activity on Arrow Method
2: Critical Path Method (Forward and Backward Pass)
Note: There should be no redundant dummy/dummies.
Activities
Preceding Activities
Duration (Days)
A
----
2
B
----
3
C
----
1
D
A, B, C
4
E
D
2
F
D
3
G
D
4
H
E, R
2
I
E, R
2
J
H, I
1
O
I
1
K
E, F, G
3
L
G, Q
2
M
G, Q
1
N
L, M
3
P
N, K, O, J
4
Q
A, B, C
4
R
A, B, C
3
arrow_forward
Create a flow chart in applying for a job
arrow_forward
Is "work position" an UNIQUE IDENTIFIER or NOT?
arrow_forward
A significant portion of the thesis is a case study that demonstrates how the students accomplished their project's objectives. Choose one of the following options: conclusions and discussion b. concluding. C.introduction; D.abstract?
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Related Questions
- Suppose an iteration in Elaboration is 2 weeks and you are the leader of the team. Also assume that Elaboration has 20 iterations and you are now in the 5th iteration of Elaboration. (a) What are the activities that would typically happen in this iteration? (b) What is the order of these activities? (c) Roughly how much time and on which day(s) should you spend on each of the activities?arrow_forwardTasks Tasks Correct output and file contents for sufficient funds case 1 3.33 out of 10.00 O out of 2 checks passed. Review the results below for more details. Checks Test Case • Incomplete Sufficient funds case 1 Code Pattern ● Incomplete Sufficient funds case 1 final account balance Correct output and file contents for over limit case 1 Correct output and account balance for 300 to 500 case 1 5.00 out of 10.00 1 out of 2 checks passed. Review the results below for more details. Checks Test Case Complete 300 to 500 case 1 Code Pattern Incomplete > 300 to 500 case 1 final account balance > >arrow_forwardCreate an analysis connecting one or more points in this article to at least two of the CSE activities you completed earlier this semester. “Connecting” can take a wide variety of forms. For example, you might compare the ideas in this article with the ideas in one of the earlier CSE articles we worked with. You might take a theoretical framework and/or practical case we worked with earlier and apply ideas in this article to the theory, the practice, or both. (Please type answer no write by hand)arrow_forward
- E3 In this project, you are asked to independently research and write a short report relating to our discussion on Biofuel Energy. Your topic selection is completely of your choosing, though the report must clearly demonstrate how the subject is relevant to the overall topic of Biofuels. This course presents introductory discussions through module content and our weekly lectures, to enhance this learning it is up to the student to further explore and independently research topics of interest. The goal of this research report is to explore what interests you, and get on paper your ideas about this area of renewables technology. The marking scheme rewards originality and uniqueness of topic selection. Students with same/similar topics will loose significant marks. Plagiarism will result in a 0 mark, and will be dealt with according to Conestoga Academic Integrity policies. As this is a research report, it is important to develop an overview or a thesis statement about the topic you wish…arrow_forwardQ4:- A size is the main factor for determining the cost of a project, an accurate size can be used to estimate the cost and schedule of the software project. Give your view in favor and against the statement.arrow_forwardComputer Science Lab 3: Goal-Question-Metric (GQM) – Part 1/2 Scenario: Suppose you are software project manager in a reputable organization. You are managing a software development project. “Reliability” is amajor concern for that project. During the testing phase, the testing team has found a series of anomalies (bugs/errors/faults/problems). If the same situation persists for long time (before deadline) the software could not be delivered and would not be of a good quality. You then decideto fix those anomalies before the deadline. Task: ========================================== Draw a GQM tree that will help you to decide when to ship the software. ========================================== Hint 1: Revisit the definition of reliability from slides of first week. Re-read GQM if required. Hint 2: It would be easier to first write Goal, then Questions and then Metrics. Then, think, discuss (with class fellows and with the lab teacher), and update them. Then construct the GQM tree.arrow_forward
- Subject: Quality Assurance in Software Engineering Make Testing Cases for the Project Development that you started earlier in the Object Oriented Paradigm. Using Boundary Value Analysis, there are two valid test cases and one invalid test case. Using Equivalence Class Testing, there are two valid test cases and one invalid test case. Using decision box testing, several situations comprising of both valid and invalid conditions were identified.arrow_forwardTitle: Comparative Analysis of Software Testing Tools Objective: The objective of this assignment is to explore and research different software testing tools available in the market, compare their features and capabilities using a provided comparison framework, and demonstrate the installation, configuration, and basic usage of one chosen tool in a group setting. Task Description 1. Research: In groups of three students, conduct research on software testing tools available in the market. Each group member will be responsible for researching and comparing a specific number of tools based on the following distribution: a. Compare nine testing tools. 2. Comparison Framework: Utilize the provided comparison framework (including parameters such as testing types, features, ease of use, documentation and support, integrations, licensing, popularity, test scripting/customization, Type of Application and Programming Support.) to evaluate and compare the researched testing tools. Prepare a…arrow_forwardSelect all the responses that complete the following statement correctly. There is more than one correct response. When documenting software requirements, the requirement engineer should ensure that the requirement Is uniquely identified Introduces new features to software systems Consists of the overall objectives for the system or product Is expressed in a single actionarrow_forward
- Subject : Software Quality Engineering Note: Assignment must be in clear words and described full as mentioned in the assignment. Gracias.arrow_forwardIt is of the utmost importance to provide a case study that details the ways in which the students were successful in accomplishing the objectives of their project. You have the choice between the following available alternatives: Discussions over the outcomes c. the very last phrase The introduction, or must we begin with the abstract?arrow_forwardComputer Science A pharmaceutical company writes contracts with its chemical suppliers that ensure each container has the proper amount of chemical within some allowable range. For example, a one liter container is permitted to contain between 997 cm3 and 1,003 cm3. Design a test suite for testing the company’s quality control using a liter container of a different amount of chemical for each different test case.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Operations Research : Applications and AlgorithmsComputer ScienceISBN:9780534380588Author:Wayne L. WinstonPublisher:Brooks ColeC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr