ass 2 itp
.doc
keyboard_arrow_up
School
Northern Virginia Community College *
*We aren’t endorsed by this school
Course
100
Subject
Computer Science
Date
Nov 24, 2024
Type
doc
Pages
5
Uploaded by Robemaru4
ITP 100 - Designing and desk-checking algorithms
5
A
Defining diagram
Input
Processing
Output
Prompt for hours,
minutes1
12-hour time
hours
minutes
Get hours, minutes
Calculate 12-hour time
Print 12-hour time
B
Solution algorithm
Convert_24hour_time
1
Prompt for hours, minutes
2
Get hours, minutes
3
DOWHILE (hours, minutes) NOT = 9999
4
IF hours > 12 THEN
hours = hours – 12
time = ‘p.m.’
ELSE
time = ‘a.m.’
ENDIF
5
Display hours, ‘.’, minutes, time
6
Prompt for hours, minutes
7
Get hours, minutes
ENDDO
END
C
Desk checking
i
Input data:
First data set
Second data set
Third data set
Hours,
minutes
1020
2224
9999
ii
Expected results:
First data set
Second data set
Third data set
12-hour time
10.20a.m.
9.23p.m
iii
Desk check table:
Statement
Hours
Minutes
Time
12-hour time
DOWHIL
First time
Get
10
20
DOWHILE
True
IF
a.m.
Second time
Get
22
24
DOWHILE
True
IF
10
p.m.
Display
10.24p.m.
Get
99
99
DOWHILE
False
ITP 100 - Designing and desk-checking algorithms
6
A
Defining diagram
Input
Processing
Output
customer_no
Name
address
Postcode
Total_amt_owing
Read
Customer
Record
Calculate
Min_amt_due
Print
Min_amt_due
Customer_no
Name
address
Postcode
Total_amt_owing
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
Control System: Apply the
7 rules of Block Diagram
and Show your
COMPLETE solution in a
step by step guide.
To Do:
GI
G3
ба
G4
+
65
Hi
arrow_forward
Algorithm cost modeling- An algorithm cost estimate for software cost can be expressed as EFFORT=A*SIZEB *M
arrow_forward
i need design in draw not code design
arrow_forward
topic: Restaurant required outputs
a. design rationale
arrow_forward
Design requirements models using use case diagrams
arrow_forward
A university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help, the TA sits at the desk and takes a nap. If a student arrives and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. Using threads, implement a solution that coordinates the activities of the TA and the students.
Details for this assignment are provided below.
The Students and the TA Using threads (Section 4.4), begin by creating n students. Each will run as…
arrow_forward
A university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help, the TA sits at the desk and takes a nap. If a student arrives and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. Using threads, implement a solution that coordinates the activities of the TA and the students.
Can you please write the code for above solution in java
arrow_forward
A university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help, the TA sits at the desk and takes a nap. If a student arrives and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. Using threads, implement a solution that coordinates the activities of the TA and the students.
Can you please write the code for above solution in python
arrow_forward
A university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help, the TA sits at the desk and takes a nap. If a student arrives and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. Using threads, implement a solution that coordinates the activities of the TA and the students.
Details for this assignment are provided below.
The Students and the TA Using threads (Section 4.4), begin by creating n students. Each will run as…
arrow_forward
Event-Driven Approach
Write a program (in any programming language) to simulate Event-driven approach.
inputs: Arrival Times, and Departure times for entities.
OR
TBAI and STi for entities
Output:
Time Calculations, System Status, Instructions executed in each iteration needed statistics
arrow_forward
Using Visual C# to design a Library Managment web based System
The system should be able to do the following:1) Add/Remove/Edit book2) Search Catalog3) Register new account/ cancel membership4) Check-out book5) Reserve book6) Renew a book7) Return a book
Three main users for the system:1) Librarian2) Member3) System
arrow_forward
Software Test Technology
arrow_forward
How does the choice of data structure in an algorithm impact system performance?
arrow_forward
computer science -
How can a process data flow diagram be used to explain and evaluate a technique?
arrow_forward
Software requirement engineering
arrow_forward
the language is visual c#
please following these requirements and the question is at the bottom
PROCESSING LOGICThe processing should be defined by summarizing the control and data flow within themain program. Techniques of process specification include Program DesignLanguage, Pseudo Code and Flow Charts.The main program flow must be supplemented with the flow ofsubroutines/methods/functions that are called from the main program.Any specific algorithms to be used should be stated or referenced.
DATA (INPUT/OUTPUT)The logical and physical data structure of files should be defined in detail. Datastructure definitions must include the:a. description of each element, e.g. name, type, dimension;b. relationships between the elements, i.e. the structure and source;c. range of possible values of each element;d. initial values of each element.COMPONENTS (SOURCE CODE NAMES, CLASSES, METHODS)Describe the software components (names or classes) and purpose that will be used.Include UML class…
arrow_forward
Python programming language
please help me understand this question with as much explanation as possible please.
arrow_forward
Code Optimization Techniques
arrow_forward
Computer Science
The Idea of App : It displays the unknown tourist and archaeological places in the Kingdom Problems it solves:
1- Job opportunities for tour guides
2- Knowledge of tourist places by citizens and tourists in the Kingdom
3- Improving the conditions of tourism
4- Visitors' evaluation of the places
Give me this things
1. Give the Sequence Diagrams of your project.
Sequence Diagram Document
The Sequence Diagram Document should contain the following information:
A sequence diagram for each Use case of your system.
A brief description on the symbols used in the sequence diagram
explaining the reason for the usage of that particular symbol.
arrow_forward
List the properties of task environments
arrow_forward
Instruction: This question requires deep analysis and choose the appropriate response for the question. A detailed working out should accompany the responses.
arrow_forward
Software Architecture
arrow_forward
ASSIGNMENT # 5 (NI multisim)
Use NI multisim circuit simulation software to design a simple electronic
system. This assignment must be submitted in the form of a word/pdf
document. The documentation should describe how your circuit works (in
detail) as well as which instruments and types of simulation helped you design
the circuit. Screen shots of your circuit and graphs (scope or simulation graph)
are also necessary.
arrow_forward
In computer science, define technical flexibility.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Related Questions
- Control System: Apply the 7 rules of Block Diagram and Show your COMPLETE solution in a step by step guide. To Do: GI G3 ба G4 + 65 Hiarrow_forwardAlgorithm cost modeling- An algorithm cost estimate for software cost can be expressed as EFFORT=A*SIZEB *Marrow_forwardi need design in draw not code designarrow_forward
- topic: Restaurant required outputs a. design rationalearrow_forwardDesign requirements models using use case diagramsarrow_forwardA university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help, the TA sits at the desk and takes a nap. If a student arrives and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. Using threads, implement a solution that coordinates the activities of the TA and the students. Details for this assignment are provided below. The Students and the TA Using threads (Section 4.4), begin by creating n students. Each will run as…arrow_forward
- A university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help, the TA sits at the desk and takes a nap. If a student arrives and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. Using threads, implement a solution that coordinates the activities of the TA and the students. Can you please write the code for above solution in javaarrow_forwardA university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help, the TA sits at the desk and takes a nap. If a student arrives and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. Using threads, implement a solution that coordinates the activities of the TA and the students. Can you please write the code for above solution in pythonarrow_forwardA university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help, the TA sits at the desk and takes a nap. If a student arrives and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. Using threads, implement a solution that coordinates the activities of the TA and the students. Details for this assignment are provided below. The Students and the TA Using threads (Section 4.4), begin by creating n students. Each will run as…arrow_forward
- Event-Driven Approach Write a program (in any programming language) to simulate Event-driven approach. inputs: Arrival Times, and Departure times for entities. OR TBAI and STi for entities Output: Time Calculations, System Status, Instructions executed in each iteration needed statisticsarrow_forwardUsing Visual C# to design a Library Managment web based System The system should be able to do the following:1) Add/Remove/Edit book2) Search Catalog3) Register new account/ cancel membership4) Check-out book5) Reserve book6) Renew a book7) Return a book Three main users for the system:1) Librarian2) Member3) Systemarrow_forwardSoftware Test Technologyarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning