Digital Fundamentals (11th Edition)
11th Edition
ISBN: 9780132737968
Author: Thomas L. Floyd
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 3, Problem 8ST
Program Plan Intro
To choose the correct answer
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Write a c++ program that will count from 1 to 10 by 1. The default output should be: 1, 2, 3, 4, 5, 6 , 7, 8, 9, 10
There should be only a newline after the last number. Each number except the last should be followed by a comma and a space.
To make your program more functional, you should parse command line arguments and change behavior based on their values.
Argument
Parameter
Action
-f, --first
yes, an integer
Change place you start counting
-l, --last
yes, an integer
Change place you end counting
-s, --skip
optional, an integer, 1 if not specified
Change the amount you add to the counter each iteration
-h, —help
none
Print a help message including these instructions.
-j, --joke
none
Tell a number based joke.
So, if your program is called counter, counter -f 10 --last 4 --skip 2 should produce 10, 8, 6, 4
Please use the last supplied argument. If your code is called counter, counter -f 4 -f 5 -f 6 should count from 6.
You should…
show work
show work on paper
Chapter 3 Solutions
Digital Fundamentals (11th Edition)
Ch. 3.1 - When a 1 is on the input of an inverter, what is...Ch. 3.1 - An active-HIGH pulse (HIGH level when asserted,...Ch. 3.2 - When is the output of an AND gate HIGH?Ch. 3.2 - When is the output of an AND gate LOW?Ch. 3.2 - Describe the truth table for a 5-input AND gate.Ch. 3.3 - When is the output of an OR gate HIGH?Ch. 3.3 - When is the output of an OR gate LOW?Ch. 3.3 - Describe the truth table for a 3-input OR gate.Ch. 3.4 - When is the output of a NAND gate LOW?Ch. 3.4 - When is the output of a NAND gate HIGH?
Ch. 3.4 - Describe the functional differences between a NAND...Ch. 3.4 - Write the output expression for a NAND gate with...Ch. 3.5 - When is the output of a NOR gate HIGH?Ch. 3.5 - When is the output of a NOR gate LOW?Ch. 3.5 - Describe the functional difference between a NOR...Ch. 3.5 - Write the output expression for a 3-input NOR with...Ch. 3.6 - When is the output of an XOR gate HIGH?Ch. 3.6 - When is the output of an XNOR gate HIGH?Ch. 3.6 - How can you use an XOR gate to detect when two...Ch. 3.7 - List six process technologies used for...Ch. 3.7 - What does the term volatile mean in relation to...Ch. 3.7 - What are two design entry methods for programming...Ch. 3.7 - Prob. 4CUCh. 3.7 - Write a VHDL description of a 3-input NOR gate,Ch. 3.7 - Write a VHDL description of an XOR gate.Ch. 3.8 - How is fixed-function logic different than PLD...Ch. 3.8 - Prob. 2CUCh. 3.8 - Identify the following IC logic designators: LS HC...Ch. 3.8 - Prob. 4CUCh. 3.8 - What does the term hex inverter mean? What does...Ch. 3.8 - A positive pulse is applied to an inverter input....Ch. 3.8 - A certain gate has a propagation delay time of 6...Ch. 3.8 - Prob. 8CUCh. 3.8 - Prob. 9CUCh. 3.8 - Prob. 10CUCh. 3.9 - Prob. 1CUCh. 3.9 - If two different input waveforms are applied to a...Ch. 3.9 - Prob. 3CUCh. 3 - An inverter performs the NOR operation.Ch. 3 - An AND gate can have only two inputsCh. 3 - If any input to an OR is 1, the output is 1.Ch. 3 - If all inputs to an AND gate are 1, the output is...Ch. 3 - A NAND gate has an output that is opposite the...Ch. 3 - A NOR gate can be considered as an OR gate...Ch. 3 - The output of an exclusive-OR is 0 if the inputs...Ch. 3 - Prob. 8TFQCh. 3 - Once programmed, PLD logic can be changed.Ch. 3 - Fan-out is the number of similar gates that a...Ch. 3 - When the input to an inverter is HIGH (1), the...Ch. 3 - An inverter performs an operation known as...Ch. 3 - The output of an AND gate with inputs A, B, and C...Ch. 3 - The output of an OR gate with inputs A, B, and C...Ch. 3 - A pulse is applied to each input of a 2-input NAND...Ch. 3 - A pulse is applied to each input of a 2-input NOR...Ch. 3 - A pulse is applied to each input of an...Ch. 3 - Prob. 8STCh. 3 - The purpose of a programmable link in an AND array...Ch. 3 - The term OTP means open test point one-time...Ch. 3 - Prob. 11STCh. 3 - Prob. 12STCh. 3 - Two ways to enter a logic design using PLD...Ch. 3 - Prob. 14STCh. 3 - In-system programming of a PLD typically utilizes...Ch. 3 - To measure the period of a pulse waveform, you...Ch. 3 - Prob. 17STCh. 3 - The input waveform shown in Figure 3-76 is applied...Ch. 3 - A combination of inverters is shown in Figure...Ch. 3 - If the waveform in Figure 3-76 is applied to point...Ch. 3 - Draw the rectangular outline symbol for a 4-input...Ch. 3 - Determine the output, X, for a 2-input AND gate...Ch. 3 - Repeat problem 5 for the waveforms in Figure 3-79Ch. 3 - The input wave forms applied to a 3-input AND gate...Ch. 3 - The input waveforms applied to a 4-input AND gate...Ch. 3 - Draw the rectangular outline symbol for a 3-input...Ch. 3 - Write the expression for a 5-input OR gate with...Ch. 3 - Determine the output for a 2-input OR gate when...Ch. 3 - Repeat Problem 7 for a 3-input OR gate.Ch. 3 - Repeat Problem 8 for a 4-input OR gate.Ch. 3 - For the five input waveforms in Figure 3-8219,...Ch. 3 - Draw the rectangular outline symbol for a 4-input...Ch. 3 - Show the truth table for a 3-input OR gate.Ch. 3 - For the set of input waveforms in Figure 3-83,...Ch. 3 - Determine the gate output for the input waveforms...Ch. 3 - Determine the output waveform in Figure 3-8513Ch. 3 - As you have learned, the two logic symbols shown...Ch. 3 - Repeat Problem 17 for a 2-input NOR gate.Ch. 3 - Determine the output waveform in Figure 3-87 and...Ch. 3 - Repeat Problem 19 for a 4-input NOR gate.Ch. 3 - The NAND and the negative-OR symbols represent...Ch. 3 - How does an exclusive-OR gate differ from an OR...Ch. 3 - Repeat Problem 17 for an exclusive-OR gate.Ch. 3 - Repeat Problem 17 for an exclusive-NOR gateCh. 3 - Determine the output of an exclusive-OR gate for...Ch. 3 - In the simple programmed AND array with...Ch. 3 - Determine by row and column number which fusible...Ch. 3 - Describe a 4-input AND gate using VHDL.Ch. 3 - Describe a 5-input NOR gate using VHDLCh. 3 - In the comparison of certain logic devices, it is...Ch. 3 - Prob. 34PCh. 3 - Determine tPLHandtPHL from the oscilloscope...Ch. 3 - Prob. 36PCh. 3 - If a logic gate operates on a dc supply voltage of...Ch. 3 - The variable ICCH represents the dc supply current...Ch. 3 - Examine the conditions indicated in Figure 3-92,...Ch. 3 - Determine the faulty gates in Figure 3-93 by...Ch. 3 - Using an oscilloscope, you make the observations...Ch. 3 - Prob. 42PCh. 3 - Every time the ignition switch is turned on in the...Ch. 3 - What failure(s) would you suspect if the output of...Ch. 3 - Modify the frequency counter in Figure 3-16 to...Ch. 3 - Prob. 46PCh. 3 - Design a circuit to fit in the beige block of...Ch. 3 - Modify the logic circuit for the intrusion alarm...Ch. 3 - Further modify the logic circuit from Problem 48...Ch. 3 - Sensors are used to monitor the pressure and the...Ch. 3 - In a certain automated manufacturing process,...Ch. 3 - Open file P03-52. For the specified fault, predict...Ch. 3 - Open file P03-53. For the specified fault, predict...Ch. 3 - Open file P03-54. For the observed behavior...Ch. 3 - Open file P03-55. For the observed behavior...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- show work on paperarrow_forwardWhat should the next three steps be in my machine based home security system after deployment and after the following current steps: Enhancing Security & Privacy Measures User Interface (UI) and Experience (UX) Improvement Machine Learning Model Refinement & Continuous Improvementarrow_forwardI am creating a machine learning home based security system, have completed initial deployment and in the following phases of the project: Expanding device compatibility and integration, preparing for cloud integration, and implementing system reduncancy and disaster recovery. What should the next three phases be?arrow_forward
- Hands-On Assignments Part II Assignment 1-5: Querying the DoGood Donor Database Review the DoGood Donor data by writing and running SQL statements to perform the following tasks: 1. List each donor who has made a pledge and indicated a single lump sum payment. Include first name, last name, pledge date, and pledge amount. 2. List each donor who has made a pledge and indicated monthly payments over one year. Include first name, last name, pledge date, and pledge amount. Also, display the monthly payment amount. (Equal monthly payments are made for all pledges paid in monthly payments.) 3. Display an unduplicated list of projects (ID and name) that have pledges committed. Don't display all projects defined; list only those that have pledges assigned. 4. Display the number of pledges made by each donor. Include the donor ID, first name, last name, and number of pledges. 5. Display all pledges made before March 8, 2012. Include all column data from the DD PLEDGE table.arrow_forwardWrite a FancyCar class to support basic operations such as drive, add gas, honk horn, and start engine. FancyCar.java is provided with method stubs. Follow each step to gradually complete all methods. Note: This program is designed for incremental development. Complete each step and submit for grading before starting the next step. Only a portion of tests pass after each step but confirm progress. The main() method includes basic method calls. Add statements in main() as methods are completed to support development mode testing. Step 0. Declare private fields for miles driven as shown on the odometer (int), gallons of gas in tank (double), miles per gallon or MPG (double), driving capacity (double), and car model (String). Note the provided final variable indicates the gas tank capacity of 14.0 gallons. Step 1 (2 pts). 1) Complete the default constructor by initializing the odometer to five miles, tank is full of gas, miles per gallon is 24.0, and the model is "Old Clunker". 2)…arrow_forwardFind the error: daily_sales = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] days_of_week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] for i in range(7): daily_sales[i] = float(input('Enter the sales for ' \ + day_of_week[i] + ': ')arrow_forward
- Find the error: daily_sales = [0.0, 0,0, 0.0, 0.0, 0.0, 0.0, 0.0] days_of_week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] for i in range(7): daily_sales[i] = float(input('Enter the sales for ' \ + days_of_week[i] + ': ')arrow_forwardFind the error: daily_sales = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] days_of_week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] for i in range(6): daily_sales[i] = float(input('Enter the sales for ' \ + days_of_week[i] + ': '))arrow_forwardWhat are the steps you will follow in order to check the database and fix any problems with it and normalize it? Give two references with your answer.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage LearningOperations Research : Applications and AlgorithmsComputer ScienceISBN:9780534380588Author:Wayne L. WinstonPublisher:Brooks ColePrinciples of Information Systems (MindTap Course...Computer ScienceISBN:9781285867168Author:Ralph Stair, George ReynoldsPublisher:Cengage Learning
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageFundamentals of Information SystemsComputer ScienceISBN:9781337097536Author:Ralph Stair, George ReynoldsPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Fundamentals of Information Systems
Computer Science
ISBN:9781337097536
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning