
Concept explainers

Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images

I created a nano myfile.txt for the input file and it still doesn't work but you can see here that it is in the same directory at the very end and I am still getting the same issue. Any chance you could still help me with this?
[rainvifr@polaris:~]$ ls
advice.txt goals.txt Gradebook1.cpp Gradebook3.cpp Grades.txt HW1.cpp HW2.cpp HW2.cpp.save.1 lab1 #lab2.cpp# lab3.cpp lab4.cpp lab5.cpp lab6.cpp lab7.cpp lab8.cpp public_html
cs141 Gradebook1 Gradebook3 grades.txt HW1 HW2 HW2.cpp.save HW2.cpp.save.2 lab1.txt lab3 lab4 lab5 lab6 lab7 lab8 myfile.txt
[rainvifr@polaris:~]$ g++ Gradebook.cpp -o Gradebook3
g++: error: Gradebook.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
Im having trouble with calling in the file. Everytime I try and run the code it says fatal error: no input files and I was wondering how I would fix that?
I created a nano myfile.txt for the input file and it still doesn't work but you can see here that it is in the same directory at the very end and I am still getting the same issue. Any chance you could still help me with this?
[rainvifr@polaris:~]$ ls
advice.txt goals.txt Gradebook1.cpp Gradebook3.cpp Grades.txt HW1.cpp HW2.cpp HW2.cpp.save.1 lab1 #lab2.cpp# lab3.cpp lab4.cpp lab5.cpp lab6.cpp lab7.cpp lab8.cpp public_html
cs141 Gradebook1 Gradebook3 grades.txt HW1 HW2 HW2.cpp.save HW2.cpp.save.2 lab1.txt lab3 lab4 lab5 lab6 lab7 lab8 myfile.txt
[rainvifr@polaris:~]$ g++ Gradebook.cpp -o Gradebook3
g++: error: Gradebook.cpp: No such file or directory
g++: fatal error: no input files
compilation terminated.
Im having trouble with calling in the file. Everytime I try and run the code it says fatal error: no input files and I was wondering how I would fix that?
- Write a C++ program: Question: Make 3 text files that includes numbers inside of them. Then ask the user which file do you want me to open and then validate the file. if the file exists you have to print the following message: "The file you requested exists, what number are you looking for?" otherwise you print the following message" "Sorry the file that you requested does not exist" if the file exists, then read the number that user enters and search in the files. if the number exists in the file, print the following message: "The number you requested is in this file." otherwise: "The number you requested does not in this file." Note: Again, do the above question without using array.arrow_forwardIn C++ Create a program that outputs 10 strings (that the user inputs) to a file.arrow_forwardCan this be done in Java and not C++arrow_forward
- DescriptionWrite a program to compute average grades for a course. The course records are in a single file and are organized according to the following format: each line contains a student's first name, then one space, then the student's last name, then one space, then some number of quiz scores that, if they exist, are separated by one space. Each student will have zero to ten scores, and each score is an integer not greater than 100. Your program will read data from this file and write its output to a second file. The date in the output file will be nearly the same as the data in the input file except that you will print the names as last-name, first-name; each quiz score, and there will be one additional number at the end of each line:the average of the student's ten quiz scores.Both files are parameters. You can access the name of the input file with argv[1]. and the name of the output file with argv[2].The output file must be formatted as described below: 1. First and last names…arrow_forwardIn Python Write a program that consists of (at least) two function: A function that creates and saves data in a file. The saved data represents exam grades. In the function, you will create n random numbers in the range [0,100], where n is the number of students. The function can be called as follows: createFile(filename, n) Main function, in which the user inputs the file name and the number of students, then the main calls function createFile. The main should perform validation for n (should be > 0), and the filename (should end with .txt). I will explain how to validate strings in the coming lecture. Hint: a good developer will write four functions to solve the problem.arrow_forwardIn java create a function searchstd() that reads a search record from a text file file.txt when the function is called in mainarrow_forward
- This is phython not Java Lab: Write a file copying program. The program asks for the name of the file to copy from (source file) and the name of the file to copy to (destination file). The program opens the source file for reading and the destination file for writing. As the program reads each line from the source file and it writes the line to the destination file. When every line from the source file has been written to the destination file, it close both files and print “Copy is successful.” In the sample run, “add.py” is the source file and “add-copy.py” is the destination file. Note that both “add-copy.py” is identical to “add.py” because “add-copy.py” is a copy of “add.py”. Sample run: Enter file to copy from: add.py Enter file to copy to : add-copy.py Copy is successful. Source file: add.py print("This program adds two numbers") a = int(input("Enter first number: ")) b = int(input("Enter second number: ")) print(f"{a} + {b} = {a+b}") Destination…arrow_forward9b_act2. Please help me answer this in python programming.arrow_forwardWrite a C++ program that asks the user for a file name and a word for which to search. The program should search the file for every occurrence of the word. When the word is found, the line it contains should be displayed. After all of the occurrences have been found, the program should display the number of times the word was found in the file.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





