HW1: Write a CPP program that reads items names and items prices of 50 items from KB and stores them in a file (prices.txt) line-by-line. After that, the program reads the previous file and writes the items that are priced over $100 in a separate file (prices 100.txt),
Q: what are some Azure Domain features? There are alternatives to Microsoft. What does AWS have in…
A: Introduction: Incorporates different services, tools, and templates to boost IT professional…
Q: How many states are there in the minimum-state DFA for the given NFA? Also how many final states…
A: NFA stands for Nondeterministic Finite automata in which every state contains 0 to many transitions…
Q: What are the drawbacks of using an attribute grammar to express all of a programming language's…
A: Attribute grammars are formal specifications that may be used to specify the semantics of a program,…
Q: lease continue tthe code below --- #include
A: #include <stdio.h>#include<conio.h> struct Employee { // declaring the members of…
Q: Use a flowchart in designing the logic. Geraldine’s Landscaping Service and Gerard’s Lawn…
A: Flowchart for given scenario.
Q: An array is a group of random memory locations that all have different data type Select one: True O…
A: Answer is given below :
Q: What are the benefits and drawbacks of Cosmos DB?
A: What are the benefits and drawbacks of Cosmos DB?
Q: What are the best ways to debug common Linux hardware, application, file system, and network issues?
A: Hardware logs in Linux: The cd/var/log command displays Linux logs. Then type ls to examine the…
Q: Jane is the manager of Atwech, a company that sells cosmetics globally and has outlets in many…
A: Introduction: Selling cosmetics or any other goods online has a far broader reach than conventional…
Q: Explain the meaning of the word "business processes" and how computer-based information systems may…
A: The solution to the given question is: Introduction Before learning it , we should discuss business…
Q: how does OSPF divide up a network and what two databases does OSPF maintain in a router?
A: OSPF: OSPF stands for Open Shortest Path First. It is developed by Internet Engineering Task Force.…
Q: cookies code to save username and password for 1 day
A: No Language is mentioned in question statement. So Providing solution in HTML and javascript. Code:…
Q: What are the benefits and drawbacks of CosmosDB?
A: Introduction: Microsoft's Azure Cosmos DB is a fantastic NoSQL database that is easy to use. It is…
Q: 2. Define a context-free n for the language : If L: the set of integers and prime numbers
A: Context free language is a language in which it is implemented by using a single stack. That means…
Q: Explain the key distinction between a telephone network and an Internet connection.
A: This question tells about the key distinction between a telephone network and an Internet…
Q: Why is it important to balance both organizational needs and human needs in designing software?
A: Software design is a process to transform user requirements into some suitable form, software design…
Q: Was Charlie exaggerating when he told Peter that cracking the encryption key with a brute force…
A: Was Charlie exaggerating when he told Peter that cracking the encryption key with a brute force…
Q: What is the value of a bit that is switched on? What is the value of a bit that has been turned off?
A: Introduction: A bit is a binary digit and has only two possible values, zero or one. The value of…
Q: Q2//Compare between wired and wireless LAN by: 1. Delay 2. Errors 3. Speeds 4. Standard 5. Which one…
A: The question is to compare wired and wireless LAN.
Q: What is it about information system design that makes it so susceptible to scope creep in the first…
A: Introduction: The suggestions of clients and other stakeholders are a significant cause of scope…
Q: (O Discoss 10T Rrotocal ar chi lechbure design goals veauind -to tarut a hori tantal Syskm of…
A: When it comes down to it, the overarching design goal of IoT archutecture is to target the…
Q: Describe how Eucalyptus implements a hybrid cloud paradigm in a few words. Yántnz girin?
A: Eucalyptus implements : Elastic Utility Computing Architecture for Linking Your Programs to Useful…
Q: What techniques does a social engineering hacker employ in order to obtain information about a…
A: Social engineering : Social engineering influences people's psychology to persuade them to undertake…
Q: 2. If L is a regular language over E, what can be said about the languages L1 = E* - and L2 =…
A: As per our guidelines, only 3 mcqs will be answered. So, please repost the remaining questions…
Q: Can someone please create a state diagram and state table using the following code? MEALY only…
A:
Q: Boolcan algebra and circuits 7. ★ Given the expression E = ry(x + y'): a) draw the circuit that…
A:
Q: Is it true that associative entities are likewise considered to be weak entities? What is your…
A: Introduction: An associated entity is one that is placed between two other entities to break up a…
Q: c) int sum(int n) { if (0 == n) { return 0; } else { return n + sum(n); } } d) void product(void) {…
A: Given: We have to Find the error (s) in each of the following program segments.
Q: Computer Science Give a brief explanation of applications of Computer Graphics.
A: let us see the answer:- Computer graphics are employed in every industry. Keep in mind that it has a…
Q: Explain how Eucalyptus uses a hybrid cloud model in a few words.
A: Introduction: Eucalyptus uses infrastructure as a service (IaaS) for private and hybrid cloud…
Q: Which logical appoopriate to emp ope tator is the most loy for assessing ie a numbesr- fals nside a…
A: => i have provided this answer with full description in step-2.
Q: When should a tuple data structure be used instead of a list data structure?
A: Start: We should have a much easier time choosing between the two now that we understand the…
Q: Simplify the following Boolean expressions to a minimum * :number of literals F = abc + (a + c) +…
A: The given equation is : F = abc + (a + c) + ābc
Q: Why do we need an L3 cache when a processor's L1 cache can work quickly?
A: Cache: - This is a sort of memory that is extremely quick, acting as a buffer between the CPU and…
Q: Do you have any general opinions about the quality and availability of educational Internet access?
A: The use of the Internet for education facilitates information sharing and communication. It allows…
Q: Java code to check if user entered year is leap year or not
A: Code is given below :
Q: What exactly is failure? What are the many forms of software failures?
A: Justification: If a user feels that the programme no longer delivers the intended output in relation…
Q: What are the best ways to debug common Linux hardware, application, file system, and network issues?
A: Many distinct factors can cause Linux hardware issues: Before attempting to diagnose a problem, it's…
Q: Examine the individuals who could be interested in using your data warehouse. Is it possible to…
A: Introduction: Data warehouses are used for business reporting and analytics. Historical data is…
Q: Describe how disruptive technologies like the Internet and related technologies have aided Disney…
A:
Q: What does parallel computing imply?
A: Parallel Computing is a kind of Computing where multiple tasks are initiated and completed at the…
Q: A long-distance provider charges the following rates for telephone calls: Rate Category Rate per…
A: The Answer start from step-2.
Q: Use a flowchart in designing the logic. Create the logic for a program that accepts a user’s birth…
A: Create the logic for a program that accepts a user’s birth month and year and passes them to a…
Q: In C++, the semicolon was used to illustrate a nonuniformity. In C, talk about how to use the…
A: The semicolon is used in various languages for a variety of purposes. It is used in a variety of…
Q: 3 or more sentence per question. 1.What is the emerging role of social media in the society? 2.How…
A: Answer :
Q: Write a program that calculates the area of some simple figures (i.e. a square and a rectangle). One…
A: #include <iostream>using namespace std; // add your own exception class hereclass MyException…
Q: What is the difference between encapsulation and a message object in an oriented programming…
A: This is a programming technique that hides implementation information. It drastically reduces the…
Q: Uninitialized array elements contain -1 as a default value. Select one: True False
A: EXPLANATION: A collection of things stored in contiguous memory spaces is referred to as an array.…
Q: O Discuss 19T Piotocal archilecbure design goal S veauied -to tart a horizantal Syskm of al-world…
A: here we have given solution for the questions asked in step 2.
Q: Display all powers of 2 that are less than 20000. Display the list in a properly formatted manner,…
A: Pascal program is given below
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 5 images
- C++ Create a program that reads a file containing a list of songs and prints the songs to the screen one at a time. After each song is printed, except for the last song, the program asks the user to press enter for more. After the last song, the program should say that this was the last song and quit. If there were no songs in the file to begin with, the program should say that there are no songs to show and quit. The program should begin by asking the user for the name of the input file. Each song consists of a title, artist, and year. In the file, each song is given on three consecutive lines. Create this program using a class Song.C++ Create a program that reads a file containing a list of songs and prints the songs to the screen one at a time. After each song is printed, except for the last song, the program asks the user to press enter for more.After the last song, the program should say that this was the last song and quit.C++ Add a search command that asks the user for a string and finds the first line that contains that string. The search starts at the first line currently displayed and stops at the end of the file. If the string is found, the line that contains it is displayed at the top. In case the user enters a string X that does not occur in the file, the program should print the error message: ERROR: string "X" was not found. Attached is the first lines of the .txt file
- C++ do not use chegg Write a program that reads from a text file named “sales.txt”, which contains the sales figures (double) of a store. Your program should: Display the average, the highest, and the lowest sales figures Remember to: Test the file open error Close the file at the end. text file 284.12223.09579.12998.651237.84764.75395.65458.01670.353765.003842.10190.23335.35662.952719.253564.02193.23222.231457.2089.751323.65234.35789.89224.67663.95245.38C++ Add a search command that asks the user for a string and finds the first line that contains that string. The search starts at the first line currently displayed and stops at the end of the file. If the string is found, the line that contains it is displayed at the top. In case the user enters a string X that does not occur in the file, the program should print the error message: ERROR: string "X" was not found.Python Program Language Write a program that takes in a sentence a user inputs, turns in into title case and appends it to a file on a new line called title.txt. At the end of the sentence add the word count.
- C++ Visual Studio 2019 Write a program that asks the user for the name of a file. The program should display the contents of the file on the screen. Each line of screen output should be preceded with a line number, followed by a colon. The line numbering should start at 1. Here is an example: George Rolland 127 Academy Street Brasstown, NC 28706 If the file's contents won't fit on a single screen, the program should display 24 lines of output at a time, and then pause. Each time the program pauses, it should wait for the user to strike a key before the next 24 lines are displayed. Note: Save text below as the file to use and name it forChap12.txt file for this assignment. The line numbers should NOT be reset for each screen. Text: No one is unaware of the name of that famous English shipowner, Cunard. In 1840 this shrewd industrialist founded a postal service between Liverpool and Halifax, featuring three wooden ships with 400-horsepower paddle wheels and a burden of 1,162 metric…C++ Programming. Associative and unordered associative containers. Associative containers (set, map, multiset, multimap). • When executing a given task, the input values must be read from a text file. Task : Create a program that deletes a set of elements from a single word of a given string type and creates a second set of elements that consist of a single word, and also displays it on the screen.Problem Definition You are provided with a text file (employees.txt) containing a number of text lines. Each line contains a record of one employee. Each record has three attributes: Title: string, Prof. (Professor) or Dr. (Doctor). First and Last names: string. Salary: float number. The attributes are separated by the character (',). Figure 1.a, 1.b, and 1.c show a sample of employees.txt files. Dr., Julia Scott, 141518 Dr., Julia Scott, 141518 Prof.,Joan Stewart, 111673 Mr.,Ali Al-shukaili,122311 Prof., Sana Al-Abri, 131673 Prof.,Joan Stewart Dr., Fadi A1-Rasdhi, 153790 Ms., Salwa Al-Youssfi, 111675 Dr., Daniel Cooper, 153790 Dr., Lillian Brown, unknown Dr. :Benjamin Russell:117642 Dr., Daniel Cooper, 153790 Dr., Lillian Brown, 67251 Dr., Benjamin Russell,117642 Prof., Patrick Bailey, 72305 Dr., Ralph Flores, 118457 Dr., Douglas Flores, 181793 Dr., Lillian Brown, 67251 Figure 1.b: A sample of the text file 'employees.txt" Figure 1.a: A sample of the text file 'employees.txt' without…
- JAVA PPROGRAM Write a program that prompts the user to enter a file name, then opens the file in text mode and reads names. The file contains one name on each line. The program then compares each name with the name that is at the end of the file in a symmetrical position. For example if the file contains 10 names, the name #1 is compared with name #10, name #2 is compared with name #9, and so on. If you find matches you should print the name and the line numbers where the match was found. While entering the file name, the program should allow the user to type quit to exit the program. If the file with a given name does not exist, then display a message and allow the user to re-enter the file name. The file may contain up to 100 names. You can use an array or ArrayList object of your choosing, however you can only have one array or ArrayList. Input validation: a) If the file does not exist, then you should display a message "File 'somefile.txt' is not found." and allow the…C++: Matching Program Create a datafile that contains the first name, last name, gender, age, height, smoking preference, eye color and phone number. Add a variety of records to the file. A sample file looks like: Write a program that opens the file and reads the records one by one. The program will skip any records where the gender preference is not a match. Of those records that match the gender preference, check to see if the age and height are between the maximum and minum preferences. Then check to see if the smoking preference and eye color are also a match. If at least 3 of the remaining fields match, consider the record a partial match, and print it in the report. If all 4 of the remaining fields match, the record is a perfect match and print it in the report with an asterisk next to it. At the end of the program, close the file and report how many total records there were of the specified gender, how many were a partial match, and how many were a perfect match. See the…Computer Science In C++ can someone make a code where it reads a txt file and displays the text file that has pending shipping orders. I would also like the code to be able to modify the text file in terms of canceling shipping orders or view shipping orders.