EBK ENHANCED DISCOVERING COMPUTERS & MI
1st Edition
ISBN: 8220100606922
Author: Vermaat
Publisher: YUZU
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 8, Problem 6CT
Explanation of Solution
Creative commons:
- Creative commons is a nonprofit organization that gives various licensing options for the owners to specify the granting options for others when they use their digital content.
- The author gives right to share and use the created work to others...
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
EX:[AE00]=fa50h number of ones =1111 1010 0101 0000
Physical address=4AE00h=4000h*10h+AE00h
Mov ax,4000
Mov ds,ax; DS=4000h
mov ds,4000 X
Mov ax,[AE00] ; ax=[ae00]=FA50h
Mov cx,10; 16 bit in decimal
Mov bl,0
*: Ror ax,1
Jnc **
Inc bl
**:Dec cx
Jnz *
;LSB⇒CF
Cf=1
; it jump when CF=0, will not jump when CF=1
HW1: rewrite the above example use another way
EX2: Write a piece of assembly code that can count the number of
ones in word stored at 4AE00h
Write a program that simulates a Magic 8 Ball, which is a fortune-telling toy that displays a random response to a yes or no question. In the student sample programs for this book, you will find a text file named 8_ball_responses.txt. The file contains 12 responses, such as “I don’t think so”, “Yes, of course!”, “I’m not sure”, and so forth. The program should read the responses from the file into a list. It should prompt the user to ask a question, then display one of the responses, randomly selected from the list. The program should repeat until the user is ready to quit.
Contents of 8_ball_responses.txt:
Yes, of course! Without a doubt, yes. You can count on it. For sure! Ask me later. I'm not sure. I can't tell you right now. I'll tell you after my nap. No way! I don't think so. Without a doubt, no. The answer is clearly NO.
(You can access the Computer Science Portal at www.pearsonhighered.com/gaddis.)
Chapter 8 Solutions
EBK ENHANCED DISCOVERING COMPUTERS & MI
Ch. 8 - Prob. 1SGCh. 8 - Prob. 2SGCh. 8 - Prob. 3SGCh. 8 - Prob. 4SGCh. 8 - Prob. 5SGCh. 8 - Prob. 6SGCh. 8 - Prob. 7SGCh. 8 - Prob. 8SGCh. 8 - Prob. 9SGCh. 8 - Prob. 10SG
Ch. 8 - Prob. 11SGCh. 8 - Prob. 12SGCh. 8 - Prob. 13SGCh. 8 - Prob. 14SGCh. 8 - Prob. 15SGCh. 8 - Prob. 16SGCh. 8 - Prob. 17SGCh. 8 - Prob. 18SGCh. 8 - Prob. 19SGCh. 8 - Prob. 20SGCh. 8 - Prob. 21SGCh. 8 - Prob. 22SGCh. 8 - Prob. 23SGCh. 8 - Prob. 24SGCh. 8 - Prob. 25SGCh. 8 - Prob. 26SGCh. 8 - Prob. 27SGCh. 8 - Prob. 28SGCh. 8 - Prob. 29SGCh. 8 - Prob. 30SGCh. 8 - Prob. 31SGCh. 8 - Prob. 32SGCh. 8 - Prob. 33SGCh. 8 - Prob. 34SGCh. 8 - Prob. 35SGCh. 8 - Prob. 36SGCh. 8 - Prob. 37SGCh. 8 - Prob. 38SGCh. 8 - Prob. 39SGCh. 8 - Prob. 40SGCh. 8 - Prob. 41SGCh. 8 - Prob. 42SGCh. 8 - Prob. 43SGCh. 8 - Prob. 44SGCh. 8 - Prob. 45SGCh. 8 - Prob. 46SGCh. 8 - Prob. 47SGCh. 8 - Prob. 1TFCh. 8 - Prob. 2TFCh. 8 - Prob. 3TFCh. 8 - Prob. 4TFCh. 8 - Prob. 5TFCh. 8 - Prob. 6TFCh. 8 - Prob. 7TFCh. 8 - Prob. 8TFCh. 8 - Prob. 9TFCh. 8 - Prob. 10TFCh. 8 - Prob. 11TFCh. 8 - Prob. 12TFCh. 8 - Prob. 1MCCh. 8 - Prob. 2MCCh. 8 - Prob. 3MCCh. 8 - Prob. 4MCCh. 8 - Prob. 5MCCh. 8 - Prob. 6MCCh. 8 - Prob. 7MCCh. 8 - Prob. 8MCCh. 8 - Prob. 1MCh. 8 - Prob. 2MCh. 8 - Prob. 3MCh. 8 - Prob. 4MCh. 8 - Prob. 5MCh. 8 - Prob. 6MCh. 8 - Prob. 7MCh. 8 - Prob. 8MCh. 8 - Prob. 9MCh. 8 - Prob. 10MCh. 8 - Prob. 2CTCh. 8 - Prob. 3CTCh. 8 - Prob. 4CTCh. 8 - Prob. 5CTCh. 8 - Prob. 6CTCh. 8 - Prob. 7CTCh. 8 - Prob. 8CTCh. 8 - Prob. 9CTCh. 8 - Prob. 10CTCh. 8 - Prob. 11CTCh. 8 - Prob. 12CTCh. 8 - Prob. 13CTCh. 8 - Prob. 14CTCh. 8 - Prob. 15CTCh. 8 - Prob. 16CTCh. 8 - Prob. 17CTCh. 8 - Prob. 18CTCh. 8 - Prob. 19CTCh. 8 - Prob. 20CTCh. 8 - Prob. 21CTCh. 8 - Prob. 22CTCh. 8 - Prob. 23CTCh. 8 - Prob. 24CTCh. 8 - Prob. 25CTCh. 8 - Prob. 26CTCh. 8 - Prob. 27CTCh. 8 - Prob. 1PSCh. 8 - Prob. 2PSCh. 8 - Prob. 3PSCh. 8 - Prob. 4PSCh. 8 - Prob. 5PSCh. 8 - Prob. 8PSCh. 8 - Prob. 9PSCh. 8 - Prob. 10PSCh. 8 - Prob. 11PSCh. 8 - Prob. 1.1ECh. 8 - Prob. 1.2ECh. 8 - Prob. 1.3ECh. 8 - Prob. 2.1ECh. 8 - Prob. 2.2ECh. 8 - Prob. 2.3ECh. 8 - Prob. 3.1ECh. 8 - Prob. 3.2ECh. 8 - Prob. 3.3ECh. 8 - Prob. 4.1ECh. 8 - Prob. 4.2ECh. 8 - Prob. 4.3ECh. 8 - Prob. 2IRCh. 8 - Prob. 3IR
Knowledge Booster
Similar questions
- I need help creating the network diagram and then revising it for the modified activity times.arrow_forwardActivity No. Activity Time (weeks) Immediate Predecessors 1 Requirements collection 3 2 Requirements structuring 4 1 3 Process analysis 3 2 4 Data analysis 3 2 5 Logical design 50 3,4 6 Physical design 5 5 7 Implementation 6 6 c. Using the information from part b, prepare a network diagram. Identify the critical path.arrow_forwardGiven the following Extended-BNF grammar of the basic mathematical expressions: Show the derivation steps for the expression: ( 2 + 3 ) * 6 – 20 / ( 3 + 1 ) Draw the parsing tree of this expression. SEE IMAGEarrow_forward
- Whentheuserenters!!,themostrecentcommandinthehistoryisexecuted.In the example above, if the user entered the command: Osh> !! The ‘ls -l’ command should be executed and echoed on user’s screen. The command should also be placed in the history buffer as the next command. Whentheuserentersasingle!followedbyanintegerN,theNthcommandin the history is executed. In the example above, if the user entered the command: Osh> ! 3 The ‘ps’ command should be executed and echoed on the user’s screen. The command should also be placed in the history buffer as the next command. Error handling: The program should also manage basic error handling. For example, if there are no commands in the history, entering !! should result in a message “No commands in history.” Also, if there is no command corresponding to the number entered with the single !, the program should output "No such command in history."arrow_forwardActivity No. Activity Time (weeks) Immediate Predecessors 1 Requirements collection 3 2 Requirements structuring 4 1 3 Process analysis 3 2 4 Data analysis 3 2 5 Logical design 50 3,4 6 Physical design 5 5 7 Implementation 6 6 c. Using the information from part b, prepare a network diagram. Identify the critical path.arrow_forward2. UNIX Shell and History Feature [20 points] This question consists of designing a C program to serve as a shell interface that accepts user commands and then executes each command in a separate process. A shell interface gives the user a prompt, after which the next command is entered. The example below illustrates the prompt osh> and the user's next command: cat prog.c. The UNIX/Linux cat command displays the contents of the file prog.c on the terminal using the UNIX/Linux cat command and your program needs to do the same. osh> cat prog.c The above can be achieved by running your shell interface as a parent process. Every time a command is entered, you create a child process by using fork(), which then executes the user's command using one of the system calls in the exec() family (as described in Chapter 3). A C program that provides the general operations of a command-line shell can be seen below. #include #include #define MAX LINE 80 /* The maximum length command */ { int…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Enhanced Discovering Computers 2017 (Shelly Cashm...Computer ScienceISBN:9781305657458Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. CampbellPublisher:Cengage LearningMicrosoft Windows 10 Comprehensive 2019Computer ScienceISBN:9780357392607Author:FREUNDPublisher:Cengage
Enhanced Discovering Computers 2017 (Shelly Cashm...
Computer Science
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Cengage Learning
Microsoft Windows 10 Comprehensive 2019
Computer Science
ISBN:9780357392607
Author:FREUND
Publisher:Cengage