2) Write a java code for storing music in Environment.DIRECTORY_MUSIC within external storage of your application.
Q: Bring Your Own Encryption (BYOE) as a kind of encryption is discussed.
A: Introduction: It is a cloud computing security approach that allows customers of cloud services to u...
Q: In the same way Write a C# program to check whether a user inputted number is positive or negative
A: Introduction: Write a C# program to check whether a user inputted number is positive or negative
Q: Write a C program to calculate the Volume of a cylinder. Also identify and display whether the cylin...
A: Code: #include <stdio.h> int main(){ float d,r,h,v; printf("Enter diameter: "); scanf...
Q: ccurs in a at a position which is greater than or equal to start, and less than end. You must valida...
A: Code: import java.util.*;class ContainsInRange{ public static boolean validate(int arr[],int x,in...
Q: Write a C++ program to read input a string input from the user and display the reverse string in the...
A:
Q: write a java Cia ball team a) Add fields for the following properties, which cannot be accessed outs...
A: Here we have to write java program for given requirements
Q: Write the symbol used in the following language of mathematics: 1. The complement of the complement...
A: I have Provided this answer with full description in step-2.
Q: ML changes made permanent in database tables?
A: By using the Commit command, the User can save changes done by DML operations can be stored in datab...
Q: write code to determine if the first character in an input string str is an uppercase character.if t...
A: Introduction: write code to determine if the first character in an input string str is an uppercase ...
Q: Please write a Java program , to write data into a file (output.txt). The output.txt file is below. ...
A: Introduction Please write a Java program, to write the data into the file (output.txt). The output.t...
Q: What are the many kinds of operating system programmes? To demonstrate your idea, provide three to f...
A: The kernel is the name given to the most significant programme in the collection. During the boot pr...
Q: Write a small programme, using a for loop and the disp() command, to display the value of the loop v...
A: According to Bartleby's policy, only first question can be solved here since there are multiple ques...
Q: The Barking Lot is a dog day care center. Design a flowchart for the following: A program that cont...
A: INTRODUCTION The Barking Lot is a dog day care center. Design a flowchart for the following: A pro...
Q: Explain how the algorithm below for a binary search is similar and dif
A: Answer: The algorithm for binary search is similar that is correct in given question. Algorithm S...
Q: What is an Internet of Things (IoT) and when may it be useful?
A: IOT is very very useful and widely spread domain across the world and computer industry . As we alr...
Q: Describe the Deployment Models and do you think they should be taken seriously?
A: Deployment models allows the organization to identify the infrastructure and environment based on th...
Q: Why can't lists and sets serve as keys for dictionaries?
A: The best answer to your question is that the class list and sets lacks the hash method, which is nee...
Q: Write a python program to remove a particular word from the user entered string.
A: Required:- Write a python program to remove a particular word from the user entered string. Approach...
Q: Which are the primary key in the following tables
A: A primary key is the column or columns that contain values that uniquely identify each row in a tabl...
Q: How I can open file txt in my computer
A: TXT files in Windows may be opened using the built-in Notepad software by right-clicking the file an...
Q: Suppose you have already developed an SLL ADT. You have to search a specific element of the linked l...
A: void function(int item) { struct node *ptr; int i=0,flag; ptr = head; i...
Q: establish a method for selecting cybersecurity items on the market
A: Introduction: The process of choosing a cyber security product can be broken down into four basic st...
Q: What is the difference between a Microsoft Access database and an Excel spreadsheet based on their c...
A: Introduction: Spreadsheet in Microsoft ExcelMicrosoft Excel is used to show the data in horizontal a...
Q: 1 get input n 2 set a variable num = 1 3 if num <= _(1)_, goto step 4, otherwise go to step 11 4 set...
A: This will be n because we only want to check from 1 to n, not after that. So when num exceeds n, we ...
Q: What is a public IP address? O 172.16.0.1/16 O 10.0.0.1/8 O 192.168.0.5/24 O 19.0.0.1/8
A: Option D: 19.0.0.1/8
Q: What is the probability that in a classroom of x people, at least 2 will be born on the same day of ...
A: Introduction What is the probability that in a classroom of x people, at least 2 will be born on the...
Q: LAB ASSIGNMENTS, CONT. avg rainfall.py: Write a program that collects rainfall data and calculates t...
A: Answer: Python Source Code: total_sum = 0years = int(input("How many years are in your rainfall samp...
Q: Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's repre...
A: The while loop is used to iterate a part of the program repeatedly until the specified Boolean condi...
Q: Network and Communication Provide the Single parity and double parity check implementation
A: NOTE :- Below i explain the answer in my own words by which you understand it well.
Q: You work for a local bank called Bank and Trust. They have a main office located in New York City wi...
A: Introduction: You work for a local bank called Bank and Trust. They have a main office located in Ne...
Q: Show the output of the following code: public class Test { public static void main(String[] args) { ...
A: As per the given question , below is the Output
Q: What exactly is the Handled property?
A: Given: What exactly is the Handled property?
Q: Assume that you have the following definition of a struct. struct partsType { int partNum; double pr...
A: C++ programming language is used for the below program in step2: The structure is a user-defined dat...
Q: Create an algorithm and a flowchart that will output all the prime numbers between 2 numbers. Use th...
A: Here I have taken 2 variables to store the start and end. Next, I have used a for loop to generate t...
Q: write a for loop equivalent to the stated while loop. int count =23; while (count<100) { system....
A: Java Program of above code using for loop: class Loop{ public static void main(String[] args) { int...
Q: Express each of these mathematical statements using predicates, quantifiers, logical connectives, an...
A:
Q: Break down 42 into a sum of non consecutive Fibonacci numbers
A: Since it hasn't been specified whether you want this to be solved mathematically, i assume it is a c...
Q: 2. Evaluate the following computation in embedded C program using XC8 Compiler and explain the reaso...
A: 1: In c language write a program and perform the following operations Unsigned char t; Calculate t=1...
Q: Perform the following Infix expressions to Prefix, Postfix and Binary Tree (for visualization) 1. x...
A: Infix expressions to Prefix, Postfix and Binary Tree
Q: When going through a section, try the Self-check exercises. The solutions are given at the end of ea...
A:
Q: What exactly are Bugs?
A: Bugs are a kind of insect, which have a place with the class Insecta, and they are portrayed by thre...
Q: E-commerce and Mobile Commerce (m-commerce), such as mobile banking and mobile advertising, is beco...
A: The e-commerce can be defined as the platforms that support and allow purchase and selling of the ...
Q: Network management system (NMS): A system that executes applications that monitor and control manage...
A: Let's see the solution in the next steps
Q: What is a private IP address? O 34.0.0.1/8 O 192.168.4.5/24 O 173.16.0.1/16 O 193.169.0.5/24
A: Your answer is given below. Introduction :- A private IP address is a range of non-internet facing...
Q: rite in the programming language SWI Prolog the following predicate: The intersection of two sets...
A: Solution:- We have taken the following example for simplification to find the intersection ([3,1,9,2...
Q: What happens if the training error is constantly rising? How can we solve this problem? 4. Using Pyt...
A: from numpy i port exp def softmax(vector); e = exp(vector) return e/ e.sum() data = [0.4,2.0,0.001,0...
Q: mentation of a Doubly vLinkedList without us ints to +he lost node (s
A: package ll4;class Node{ Node prev; int info; Node next; Node(Node prev,int info,Node next){ this.pr...
Q: e table to another?
A: given - Which command should you use to add data from one table to another?
Q: 3 Find a regular expression that denotes the language accepted by the below finite automaton.
A: The answer is
Step by step
Solved in 2 steps
- You develop a Python application for your school. You need to read and write data to a text file. If the file does not exist, it must be created. If the file has content, the content must be removed. Which code should you use? Group of answer choices open(“local_data”, “r”) open(“local_data”, “w+”) open(“local_data”, “r+”) D. open(“local_data”, “w”)Course:Data Structure and Algorithms Kindly do this correct as soon as possible: I am providing the a menu base programs in java for address book by using doubly LinkedList and arrayList in a menu which are following: 1.Enter 1 for using Doubly linkedList 2.Enter 2 for using arrayList YOU have to use File handling which create person.text file like this: Perform these steps while application is loading up. You can add a new method loadPersons.• Establish a data channel with a file by using streams• Start reading data (person records) from file line by line• Construct PersonInfo objects from each line you have read• Add those PersonInfo objects in arraylist/ doublylinked list persons.• Close the stream with the fileRead records from a text file named persons.txt. The person records will be present in thefile in the following format. Add at least 50 records in text file, Ali,defence,9201211 Usman,gulberg,5173940…java program that Creates an INDEXCEPTION value of the unique vowels and unique consonants that the name that was given to you can create.Input: A string of the name that was GIVEN TO YOU. CASE SENSITIVE.Process1: For every unique vowel of a name, you need to get the first index of that vowel from the original string. 2: For each vowel index you get from step 1, you will get the unique consonant from that position. if the index is out of scope of the consonant array, ignore that vowel index. 3: For each unique consonant that you get from step 2, you need to get the first index of that consonant from the original string. 4: Get the value of indexception by adding all index you get from step 3.OutputTO BE DISPLAYED- 2 lists that consists of unique vowels and unique consonants- The vowel, the vowel index, the consonant, the consonant indexFINAL OUTPUT- The total indexception value of the name that was given to you.
- IN C++ Write a program that represents a playlist on a video streaming service. Each video has a title and total minutes. The user should be able to do the following with the playlist: Add video to list Remove video from list Display list in alphabetical order by title Exit playlist Your driver file will need a storage object that can handle any amount of videos. You will also need to provide a menu that shows and performs the various options above. The menu should continue to display until the user selects the "Exit playlist" option. A description of each menu option is listed below: Add video to list Prompts the user for a video title and total minutes Then your code stores the video onto the storage object of your choice Remove video from list Prompts the user for a video title Then your code removes that video from your storage object Display list in alphabetical order Displays the video's title and total minutes for each video in your storage object. Sample format:…Python: I am trying to write a simple GUI based program with two input fields “Directory/filename” and “word” next to each other and one output text field below. Using recursion the program should go through all the files and folders searching for the entered word. If a match is found the path to the file should be printed in the text field + the content of line the word is found in . It should also print how many folders and files has been searched and how many times the word was found. Any ideas?Suppose you wish to make an application that traverses a computer's filesystem and an- alyzes the amount of space (in megabytes) used by all of the various files and directories. Your application must store the following information: • The amount of space used by each individual file. • The total amount of space used by the contents of each directory (folder). For each directory, you need to store the total amount of space used by all files in that directory and all of the files in all of its sub-directories (sub-folders), sub-sub-directories, and so forth. For example: if the only files in the filesystem are: /Users/Mark/Documents/exam.tex (0.014 Mb) /Users/Mark/Documetns/exam.pdf (0.3Mb Mb) /Users/Mark/piratesong.mp4 (2.9 Mb) Then the stored size for /Users/Mark/Documents would be 0.314 Mb (sum of the sizes of the two files in the Documents directory), and the stored size for the directories /Users/Mark, /Users, and / would be 3.214 (sum of the sizes of all three files because they…
- With your knowledge in file systems write a javaprograms the can be used to: Rename a file in a directoryProgram a python program that demonstrates reading and comparing Create a python program that demonstrates reading and comparing multiple files, processes the input files based on the business rules, and produces an output file. Needed Files 1. The timeclock.txt Download timeclock.txtfile contains the hours worked data for every employee as well as the shift they worked. The layout for the file is as follows: EMPLOYEE_NUMBER, HOURS_WORKED, SHIFTTimeclock.txt 22476, 45, 3 24987, 30, 148283, 50, 285437, 25, 3 2. The personnel.txt Download personnel.txtfile contains the names of all employees and their hourly pay rates. The layout for the file is as follows: EMPLOYEE_NUMBER, EMPLOYEE_NAME, PAY_RATEPersonnel.txt 11235, Bob Smith, 10.50 22476, John Roberts, 12.3524987, Mary Johnson, 15.9032743, Brad Carson, 11.2548283, Alice Martin, 14.2085437, Aaron James,15.15 Note: Both the timeclock.txt and payroll.txt files are pre-sorted by EMPLOYEE_NUMBER in ascending order. Business…Design an application that can be used to read DVD titles from a text file. You do not have to write to the file, only write code to read the titles of DVDs from a text file called DVD.txt
- Using visual studio 2019 and using c# programming Create a WPF app that will take a value n from the user, representing a side of a square matrix. Your program will generate an n x n char matrix. The chars’ values are randomly generated. This matrix will be printed into a text file. Suppose the data that is contained in the text file is as follows. s d k w e a e r e q j g e u c n t q a d s w a s f w t n The user must be able to provide a string to your app and your app will verify that the string exists in the generated matrix. For example, suppose the user wants to see if qwerty is in the matrix. The user provides qwerty to your system, and they are informed it doesn’t exist in there! What if the user provides aereq? Well, the user will be informed the string exists. I will only be testing in the vertical (going down) and horizontal (going right to left) directions. Please explain your algorithms for this partThis question comes from the textbook:Starting out with Visual C# 5th Edition - Chapter 14 Programming Problem 2 Create an application that reads the contents of two text files and uses LINQ extension methods to perform the following: • It should display a list of all the unique words contained in both files.• It should display a list of the words that appear in both files.• It should display a list of the words that appear in the first file but not the second.• It should display a list of the words that appear in the second file but not the first.• It should display a list of the words that appear in either the first or second file but not both. Hint: Use set operations to perform these analyses. Also, see Chapter 8 for a discussion of string tokenizing.With your knowledge in file systems write a javaprograms the can be used to: Move a file to another directory