Write a program, find the sum of data in memory location LIST, and store the SUM in memory location sum using loop. List DCB 0x23, 0x24, 0x67, 0x22, 0x99 SUM DCD 0x0
Q: Write a program to find maximum repeated words from a file. BY C++
A: Used map to store count for each word. Then looped over the map and found the most repeating word.
Q: Read the txt file in Python and display the output in a separate txt file as shown below; Input txt…
A: file1 = open("bartlleby10.txt") r=file1.read()l1=[]l2=[]c=0for i in r.split("\n"): b=i.split()…
Q: 1) The R programming code shown below will produce the following output: Output: one two 1 1 TRUE…
A: 1) The R programming code shown below will produce the following output: Output: one two 1 1…
Q: Write a Python code snippet that uses readlines() to show the first line from the file ("Input.txt")…
A: Please find the answer to the above question below:
Q: The coding language is python. The code that is written was given to us and the example is just a…
A: Create a function using the def Inside the function - Take a variable to store the length of the…
Q: (B2). Implement a randomized Skip-List with operations Insert(), Delete() and Search(). Your program…
A: PROGRAM : #include <bits/stdc++.h> using namespace std; //using class to create a node…
Q: Write a python program that calculates the sum of N given lists and prints the highest sum and its…
A: According to the Question below the solution: Python Output:
Q: Write a program, in python, that checks if the last data item entered appears earlier in the list.…
A: Answer: I have done code and also I have attached code and cod screenshot as well as output
Q: Write a python program that takes two lists from the user, merges the two lists, sorts the resulting…
A: The step by step process I have done here is: 1. Take 2 array as user input (list_one and list_two)…
Q: Próblém B. Comparator Input file: Output file: standard input standard output 2 seconds Time limit:…
A: Code: #include <iostream>using namespace std;int main(){ //declaring required variables…
Q: Design a python program that reads a file named "scores.txt containing lines of test scores…
A: f = open('scores.txt','r')#opening text file in read mode#now reading contents of the file line by…
Q: Exercise 5: Write a program that that reads values from an input file "data.txt" and stores them in…
A: The main purpose of the program is to read numeric data from data.txt file and store into the list.…
Q: Write a program that will take n floating point numbers as input and print the sum, average and…
A: Since no programming language is mentioned, I am using c language. Algorithm: Start Read n value…
Q: Write an assembly language program that reads from the keyboard an integer N (between 1 and 20) and…
A: The question is to write assembly code for sorting with the given conditions.
Q: Write a c++ program that reads 5 integer numbers from a file “integer.txt”, separated by comma, and…
A: Note: This code should be rewritten instead of copying to the compiler otherwise it will throw a…
Q: Write a Python program to combine each line from the first file with the corresponding line in the…
A: Given: Write a Python program to combine each line from the first file with the corresponding line…
Q: Write a program, in python, that checks if the last data item entered appears earlier in the list.…
A: logic:- use while True to run loop infinitely. If entered number is -1, then break loop else…
Q: Write a CPP program that reads 1eis names and items prices of 50 items from KB and stores them in a…
A: Use a loop to iterate over the file contents and then compare the price using conditional statement…
Q: Write a program, in Python, that checks if the last data item entered appears earlier in the list.…
A: Algorithm: Start Declare an empty list data Initialize count to 0 Read data from user If data!=-1,…
Q: Write a program that transfers 6 bytes of data from memory locations with offset of 0010H to memory…
A: Assembly language is a low-level programming language for a computer or other programmable device…
Q: Write a C++ program to sum the values in the file with respect to the input of the user. The file…
A:
Q: Write a program, in python, that checks if the last data item entered appears earlier in the list.…
A: - We need to check if the last data item entered in a list appeared before or not.
Q: a list to store processes is used in this program, is it a queue or a general-purpose list?…
A: That program contain the process cycle , Burst Time , Waiting Time and Turnaround time so we can say…
Q: Write a complete C or C++ program to implement a digital music archive program. The program should…
A: Given: C++ program for digital music archive Menu: 1- Add a new song to directory 2- Delete a song…
Q: . What is the output of the following code (assume all libraries are included): Answer: a) True b)…
A: Here we have given multiple question. In first question we need to find the output of the given…
Q: Write a python program that has the following functionality: 1. read input from a file containing a…
A: Task :- Write a python program to read words from input file and write to output file selecting one…
Q: [72 101 108 108 111 44 32 240 159 140 158] [72 101 108 108 111 44 32 127774]
A: The Go program code is
Q: Write a function that rotates the elements of the list k times. [You are not allowed to create any…
A: Here I have created a function to rotate the list to either left or right. In the function, I have…
Q: Write a complete C or C++ program to implement a digital music archive program. The program should…
A: /* This is a C++ program to implement a digital music achieve…
Q: Write a program that reads a string (an array of characters) from a text file. Reverse the string…
A: Start with first making a text file and naming it. I have named my file as ‘hi.txt’ . Write any…
Q: Write a Python program called mergesort program should read from the input file called inputfile.txt…
A: The Merge Sort algorithm is a Divide and Conquer algorithm. It divides the input array in half,…
Q: ?What this program portion is performing MOV AX, 0300H MOV DS, AX MOV SI, 0010H MOV DI, 0010H MOV…
A: The answer is None of them. The program actually performs- takes contents of DS:SI that is 0300:0010…
Q: Step1. The following code copies a string from source to target: .data "This is the source string",0…
A:
Q: Task 8 Write a python program that takes a list from user containing both positive and negative…
A: Algorithm :- 1.) Define a function findclosestValues 2.) Loop over the function argument n 4) Use…
Q: Write the assembly code that reads string from "input.txt" file and check whether the readed string…
A: Given that Write an assembly program to check whether a given string is palindrome or not.…
Q: write a Java program , to write data into a file ( output.txt ). The output.txt file is below.…
A: Java program to write the data into the file named output.txt The given output is 1 22 333 4444…
Q: Write a C++ program which reads an int array of size 10 from a “file.txt”. Multiplies 3 from each…
A: #include <fstream>#include <iostream>#include <sstream> using namespace std;int…
Q: Using C++, Write a program to produce the first 100 Fibonacci numbers. A Fibonacci number is one…
A: Code to copy: #include <iostream>using namespace std;void print_Fibonacci_Numbers(int n){ int…
Q: Write a program that reads the strings from file SortedStrings. txt and report whether the strings…
A: C++ code to copy:- #include <fstream>#include <string>#include <iostream> using…
Q: Given a list of characters and an integer n, create a new list that is the original list split into…
A: 1. Input the string containing characters 2. Input the integer- n 3. Extract out a list of…
Q: Write a program that asks the user to input 2 lists of numbers, 5 numbers per list. Your program…
A: Given: Write a program that asks the user to input 2 lists of numbers, 5 numbers per list. Your…
Q: Write a Python program that takes two lists and prints True if they have at least one common member.…
A: Here I have created 2 lists and stored values into them by taking input from the user. Then I have…
Q: Write a program loads the block of memory locations from OA1000H through OA10FFH with number DDH…
A: Given: write a program loads the blockof memory locations from OA100OH through OA1OFFH with number…
Q: Question 03: 1. Write Python function that will merge two lists of sensor values into one list by…
A: As per the requirement program is completed. Algorithm: Step 1: Define list a Step 2: Define list b…
Q: Write a C/C++ language program that reads the file numbers.txt and checks each number for being a…
A: This question can be answered by using C programming language. It has asked the user to enter the…
Q: Write a python program that takes two lists from the user, merges the two lists, sorts the resulting…
A: As given, I need to write a Python program that takes two lists as input, merge the two lists, sorts…
Q: Write a complete C or C++ program to implement a digital music archive program. The program should…
A: void save2file(){ // openig file in appand mode ofstream fo; fo.open("song.txt", ios::app);…
Q: Write a program to process stock data. The stock data should be read from a text file containing the…
A: import java.io.BufferedReader;import java.io.FileReader;import java.io.InputStreamReader;import…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Write a program that will take n floating point numbers as input and print the sum, average and maximum of the numbers. Use dynamic memory allocation and pointers to do the task. Sample input file: 5 12 24 34 45 56 Sample output file: Sum : 171.0 Average : 34.2 Maximum : 56Using multithreading, write a program that will add new items to your inventory, remove items that have been sold and view a list of all items in your inventory.Write a java program. The program asks for an input of the name of a txt file. Then creates a Multiplication Table from 1 to 9, and writes the table into the file. When you run your program, you may see the result like this:
- Write a python program that has the following functionality:1. read input from a file containing a list of words (each word is written on its own line) and store the data (strings) in a listHint: try using the readline() function or a for loop2. randomly select a string from the list3. output / write the selected string to a new filewrite a program to generate the addition and multiplications tables for single digits Start a file from scratch, add a main, and include a screenshot of your output in your report.Write a windows32 assembly language program in visual studio that utilizes a recursive procedure. The main (_MainProc) procedure should: accept, from the user, an integer greater than 0. Guard against invalid values being entered using a loop. call the recurse sub-procedure using the cdecl protocol, receive the results of the sub-procedure, and display the results. NOTE: The main procedure should do nothing more than this! The recurse sub-procedure should (following the cdecl protocol): recursively find the solution for: recurse(0) = 3, and recurse(n) = 5 * recurse(n-1) + 9, for n > 0. return the value back to the calling procedure. Notes: Both the main procedure and recurse sub-procedure must follow the cdecl protocol. I need commented code otherwise it will be not accepted
- Write a windows32 assembly language program in visual studio that utilizes a recursive procedure. The main (_MainProc) procedure should: accept, from the user, an integer greater than 0. Guard against invalid values being entered using a loop. call the recurse sub-procedure using the cdecl protocol, receive the results of the sub-procedure, and display the results. NOTE: The main procedure should do nothing more than this! The recurse sub-procedure should (following the cdecl protocol): recursively find the solution for: recurse(0) = 3, and recurse(n) = 5 * recurse(n-1) + 9, for n > 0. return the value back to the calling procedure. Notes: Both the main procedure and recurse sub-procedure must follow the cdecl protocol.Write a complete C or C++ program to implement a digital music archive program. The program should be able to allow the following operations through the menu structure. Use FILE to write the outputs, the song directory: Menu: 1- Add a new song to directory 2- Delete a song from the directory 3- List all songs in the directory 4- Search a song: A – Search according to ID B – Search according to category 5- Update song information 6- Sort according to ID A - In ascending order B – In descending order 7- Sort according to category in alphabetic order 8- Quit struct date { int day, month, year; }; struct car { int ID; char songname[100], singersname[30], category[10]; struct date albumdate; }song_directory[100];Design a python program that reads a file named "scores.txt containing lines of test scores separated by commas. Read each line in the file and put each line of scores in a list. Sort the scores in each list in decreasing order and display each list. The contents of "scores.txt" are as follows: 85.6, 92.2, 57.9, 45.7 39.4, 55,6, 99.9, 46.3 98.8, 90.4, 79.3, 66.7
- extern "C" int f(int *,int,int); int a[2][2] = {{11,12},{21,22}}; void setup(){ Serial.begin(115200); while(!Serial); delay(500); int *arr = (int*)a; Serial.println(f(arr,2,2)); } void loop(){ } .global f f: ldr r3,[r0] // get first element mov r2,#0add r2,r3 mov r1, #3 lp: add r0,#4 // add next elementldr r3,[r0]add r2,r3sub r1,#1 bgt lp mov r0,r2 bx lr Describe what operation is being performed in this codeWrite a complete C or C++ program to implement a digital music archive program. The program should be able to allow the following operations through the menu structure. Use FILE to write the outputs, the song directory: Menu: 1- Add a new song to directory 2- Delete a song from the directory 3- List all songs in the directory 4- Search a song: A – Search according to song name B – Search according to singer’s name 5- Update song information 6- Sort according to song name 7- Sort according to singer’s name 8- Quit struct date { int day, month, year; }; struct car { int ID; char songname[100], singersname[30], category[10]; struct date albumdate; }song_directory[100];Java language Create a random access file in C drive, write numbers 1 to 100 into that, add number 1000 in 10th position, and 2000 at last. Print numbers in 9th, 10th, 11th, last position . Give your code!