EBK ACTIVITIES MANUAL FOR PROGRAMMABLE
EBK ACTIVITIES MANUAL FOR PROGRAMMABLE
5th Edition
ISBN: 8220102795983
Author: Petruzella
Publisher: YUZU
bartleby

Concept explainers

Question
Book Icon
Chapter 11, Problem 8P
Program Plan Intro

a.

Count-Up (CTU) Counter:

  • The CTU counter refers to an up counter
  • This counter is used to count an event that occurs logically or externally and places that value in the counter’s accumulator.
  • The accumulated value can even be maintained during false rung conditions and can be reset back to 0 using reset instruction.

Addition math function:

  • Math instructions refer to all output instructions that uses the data of two words or registers and perform the desired function.
  • Addition function is used to add one piece of data to another.
  • It is also called as ADD.

Program Plan Intro

b.

Count-Up (CTU) Counter:

  • The CTU counter refers to an up counter
  • This counter is used to count an event that occurs logically or externally and places that value in the counter’s accumulator.
  • The accumulated value can even be maintained during false rung conditions and can be reset back to 0 using reset instruction.

Addition math function:

  • Math instructions refer to all output instructions that uses the data of two words or registers and perform the desired function.
  • Addition function is used to add one piece of data to another.
  • It is also called as ADD.

Timer ON Delay (TON):

  • TON refers to an on-delay timer.
  • The on-delay timer is the most commonly used timer.
  • TON counts the time-based intervals as soon as the instruction becomes true.
  • Here, the output changes its state from low to high when the timer provides some time delay (instruction goes from OFF to ON state).

MOV instruction:

  • Move (MOV) instruction is used to copy the data of the source register into destination register.
  • Here, the contents of the source register will not be altered.
  • In other words, it is used to copy the value in one word or register to another word or register.

Blurred answer
Students have asked these similar questions
5. Word FrequencyWrite a program that reads the contents of a text file. The program should create a dictio-nary in which the keys are the individual words found in the file and the values are the number of times each word appears. For example, if the word “the” appears 128 times, the dictionary would contain an element with 'the' as the key and 128 as the value. The program should either display the frequency of each word or create a second file containing a list of each word and its frequency.
3.) File Encryption and DecryptionWrite a program that uses a dictionary to assign “codes” to each letter of the alphabet. For example: codes = { ‘A’ : ‘%’, ‘a’ : ‘9’, ‘B’ : ‘@’, ‘b’ : ‘#’, etc . . .}Using this example, the letter A would be assigned the symbol %, the letter a would be assigned the number 9, the letter B would be assigned the symbol @, and so forth. The program should open a specified text file, read its contents, then use the dictionary to write an encrypted version of the file’s contents to a second file. Each character in the second file should contain the code for the corresponding character in the first file. Write a second program that opens an encrypted file and displays its decrypted contents on the screen.
Returns an US standard formatted phone number, in the format of      (xxx) xxx-xxxx           the AreaCode, Prefix and number being each part in order.           Testing Hint: We be exact on the format of the number when      testing this method. Make sure you think about how to convert      33 to 033 or numbers like that when setting your string format. Reminder      the %02d - requires the length to be 2, with 0 padding at the front if a single      digit number is passed in.
Knowledge Booster
Background pattern image
Computer Science
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781305971776
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Text book image
A+ Guide to Hardware (Standalone Book) (MindTap C...
Computer Science
ISBN:9781305266452
Author:Jean Andrews
Publisher:Cengage Learning