I want to run a C code in Linux. for(int i - 0; i <= degrees; i++) { It is saying to use the option -std=c99 or -std=gnu99 How do I run this? I've been trying gcc -std=c99 (programfile.c)
Q: In C++ Implement a simple version of the linux grep command in C++. grep - Looks through a file,…
A: Accept command-line arguments for the search term and file(s) to be searched. If no search term is…
Q: There is a famous dataset in R called "iris." It should already be loaded # in R for you. If you…
A: Take a look at the ‘iris’ dataset that comes with R. The data can be loaded with the code:…
Q: what does this mean/do in Python? when loading in a text file for i in f: line =…
A: The question has been answered in step2
Q: Please use JAVA code to write the solution, thanks A text file called names.txt contains one name…
A: Java Code for the given question :- import java.io.*;import java.util.*;class Main { public…
Q: I'm in a class called Client/Server Development. We are using MongoDB and Jupyter Notebooks to…
A: Python code for crud operations: orders_dao.py from datetime import datetimefrom sql_connection…
Q: An “inverted file” is a critical data structure for implementing applications like the index of a…
A: To perform the file operation, store the words in input file named as - input.txt. Now while running…
Q: Please find attached the assignment. As a student, Python is completely new for me so please answer…
A: Solution: I have solve the problem in python code with comments and screenshot for easy…
Q: hed password file that contains password hashes for different users. Also, you will be provided with…
A: Implement a password cracker using C++ Source code must be well documented (comments). You will be…
Q: You are a cyber investigator, your task is to write a python program that can read file signatures…
A: Here we write python program to read file and store signature in list:…
Q: getline(ss,token, ' '); price = stoi(token); getline(ss,token, ' ');…
A: I have given an answer in step 2.
Q: write in C your own static library for dynamic allocation of memory (library should allocate and…
A: The following code is the complete implementation of mmaps taken from bootlin…
Q: Please help! in c++ or C please! Implement a simple security software program using symmetric key…
A:
Q: b. What does the program write? B E apstry.py Grace Fred Eve Dan Carel Alles Fred Carel Bob Alice…
A: The program understanding is very very easy . #Here we are importing some modules to use import…
Q: Would you be able to help me with this code? I'm having difficulty understanding how to put it into…
A: ApproachTo implement matrix multiplication using pthreads with a thread pool, you need to divide the…
Q: I WANT A CODE IN C++. PLEASE DO NOT COPY AND PASTE FROM THE ALREADY PRESENT AWNSER!!! i have…
A: PROGRAM CODE: #include <stdio.h> #include <unistd.h> #include <string.h>…
Q: Debugging Informatlon for IAP Test3 O COMPILER STACK TRACE None PROGRAM EXECUTION STACK TRACE None…
A: EXPLANATION: - 8 9 7 6 5 4 3 2 1 0 The brief message given in output states things present in…
Q: Why should we use a linker? Group of answer choices A. The linker can help you find errors in your…
A: A linker is a program that takes one or more object files generated by a compiler and combines them…
Q: With this code I am getting Traceback (most recent call last): File "main.py", line 38, in…
A: class Artist: def __init__(self): self.name = "None" self.birth_year = 0…
Q: I am learning C++ and having difficulties understanding the concepts from my reading. A project that…
A: In C++, constructors and destructors play a crucial role in object-oriented programming for resource…
Q: In this assignment you are required to implement the following using convolution . a) apply sharpen…
A: In this assignment you are required to implement the following using convolution . a) apply sharpen…
Q: In Python. I am suppose to write a file using this code that takes the info in the names file and…
A: Please provide a correct path for the file that you are reading please check if you are calling each…
Q: Write a C++ program: Make a class for rectangle which calculates perimeter and area. then write two…
A: Answer: Algorithms: Step1: we have create a Ractangle class which contains the length as l and…
Q: In many computer systems and networks, different users are granted different levels of access to…
A: Here is the code in Java to implement the logic described above: public static String access(int[]…
Q: The operators is ( + : " addition process" , -:subtraction process", *:"multiplication process" ,…
A: It has add, sub,multiply, divide, clear, history function to check two numbers can perform or not…
Q: I'm trying to output a Mad Lib story, but I keep getting an "Exception in thread" error. How do I…
A: next() method of Scanner, is giving NoSuchElementExceptionbecause there is nothing in input to read…
Q: Suppose you are writing a C++ function that has three alternative approaches for accomplishing its…
A: #include <iostream>#include <string> using namespace std; void alter1(){ throw…
Q: Write a C# program that prints a multiplication table, like this: 1 2 3 4 5 6 7 8 9 10…
A: Please refer to the following for the algorithm of the code =>Start the program.Define a variable…
Q: In my python Maya script, I am trying to make a snowball followed by more snowballs varying in…
A: using System;using System.Collections.Generic; public class Master{ public CyclicNetwork…
Q: 'm getting the error (below) when trying to run the program. My debugging skills aren't too great,…
A: Below i have given some resolution:
Q: Write a C++ program by using separating specification from implementation , Make a class for…
A: 1 Rectangle.h Programming Approach Using the necessary header file Using the standard namespace…
Q: Suppose we are using standard c++ to write our own shell We have a loop that goes through the…
A: Answer: Our instruction is answer the first three part from the first part and I have given answered…
Q: Hello, could you assist me with this code? I'm encountering difficulties and I'm unsure how to…
A: In the realm of parallel processing, the concept of matrix multiplication stands as a quintessential…
Q: Python 3.7.4: Write a loop that reads strings from standard input, where the string is either "duck"…
A: Following are some error in given code:There is not requirement to add countWrong expression in…
Q: Write a C++ program (practice4.2.1.CheckNumbers.cpp) that lets the user enter a series of integers,…
A: Odd and Even numbers concept: Even number: A whole number that is divisible by 2 or multiple of 2 is…
Q: Write a Python program, in a file called forest_map.py, to solve the following problem: Hansel and…
A: Define crumbsLeft() to print the amount of breadcrumbs remains Define distance() update the…
Q: Implement a simple version of the linux cat command in C++. Use the system calls open(), get() and…
A: The question is asking to implement a simple version of the "cat" command in C++. The "cat" command…
Q: Please write in C++ and run in linux. This assignment is about fork(), exec(), and wait() system…
A: Include the iostream library. Declare the child program function. Define the main function with…
Q: please fix the issue hihlighted in yellow and please check my code. In python language: Write a…
A: The algorithm of the code is as follows: 1. Get input from the user 2. Convert the input to an…
Q: I am trying to read in a text file called "lines.txt" that holds an entire dictionary of words with…
A: First you need to use the ifstream class object to read from file.
Q: t needs to support c++11 and I should be able to call it with ./radixsort in the linux terminal.…
A: One of the most important goals in any C++ project is to simplify the project's construction so that…
Q: This functon will: Receive an integer called degrees that represents the number of degree for…
A: The C code is given below with output screenshot
Q: So am looking in this tutorial on how to use imageio in python. And it keeps giving me this error.…
A: Imageio is a Python library that provides a simple interface for reading and writing a variety of…
Q: The task is to implement part of a linter program using python. Specifically, you must be able t…
A: Introduction: Here is the algorithm for implementing the linter program: 1) Define a function…
Q: Exception in thread "main" java.lang.NumberFormatException: For input string: "x" for Java code…
A: The Java code that is provided introduces sumIt and findMax, two recursive procedures that are part…
Q: Write two c++ programs to implement a distributed version of a multithreaded Huffman decompressor…
A: The task is to create two C++ programs - a server program and a client program - that implement a…
Q: One problem with dynamic arrays is that they don't carry around their size. Create a structure,…
A: Copy below code and paste into dynarray.h header file at position indicated by '//Define the…
Q: Write two c++ programs to implement a distributed version of a multithreaded Huffman decompressor…
A: Parse the input file and build a frequency table that counts the number of occurrences of each…
Q: I have some code to try to run a sobel edge detection program for images. I am confusded on how to…
A: Here's the algorithm of the code in simple steps:Define the Sobel kernels for edge…
I want to run a C code in Linux.
for(int i - 0; i <= degrees; i++) {
It is saying to use the option -std=c99 or -std=gnu99
How do I run this? I've been trying
gcc -std=c99 (programfile.c)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
- I am trying to write a program for a bowling score in C++ Here is what I have so far: #include <iostream> int main() { const int numFrames = 10; //The number of frames is 10 const int numThrows = 21; //The number of throws is 21 int throws[numThrows]; //Input for when the number of throws is <21 int frameScores[numFrames]; //Frame scores for the frames /*Computes a score for a different amount of throws in case the number of throws is less than 21 */ for (int i = 0; i < numThrows; ++i) { //std::cout << "Please enter score for throw: " << std::endl; std::cin >> throws[i]; } /* Calculates the bowling scores for the first 9 frames */ int throwIndex = 0; for (int frame = 0; frame < 9; ++frame) { int frameScore = throws[throwIndex]; if (frameScore == 10) { //For a strike frameScore += throws[throwIndex + 1] + throws[throwIndex + 2]; ++throwIndex; } else { frameScore += throws[throwIndex + 1]; if…I am getting a floating point exception in my code. Which is to divide matrix 1 by matrix 2 (striaight up .. not with linear alebgra) I was told to add an if/esle loop to fix it.. not sure what to do though can someone help .. attached the division part of the code... matrix one contains: 2 2 1 4 5 2 4 5 6 1 1 2 4 5 6 1 2 3 4 4 2 3 4 4 2 matrix 2 contains: 1 2 0 2 1 1 2 2 4 1 1 2 3 5 1 2 3 4 5 6 1 2 3 4 5 (matrix 2 needs to contain atleast one zer)C++ coding assigment 5 I am having trouble to get my coding working because I addressBook.cpp and addressbook.h is not working well with my Person so I need help figure out the problem because I have don't know how to fix my coding so that both person and addressbook work for the main. remainder: due not type in java. Make sure to type c++ in different files like Main.cpp, Person.cpp, Person.j, AddressBook.cpp, and AddressBook.h This small project is geared to test your understanding of File IO. AddressBook Exception Create an AddressBookException class that you can use to throw exceptions in your address book. Your class should have a constructor that will allow you to set the particular message that corresponds to the error. You should use your custom exception class to throw an error in the findPerson method if the person being searched for cannot be found, in the getPerson method if the AddressBook is empty. You should also throw an error any time that the addressbook file that…
- By using Linux (Centos 7 or 8) develop a C program to apply the memory times and times, run with this shellprogram, then show the MemToal,MemFree,Active with excel file. Here are the codes for reference. Code no.1: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> main(int argc, char *argv[]) { void * p[100]; int i,times,msize; if(argc!=3) { times=20; msize=1024; } else { sscanf(argv[1],"%d",×); sscanf(argv[2],"%d",&msize); if(msize>10240) msize=10240; msize=1024*msize; if(times>100) times=100; } for( i=0; i<times; i++) {…I need to write c++ code with separate compilation that can output a 3d object. Please help. Instrction said do not edit main . /* separate compilation Cube.hh Cube.cc Cylinder.hh Cylinder.cc optional: Sphere.hh Sphere.cc Drawing.cc Drawing.hh */ int main() { //translate([0,10,0]) cube(25); Cube c(0,10,0, 25); // make a 25x25x25 cube at location (0,10,0) c.print("cube.stl"); //translate([100,0,0]) cylinder(r=20,h=50, $fn=30); // center of base circle x=100, y=0, z=0 r=20 h=50, number of facets = 30 Cylinder cyl(100, 0, 0, 20, 50, 30); c.print("cyl.stl"); //%50 bonus // (x,y,z) r, numfacets Sphere s(-50,50,50, 25, 10); s.print("sphere.stl"); //+%100% Drawing d; // constructor, destructor, ... d.add(new Cube(0,10,0,25)); d.add(new Cylinder(100,0,0,20,50,30)); d.print("drawing.stl"); }Can you please help me with this code because I am struggling on how to do this, This has to be in C code. question that I need help with: Write a multithreaded program that calculates various statistical values for a list of numbers. This program will be passed a series of numbers on the command line and will then create three separate worker threads. One thread will determine the average of the numbers, the second will determine the maximum value, and the third will determine the minimum value. For example, suppose your program is passed the integers 90 81 78 95 79 72 85 The program will report The average value is 82 The minimum value is 72 The maximum value is 95 The variables representing the average, minimum, and maximum values will be stored globally. The worker threads will set these values, and the parent thread will output the values once the workers have exited. (We could obviously expand this program by creating additional threads that determine other statistical values,…
- In c++ i have a .dat file tha contains the following 123-45-6789 Kirk James 44.7 88.99 0.0175 124-89-0007 Bond Jane 45.6 65.75 0.04 405-77-8911 Puff Blossom 40 33.88 0.03 405-10-9871 Puff Buttercup 41.2 45.66 0.047 223-03-8761 Puff Bubbles 37.8 33.44 0.015 980-11-2201 Joneski Kasey 23.1 10.77 0.033 115-88-7619 Crooke I.M.A. 25.4 88.75 0.02 777-00-1232 Smith Alias 43.5 22.3 0.034 345-89-0022 DeMann Stan 56.7 29.45 0.065 210-37-1192 Jones Jeane 48.9 20.33 0.025 103-22-4321 Smith Alias 33.5 19.67 0.063 i have working code that reads the file but I have no idea on how to pass pointers of each variable i have to the void calculations() functions to be able to see wich person has over time and such #include <iostream>#include <fstream> void calculations();int main() { string ssn ,lastname, firstname;float hours, pay_hour, personal_tax_rate ifstream myfile ("employee.dat"); while (myfile >> ssn >> lastname >> firstname >> hours >> pay_hour…Please use C++ and Linux ! Convert the Node struct in the sample code sample code(parsetool.h) to a proper class named XMLNode. Think about what additional methods and helper functions you might need and create prototypes for those too. Make sure to include comments in the .h file specifying the purpose, input, and output, of each function. Submit your .h file here. The code resource is here: //drive.google.com/drive/folders/1NhEKOOJBs-GE8HW6Z5eM-5bJ2KmOtU4P?usp=sharing parsetool.hhttps: #ifndef _PARSETOOLS_H_#define _PARSETOOLS_H_ #include<string>#include<map>#include<vector> using namespace std; struct Node { string name; // name of the node map<string, string> properties; // any properties found in the node start tag string content; // if the node has content between the start and end tag, put it here vector<Node*> children; // if the node has children, create new Nodes and store their pointers here }; Node parseline…I am working on this code for C sharp, but can not get my variable to display using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Diagnostics;//Write a program that takes a string as an argument. //First reverse the string.// input "apple" //Second //reverse the input "elppa" // Thrid replace the vowels with the following ints {a=0, e = 1, i = 2, o = 2, u = 3} // Last add “aca” to the end of the string Please review my code and help with the above requirements namespace sullivans_A1_1{ class Program {//Write a program that takes a string as an argument. static void Main(string[] args) { string name = "apple"; string reverseString = ""; reverseString.Reverse(); Console.WriteLine("The like" + name); Console.WriteLine(" The reserve of apples is " + reverseString); //First reverse the string. // input "apple"…
- Write a program in C++ that reads a list of enrollments from a file and prints a class roster for the teacher. The program would use files, functions, and classes.Here's what the output should look like: $ ./enroll.out Welcome to the Roster Generator Program!!! Please enter the name of your names file: bob.dat I'm sorry, I could not open 'bob.dat'. Please enter another name: csc442 File 'csc442' opened successfully! Name | Major | Phone # | Town ----------------+--------------------+---------------+------------------- Jason James | Computer Science | 555/555-1122 | Westfalia, HI 665 Faruk Ahmed | Medeaval French Po | 332-4546 | Slimsville, PQ 22 Sean Ramirez | Underwater Basket | 1-444/411-441 | Fritter, HO 44331 Happy Gilmore | Yellow Tail Migrat | | Simonton, SZ 1124 Total Enrollment: 4 Thank you for using the RGP!! Endeavor to have a gyroscopic day! $Hello, I have an assignment in the python program. Professor gives me a text like this: January.txt 217283921200.5619.18,29.15,78.75,212.10100,20,410.29 The first line is an account number, the second line is the beginning balance, the third line is withdrawn and the last line is deposits. How can I separate every single line to read them. Can I use the loop function? Below is the assignment direction. Thank you very much ___________________________________________________________ Complete the following program: a) Read in and store the data from the file called “January.txt”. This file includes the customer’s account number, beginning balance, withdrawals, and deposits. (In that order) Note: Make sure you look at the file before you begin the project! b) Prompt the user for his/her name and age. c) Convert the customer’s name to a username that consists of the first letter of the first name, the first 5 digits of last name, and the customer’s age.(All letters should be lowercase)…Write a PYTHON code with at least 2 functions (one should call the other). The function which is called by the first function should also be able to be called directly. Execute these functions with various parameters such that you can demonstrate the following: Each function should have some debug code so you can trace calls to the functions and activity within the functions. Each should handle at least 2 types of exceptions (both shouldn't handle the same exceptions). The function called by the first one should, at some point, generate a division by zero error, but should NOT handle this error. The function that calls the division by zero function should handle a division by zero error. Catch one error and raise a different one. Have some finally code (perhaps with some debugging output) Demonstrate & explain: call the division by zero function both from your main program and from the other function. show that the exception isn't handled by the function itself but by the other…
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)