What is the difference between using +/-versus = when setting file permissions? Is there any benefit of using= instead of +/- too set permissions?
Q: Write an application using c++ classes that Asks for the name of a student asks for the name of a…
A: Step 1 : Start Step 2 : Create the class Academics which contains the private data fields. Step 3 :…
Q: In c++, using STL containers, iterators, and algorithms ADD data to the existing text file…
A: ALGORITHM:- 1. Take input for the command from the user. 2. Take input for the movie name and its…
Q: in c++ Declare and implement 5 classes: FloatArray, SortedArray, FrontArray, PositiveArray &…
A: SUMMARY: - Hence, We discussed all the points.
Q: (what the output is suppose to look like in pictures with all the animals ) (you don't have to…
A: class Pet { private String name; private LocalDate birthdate; private double price;…
Q: Please help! in c++ or C please! Implement a simple security software program using symmetric key…
A:
Q: Create a new file in c++. In this lab, you will add some functionality to the table ofmenu. Your…
A: Program Instructions:Declare variables and write a welcome message.Always convert the user's choice…
Q: please code in python redact_file: This function takes a string filename. It writes a new file that…
A: The redact_file function is a Python function that takes a filename as input and creates a new file…
Q: Using the data file capabilities of C++, create a Personnel file, personnel.dat on your drive and…
A: Program Instructions:Use do-while loop to repeatedly present the menu.Use switch statement to opt…
Q: Write a fragment of code in C++ that opens a file called txt for input. If the file does not exist,…
A: #include <iostream> #include <fstream> using namespace std; int main() { fstream…
Q: Modify the attached c++ file , so that the program finds the number of times the isPalindrome…
A: The C++ code is given below with output screenshot
Q: Suppose an exception is thrown in a function. What are the three things the function can do?
A: Exception handling: Exception handling is one of the important technique to handle the runtime…
Q: written in Java.
A: Complete explanation is given below.
Q: In python, rite a recursive function, displayFiles, that expects a pathname as an argument. The path…
A: Procedure Followed: Read a pathname and pass it as an argument to displayFiles recursive function.…
Q: Computer Science I need a C++ program that will take a list of random integers from a .txt file,…
A: The solution to the given problem is below.
Q: in c++ Declare and implement 5 classes: FloatArray, SortedArray, FrontArray, PositiveArray &…
A: Actually, array is a collection of elements.
Q: Three employees in a company are up for a special pay increase. You are given a file, say…
A: Actually, given information : Three employees in a company are up for a special pay increase. You…
Q: n C++, using STL algorithms, containers, or iterators, use the text file shoes.txt, where you want…
A: code #include<bits/stdc++.h> using namespace std; int main(){ string shoes; char…
Q: n c++, Using STL containers, components, and algorithms show all data from the text file movies.txt.…
A: PROGRAM: #include<iostream>#include<fstream>#include<string.h> using namespace…
Q: Two files, A and B which they are sorted. The files contain Numbers. Based on the files, create a…
A: Program plan: A and B contain numbers which are sorted we need to merge that A and B files and…
Q: Write in C++. Description: wzip and wunzip class overview: The next tools you will build come in a…
A: The task is to implement two C++ programs: wzip and wunzip, which are file compression and…
Q: Write a void function that will merge the contents of two text files containing the chemical…
A: This question is solved by C languages Programming. Program Plan :- merge2binary.c Define a…
Q: Write a write_scores function that opens the file, and writes scores and names from lst_scores and…
A: def write_scores(file_name, lst_score, lst_names): with open(file_name, 'w') as f: for i…
Q: The program has to be in c++ Can someone help with this program? Create a Student class with…
A: A Class is a user defined data-type which has data members and member functions. Member functions…
Q: C++: You will create a header file with implementation that performs the task. Together with the…
A: The program is written in c++ The header file merge.h is: void merge(char* A,char* B);…
Q: Assignment: Use OOP to implement certain details and requirements for the assignment. The lab…
A: Read from file and create Monkey objects Constructor that makes Donkey Family leap from “Papaya…
Q: Question: Consider a hash table to size 10. Write a program by using quadratic probing and insert…
A: Quadratic Probing: Quadratic probing is an open-addressing scheme where we look for the i2‘th slot…
Q: The objective of this question is to generate and read files that contain a list of random numbers.…
A: Here is the approach : Import the required libraries in the code . Create the method to create the…
Q: GDB and Getopt Class Activity activity [-r] -b bval value Required Modify the activity program from…
A: Explanation:- activity.c /* command line parsing via getopt example usage: getopt [-dmp] -f…
Q: use Java. Project description Purpose: To model a DFA (Deterministic Finite Automaton) and use it…
A: Below is the complete solution with explanation in detail for the given question in Java Programming…
Q: The function insert of the class orderedLinkedLis
A: Start the program.Create a class called orderedLinkedList with a private structure node to represent…
Q: Code done in C Write a piece of code in a function called password that creates a file with a…
A: Below is the required C program: - Approach: - Include the header files. Define the function…
Q: read the lines of the file until it reaches the end, print out the last line in the file, report the…
A: def print_last_line(fname): f = open(fname, "r") count = 0 for line in f: count += 1…
Q: write a program in C++ called “count” that lets the user retrieve a word count or a letter count of…
A: Q: Code the given problem in C++
Q: USE C++ could you write the code without setw( ) and setprecision(2) . thank you. A taxi company…
A: The question asks for a C++ program to assist a taxi company in identifying and displaying the car…
Q: you have been asked by a computer gaming company to create a role-playing game, commonly known as an…
A: The snapshots of the program source code (81.cpp,castle.h,character.h) and the ouput is provided…
Q: C++ Write a program that reads (arbitrarily many) integers from a file named by the user and…
A: Below is the required C++ program: - Pseudocode: - Start Procedure main() //Declare variables…
Q: he following project should be done in C++ language: Write a function (module) that reads the…
A: Write a function (module) that reads the contents of a file named Char.txt (you will have to create…
Q: Write a C++ program using classes that readslines from a file until the end of file. The program…
A: Program Approach:- Using header files. Applying the source file name. The file could not be open.…
Q: This Boolean function takes two filenames. If any line occurs in both files, return True. If not,…
A: plagiarism: This Boolean function takes two filenames. If any line occurs in both files, return…
Q: True or False We can define a custom generic exception.
A: Answer:- True.
Q: def analyze_file (filenane: str, pos_vords: List[str], neg_vords: List[str]) -> Given the name of a…
A: CODE SCREENSHOT:-
Q: The name should be able to be sorted last name first. Profession should be able to be sorted…
A: q: The name should be able to be sorted last name first. Profession should be able to be sorted…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- Please use Python for this question. Please format code properly when answering the question. Write a standalone function partyVolume() that takes accepts one argument, a string containing the name of a file. The objective of the function is to determine the Volume object that is the result of many people at a party turning the Volume up and down. More specifically: the first line of the file is a number that indicates the initial value of a Volume The remaining lines consist of a single character followed by a space followed by a number. The character will be one of ‘U” or ‘D’ which stand for “up” and “down” respectively. The function will create a new Volume object and then process each line of the file by calling the appropriate method of the Volume object which changes the value of the Volume. The function then returns the final Volume object. Guidelines/hints: This is a standalone function, it should NOT be inside (indented within) the class. It should be listed in…msleep**** For this assignment, you must name your R file msleep.R (using Rstudio) For all questions you should load tidyverse. You should not need to use any other libraries. Load tidyverse with suppressPackageStartupMessages(library(tidyverse)) The actual data set is called msleep Round all float/dbl values to two decimal places. If your rounding does not work the way you expect, convert the tibble to a dataframe by using as.data.frame() All statistics should be run with variables in the order I state E.g., “Run a regression predicting mileage from mpg, make, and type” would be: lm(mileage ~ mpg + make + type...) Before attempting to answer these, or if you lose points upon an attempt, please review all CodeGrade information provided in the CodeGrade overview submodule - if you do not you are likely to lose points. What is the variance in total sleep for carni vores and those whose conservation status is lc? Your answer should be in a 1 X 1 data frame with a value…What is the difference between using +/- versus = when setting file permissions? Is there any benefit of using = instead of +/- too set permissions?
- In C++ Develop a simple spell checker and word suggestion program using Hashing. A dictionary of words should be given as a first argument (filename) in the program. This input file is the simple text file "Dictionary.txt", where each line is a word (see Files section). The program must ask the user to give a word. (case 1) The program must respond with “True” if the word exists in the dictionary, and must suggest words (from Dictionary) starting with the same first two letters. At the end of each suggestion the exec. time (in micro-sec) must be displayed (see "TimeInterval.h" in Files section). (case 2) If the input word does not exist in Dictionary due to user misspelling, and considering the first letter is correct, the program should return a recommended word from the dictionary (only one word). For example, instead of the word sentence, the user enters snetence, setnence, sentens, or setence, etc; the program should return: "do you mean sentence?" If "no", return "false". If…C++ I cannot run the code. Please help me fix it. Below is the requirement of the code. Design and write a C++ class that reads text, binary and csv files. The class functions: Size: Returns the file sizeName: Returns the file nameRaw: Returns the unparsed raw data (use vector here to get the unparsed raw data)Parse: A external function to Parse the data. The function accepts the raw data and returns the data parsed by the function. This type of function is called a "Call-Back Function". A Call-Back is necessary for each file as each file requires different regular expressions to parse. With binary files, need to use RegEx to do the parse(). [My code doesn't have this part] Please refer to the Callback.cpp example on how to setup a Call-Back. CallBack.cpp: #include <string>#include <functional>#include <iostream>#include <vector>using namespace std; string ToLower(string s){ string temp; for (char c : s)…<<Write in Java>> - Challenge 7 File encryption is the science of writing the contents of a file in a secret code. Your encryption program should work like a filter, reading the contents of one file, modifying the data into a code, and then writing the coded contents out to a second file. The second file will be a version of the first file, but written in a secret code. Although there are complex encryption techniques, you should come up with a simple one of your own. For example, you could read the first file one character at a time, and add 10 to the character code of each character before it is written to the second file. - Challenge 8 Write a program that decrypts the file produced by the program in Programming Challenge 7. The decryption program should read the contents of the coded file, restore the data to its original state, and write it to another file
- Milestone #1 - Ask Quiz Type In a file called main.py, implement a program that asks the user for a quiz type and prints the file name for that quiz type. The program should have one input prompt: the integer value of the personality quiz number. Your program should print the welcome message and the list of the personality quizzes, ask for the test number, and then print the file name. You are required to use the provided dictionary with the personality quizzes names. The list of the personality quizzes should be printed in alphabetical order. See example below. Welcome to the Personality Quiz! What type of Personality Quiz do you want to run? 1 BabyAnimals 2 Brooklyn99 3 Disney 4 Hogwarts 5 MyersBriggs 6 Sesame Street 7 - StarWars 8 - Vegetablesvoid writeEmpToFile(Employee *emp, FILE *f) { fwrite(&emp->salary, sizeof(emp->salary), 1, f); fwrite(&emp->yearBorn, sizeof(emp->yearBorn), 1, f); fwrite(emp->ssn, sizeof(char), SSN_SIZE, f); int len = strlen(emp->name) + 1; fwrite(&len, sizeof(int), 1, f); fwrite(emp->name, sizeof(char), len, f); } If you don't want to look at all the code then please help me get the other section done from this code that I will put right here directly in the post if you need context on what this code needs to work with you can click on the link below https://onlinegdb.com/nWSAIx8hCnYou may use the vector and iostream libraries. You are allowed to use three built-in vector member functions (and no others) but you may not have to use them all. The member functions you are allowed to use are size(), at(), and push_back() Write a function that outputs a vector of doubles with each number in the vector separated by a space then a newline after the entire vector is output. The whole vector output should be preceded by a single line saying "Current Vector Contents:". Write a function that takes a vector a doubles and reverses the order of all the elements of the vector. Write a function that fills a vector of doubles with positive numbers using the standard input stream cin, terminate the input when the user enters any negative number. A single output prompt should precede the initial input stating directions for user. Write a main function that creates an empty vector, calls functions from 2 & 3 and calls your output function before and after each of your calls…
- In c++, Using STL containers, components, and algorithms show all data from the text file movies.txt. Please make sure the list updates once the user adds a new movie to the text file. Console Movies program COMMAND MENU show - user is able to see all available movies from movies.txt command: show The Adventures of a Babysitter $10 Barney $25 Larry the Car Man $15 Dora and the missing map $15 Ceasar and the Lunch Lady $10 Suzie and the Bad Kids $13.95 command: add cout << "What movie do you want to add?"; cin >> BeeHive $12; cout << "Movie added"; command:show The Adventures of a Babysitter $10 Barney $25 Larry the Car Man $15 Dora and the missing map $15 Ceasar and the Lunch Lady $10 Suzie and the Bad Kids $13.95 Beehive $12 movies.txt with all possible movies: The Adventures of a Babysitter $10 Barney $25 Larry the Car Man $15 Dora and the missing map $15 Ceasar and the Lunch Lady $10 Suzie and the Bad Kids $13.95C++ Programming Requirments: Please submit just one file for the classes and main to test the classes. Just create the classes before main and submit only one cpp file. Do not create separate header files. Please note: the deleteNode needs to initialize the *nodePtr and the *previousNode. The code to do this can be copied from here:ListNode *nodePtr, *previousNode = nullptr; Part 1: Your own Linked ListDesign your own linked list class to hold a series of integers. The class should have member functions for appending, inserting, and deleting nodes. Don't forget to add a destructor that destroys the list. Demonstrate the class with a driver program.Part 2: List PrintModify the linked list class you created in part 1 to add a print member function. The function should display all the values in the linked list. Test the class by starting with an empty list, adding some elements, and then printing the resulting list out.Put the class definition in House.h and the implementation of the constructors and functions in House.cpp 1. Define a class called "House", that represents the information of a house. A House is defined with these attributes: age (int), type (string) (for example Detached, Semi-Attached, Attached) and build_cost (double). Functions of the House class must perform the following operations: ✓ A default constructor which sets all the numeric instance variables to zero and the String instance variables to empty String. ✓ A constructor with 3 parameters which sets the 3 instance variables to the corresponding values passed. ✓ Implement a getter function for each of the 3 instance variables that will return the value of the instance variable. For example, the getX() function for the instance variable type must be called getType(). ✔ Implement a setter function for each instance variable that will assign to the instance variable to the value passed. For example, the setX() function for the…