This code has still errors.
Q: Explain in detail the role of the following registers in an 8051: i) The program status word ii) The…
A: i) The program status word (PSW) register in an 8051 microcontroller is a special-purpose register…
Q: It's a good idea to think about using structured language when discussing processes that aren't part…
A: Structured language is a method of communication that uses a specific vocabulary, grammar, and…
Q: In the context of games for leisure, what is a game of perfect information?
A: Given : In the context of games for leisure, what is a game of perfect information?
Q: What is the purpose of address decoding and explain the difference between full and partial address…
A: According to the information given:- We have to define purpose of address decoding and explain the…
Q: Now, use flask package to develop a Python web application that validates email address and password…
A: The example defines a simple Flask application with a single route, '/', that handles GET and POST…
Q: What is crosstalk? Explain in dummy terms
A: A computer is a digital electronic machine that can be programmed to automatically perform a series…
Q: Design a code converter that converts a decimal digit from Gray Code to BCD code. Show the…
A: BCD:- BCD stands for Binary Code Decimal. It is a 4-bit binary code very useful in input/output…
Q: A GSM system uses 124 channels and each channel is divided into 8 time slots. What is the maximum…
A: GSM uses a combination of TDMA and FDMA techniques. The FDMA element divides the assigned frequency…
Q: *4.25 (GENERATE VEHICLE PLATE NUMBERS) Assume that a vehicle plate number consists of three…
A: Java program to generate the number plate with three character (uppercase) and four digits. see the…
Q: Question: Particulate matters are the biggest contributors to Delhi pollution. The m behind the…
A: THE ALGORITHM OF THE CODE:- 1. Start2. Declare an array a[] of size N and three variables D, N, and…
Q: need a prototype for a system architecture diagram, designed for a system that utilizes graphs to…
A: The diagnostic tool used to define mental health disorders is the Diagnostic and Statistical Manual…
Q: You are given n integer numbers (n> 2), operators (+ - *), and a goal number. You will use the given…
A: Please refer to the following step for the complete solution to the problem above.
Q: The 8051 supports both conditional and unconditional jumps. State how they differ and then contrast…
A: Conditional jumps are a type of branch instruction in the 8051 assembly language that jumps to a…
Q: The 8051 memory map is subdivided into separate program/code and data memory. Describe a limitation…
A: Answer is
Q: Write a Elevator Simulator program in C! Without using goto statements! Simulate an…
A: HI THEREI AM ADDING ANSWER BELOWPLEASE GO THROUGH ITTHANK YOU
Q: Using P5.Js Write a program to move a character based on the left, right, down and up keys on the…
A: We will understand it with a example , In this example, the character is represented by an ellipse…
Q: Using appropriate illustrations show how an 8255A could be connected to an 8051 microcontroller I/O…
A:
Q: What is the purpose of address decoding and explain the difference between full and partial address…
A: The purpose of address decoding is to determine which memory device or peripheral a particular…
Q: How does ict aid and hinder society at large
A: Information and communication technology (ICT) can both aid and hinder society in a number of…
Q: This program will store roster and rating information for a soccer team. Coaches rate players during…
A: Algorithm for the program: Create two empty lists, jersey_numbers and ratings, to store the…
Q: Can technology be used to enhance learning in any way?
A: Yes, technology can be used to enhance learning in various ways
Q: Is there proof that interrupt-driven OSes outperform their non-interrupted counterparts, or…
A: Interrupt-driven operating systems (OSes) are a common approach to managing the execution of…
Q: Please answer in c++. with showing the code.
A: Algorithm: Step - 1) Firstly, defining the function char toLowerCase(char c) to convert the…
Q: explain tobbacco leaves in details
A: Introduction A plant whose leaves contain a significant amount of nicotine, an addictive compound.…
Q: A typical device for expanding the 8051 ports is the 8255A Programmable Peripheral Interface. i)…
A: i) The 8255A Programmable Peripheral Interface device is a programmable I/O device that can be used…
Q: Why is software engineering so important when creating new programs, and what exactly is it?
A: A methodical engineering approach to software development is known as software engineering. A…
Q: D) ii) iii) Solve the given query using the two tables (EmployeeDetails, EmployeeSalary). Empld 121…
A: Since you have posted a question with multiple sub-parts, we will provide the solution only to the…
Q: Jump to level 1 PqpAA-q TTT ΤΤΕ TFT TFF FTT FTF FFT FFF Check 21 Next Fill in -para-q. 7
A: Truth Table: A logical expression's truth value can be found by using a truth table, which is…
Q: Indices can speed up query processing, but it's usually a terrible idea to index every attribute,…
A: An index in a database is a data structure that speeds up data retrieval operations on a database…
Q: keep getting a ambiguous error for this question below question- Join the payment_info and payments…
A: A JOIN operation in SQL combines rows from two or more tables based on a related column between…
Q: Design the Programmer class such a way so that the following code provides the expected output.…
A: Dear student: I am getting same output in the given questions. Algorithm: We need to define the…
Q: What is Bayesian reasoning Not just defination detail answer like advantage, application etc
A: A Bayesian network which refers to the one it is a probabilistic graphical model which represents a…
Q: This particular computer uses an instruction cache, a data cache, an ope store unit. The instruction…
A: The answer is
Q: Create a simple calculator program. At the beginning program prints out number 0, after which it…
A: Step-1: Start Step-2: Declare variable result and assign value 0Step-3: Start while True…
Q: write a program to generate the addition and multiplications tables for single digits Start a file…
A: Here is a Python program that generates the addition and multiplication tables for single digits:def…
Q: A) What's the major difference between the two programs? B) Which program has better cache…
A: Introduction: C is a general-purpose, procedural computer programming language supporting…
Q: Create your own 2 python program that uses inorder traversal. Explain using comments. Example is…
A: The Python program for the implementation of inorder traversal in a binary search tree is as…
Q: Have you ever answered a test question that tells you to enumerate a series of things, but the…
A: Algorithm of the given problem. Start Initialize the for loop Take input from the user Store input…
Q: You have recently added a server to your network that will host data used and updated by employees.…
A: There are several important security events to monitor on a server that hosts data used and updated…
Q: For what, and how does it function, does Windows use a Service Control Manager?
A: The Service Control Manager (SCM) is a special process which is under the Windows NT family of the…
Q: Part (1)Define a class with the following specifications: a. The class name is FuelTank with three…
A: HI THEREI AM ADDING ANSWER BELOWPLEASE GO THROUGH ITTHANK YOU
Q: Q1) Write a recursive function in C to check palindrome array. Example: arr[] = {2,1,1,1,2}; This is…
A: NOTE: This is a multiple-type question. So, according to the guidelines, we will answer the first…
Q: Data mining has a wide variety of applications; discuss some of them
A: Data mining is the process of discovering patterns and knowledge from large amounts of data. It…
Q: LAB ACTIVITY 1 import java.util.Scanner; 2 3 public class OutputWithVars { 4 5 6 7 1.16.1: Basic…
A: I have written code below: For Integer Input scnr.nextInt(); For Display in Screen without…
Q: For starters, how does one go about creating a program? What criteria should be used while picking a…
A: Introduction Designing and creating executable programs to carry out particular tasks is the process…
Q: I need to create a error page in HTML if a code doesnt work. How can i create this page, using html,…
A: HTML stands for "Hyper Text Markup Langauge". It is a standard language for creating web pages.…
Q: When we say that someone is "programming a computer," what do we mean exactly? What criteria should…
A: "Programming a computer" refers to the process of designing and writing code in a programming…
Q: How to write hello world program in javascript
A: Below is javascript code with screenshot of output. In javascript we can output "Hello world" to…
Q: In telecommunications, what is Advanced radio data information system(ARDIS)? And how it worsk?
A: INTRODUCTION: Telecommunications, commonly called telecom, transmit speech, data, and video across…
Q: 7 Where is used on a web page? After all other tags After the tags Before any other tags O Before…
A: We are asked a basic question on <! DOCTYPE> declaration. HTML is a HyperText Markup Language.…
This code has still errors.
Step by step
Solved in 2 steps with 2 images
- PHONE DIRECTORYDescription: Create a phonebook directory that will store the contact numbers of N persons. Your program should allow the user to add, view, delete, and update the contacts in the phonebook. Note that one person can have multiple contact numbers. The program will stop when the user command is ‘X’. Program command and entry should not be case-sensitive. That means commands ‘I’ or ‘i’ and the name “Jacky” or “JACKY” are the same. Each contact number can be 7 digits or 11 digits only. The user should input a string containing the command, name, and contact number(s) (Limit the contact number of each person to three). This string should be broken down into fields in order to separate the different values and store them in their appropriate variables. Use linked list in the implementation. Your node must declare at least four instance variables. Program flow: Command> I Jacky 09211234567 Remarks: New contact has been added. Command> V Jacky Contact…Custom Test incomplete Delete the wages.csv file Custom TestIncomplete The program writes to the wages.csv file Test OutputJohn Henry's payrate was not found in the wages.csv file. Traceback (most recent call last): File "/home/nt-user/workspace/nt-test-76ce7b1d", line 23, in <module> raise AssertionError() AssertionError Test Contentsimport csv import main with open('/home/nt-user/workspace/wages.csv') as f: # Read in the CSV file csvfile = csv.reader(f) csvout = list() all_lines = list() for row in csvfile: csvout.append(row) # Create a single list of file contents for lyst in csvout: all_lines.append(lyst[0]) all_lines.append(lyst[1]) # Check the aggregated file contents for the employee information if 'John Henry' not in all_lines: print('John Henry was not found in the wages.csv file.') raise AssertionError() elif '570' not in all_lines: print('John Henry\'s payrate was not found in the wages.csv file.') raise AssertionError() elif 'Maria Gray' not in…from dateutil import parserimport datetimefrom datetime import datetimeusernames = []passwords = [] def reg_user():"""Return for registering new user"""withopen('user.txt', 'a') asfile1: iflogin_username == "admin": new_username = input("Enter a username: ") whilenew_usernameinusernames:print("This username already exists.")new_username = input("Enter a username: ") new_password = input("Enter a password: ")confirm_password = input("Re-enter the password: ")whileconfirm_password != new_password:print("Passwords do not match.")new_password = input("Enter your password: ")confirm_password = input("Re-enter your password: ")else:print("Welcome ", new_username) whilenew_passwordinpasswords:print("This password already exists.")new_password = input("Enter a password: ")confirm_password = input("Re-enter the password: ") else:print("User not authorised to register a new user.")return file1.writelines(f"\n{new_username}, {new_password}") def add_task():"""Return for adding…
- ; initialized data heresection .data msg db "Print String!", 0xamsglen equ $-msg ; string length in bytesSTDOUT equ 1 ; standard output deviceSYS_write equ 1 ; write messageSYS_exit equ 60 ; exit programEXIT_OK equ 0 ; return value ; code goes heresection .text ; The '_start' label identifies the program's entry point for the; linker for the 'nasm' assembler. If you use 'gcc', the entry point; is labeled 'main'global _start_start: ; send message string to standard output mov rsi, msg ; text address mov rdx, msgln ; string length (error here) mov rdi, STDOUT ; output device mov rax, SYS_write ; rax holds the function syscall ; system…* Question Completion Status: exception Od. QUESTION 8 When the arguments in a function must be in the same order the parameters were written, we use arguments. O a. positional Default Values Ob. OC. Argument O d. Keyword QUESTION 9 Use the method to delete any whitespace exists at the left end of a string Click Save and Submit to save and submit. Click Save All Answers to save all answers. DELL F5 F6 F7 F8 F9 F10 F11 F12 PrtSc 505..data count DWORD? .code mov ax, 5 mov ecx,2 mov count,ecx inc ax mov ecx,3 L2: dec ax call dumpregs loop L2 mov ecx,count loop L1 Given the above code After execution the ax value is * 5
- CTF flag. decrypt and find the word *CTF{WORD} Inside the text file: CLUsFeOpcKy9qzeyuqVEuGJwIV9CZep3p/SeqKaQ9JXfl6PEpEE7gInM+mOfdtUi. The program will consist of one file - the main application class • Name the class appropriately and name the file Program.cs (the default when you create the application) Include documentation at the top of the file that includes ▪ Your name ▪ Date of development ▪ Assignment (e.g., CIS214 Performance Assessment - User Entry of Age) ▪ Description of the class The main application class must meet the following requirements O • Print a line that states "Your Name - Week 4 PA User Entry of Age" • Ask the user to enter their age • If the age is between 1 and 100 (inclusive) ▪ print a message stating the age the user entered ▪ exit the program • If the age is less than 1 or greater than 100 generate an ArgumentOutOfRange Exception ▪ print the exception information ▪ print an error message • If the value is not an integer ▪ handle the FormatException ▪ print the exception information ▪ print an error message • Continue asking the user to enter their age until a valid age is entered Sample…Music App 1. practise file I/O and exception handling; 2. practise String processing. Aim: Task: Create a Java application that transcripts a simple song score sheet. The program asks user for filename of a text file that contains a simple song score sheet in this format: Sample song score sheet 1, song1.txt: #simple song with assumed time signature = 4 d1mls202s 1mld2o2 d1rimlfls 301s1f1m1rld4 Lines beginning with a hash #' is a comment line. A song contains one or more lines of musical notes, d, r, m, f, s, l, tand also o meaning "Off" or rest. Each single character note is followed by a single digit integer in [1 – 4], denoting the duration of the note in number of beats. After transcription, the program outputs the melody on the screen as well as to another text file: Melody output 1, on screen AND in melody_song1.txt: #simple song with assumed time signature Do Me So- Off- So Me Do Re Me Fa| So-- Off = 4 Do- Off- | So Fa Me Re Do--- | The default time signature is 4 beats per…
- If an object cannot be found, it is generally better to throw an exception than return null. True FalseHAHAAAAAAHN HNM1000 OHNM 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 30 31 32 section . data .section .text .globl _start start: pushq $4 pushq $3 call function-A addq $16, $rsp movg %rax, %rbx movq $1, rax int $0x80 .type function-A, @function function-A: pushq rbp movq rsp, rbp. subq $8, rsp movg 16(%rbp), %rbx movq 24 (rbp), rcx movg %rbx, -8(%rbp) label-A: #variable y #variable z cmpq $1, $rcx je label-B movq -8 (&rbp), rax imulg %rbx, srax movq krax, -8 (%rbp) decq rcx jmp label-A label-B: movq -8 (Srbp), rax movq rbp, rsp popq &rbp retHAHAAAAAAHN HNM1000 OHNM 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 30 31 32 section . data .section .text .globl _start start: pushq $4 pushq $3 call function-A addq $16, $rsp movg %rax, %rbx movq $1, rax int $0x80 .type function-A, @function function-A: pushq Srbp movq rsp, rbp. subq $8, rsp mova 16 (%rbp), rbx movg 24 (rbp), rcx mova Srbx, -8 (Srbp) label-A: #variable y #variable z cmpq $1, $rcx je label-B movq -8 (&rbp), rax imulg %rbx, srax movq rax, -8 (%rbp) decq rcx jmp label-A label-B: movq8 (rbp), rax movq rbp, rsp popq &rbp ret