Write c++ program to show the Deque Demo's main source file?
Q: Declare a buffer using a . space directive in the .data segment, of at least 80 bytes. Use a…
A: In mips => Declare a buffer using a .space directive in the .data segment of at least 80 bytes.…
Q: 8. Given a square matrix, calculate the absolute difference between the sums of its diagonals. For…
A: Required language is C++: First matrix: 1 2 3 4 5 6 7 8 9 Primary diagonal…
Q: C++
A: Introduction C++ is a type of programming language that is basically been demonstrated under…
Q: In C++, write a program to test the results of printing the integer value 12345 and the decimal…
A: We have to write a program to test the results of printing the integer value 12345 and the decimal…
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: Write a program to read a file and print that in haskell language on console. You should maintain…
A: Requirements :- Write a program to read a file and print that in haskell language on console. You…
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: Task 2. In digital electronics and modern computer hardware, a flip-flop is sequential digital…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
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: Write a C++ program proj1.cpp that lets the user or the computer play a guessing game. The computer…
A: Sample Run 1: Sample Run 2:
Q: You are tasked with writing a C++ program that simulates a simple library system. The program should…
A: In this question we have been given requirement to code the simple library systemLet's code and hope…
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: Write a C++ program that performs basic arithmetic operations including addition,…
A: Create an object for file operations. Declare two variables for two operands. Declare a character…
Q: How do I create multiple variables from the same line in an external .txt file in C++?
A: Syntax: filename<<var1<<var2<<var3; example: #include <iostream>#include…
Q: In C++. I am unable to print the number along with each line in the output below. Help me. I am…
A: In the for loop while printing the given string "Hello", the value of loop variable should be…
Q: In c++ please. Thank you! A contact list is a place where you can store a specific contact with…
A: Required language is C++:
Q: Test it in the main function Create e musicplayer with 3 songs. Play the current song. Play the next…
A: Solution:…
Q: A contact list is a place where you can store a specific contact with other associated information…
A: C++ programming language : The middle-level programming language C++ was created by Bjarne…
Q: 5. A Second Program For this second programming exercise, write a C++ program that can read in a…
A: So here I will take n as double then take reciprocal of n. Below I provided code in C++.
Q: 5. Write a program to calculate students' average test scores and their grades. You may assume the…
A: C++ introduction:- 1. A computer language developed as an extension of C, C++ is pronounced "see…
Q: You are to write a C++ program that performs basic arithmetic operations including addition,…
A: Approach – Create an object for a file. Open a file with the help of an object. Declare two…
Q: Then just fill in the rest of the grid with random letters (don't worry if they happen to spell…
A: Programming languages like Python may be steadily rising in popularity, but C++ is faster than any…
Q: Write a C++ program to CreateDirectory
A: Program Code: #include<iostream>#include<dir.h>#include<process.h>using namespace…
Q: I've been at this for a while. I'm unsure why the output has a newline. C++
A: After fixing the given code, I have provided C++ CODE along with CODE SCREENSHOT and OUTPUT…
Q: In c++ and please without the use of vectors. Thanks very much! A contact list is a place…
A: source code #include <iostream>#include <vector>#include <string> using namespace…
Q: C++: Create a basic contact book where you can store and then retrieve contact information. The…
A: 1. Class contactBook with the information to be stored: class contactBook{ char…
Q: You come across the following line in someone's C++ source code: using std::endl; This line is an…
A: Here endl " denotes the END-of-Line or newline, This is define in<ostream> header file…
Q: Write a C++ program that can read the contents of the file “Test.doc", and replace cach vowel with a…
A: #include<fstream> are used for file handling in C++ To open a file we use ifstream and for…
Q: Write a complete C/C++ program that opens the file "grades.txt" for reading. Then, the program…
A: ifstream is used to read file
Q: Write an application that stores 12 integers in an array. Display the ingeter from first to last,…
A: Introduction Arrays: It is a collection of variables with related data types that are all…
Q: Write a complete C++ program that reads a line of input and prints it out; however, if the string…
A: Introduction: In this question, we are asked to write a program to read a line, if the count of char…
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: Bi-dimensional Array Create a bi-dimensional float array with 2 rows and 3 columns (2x3). Each row…
A: The source code of the program #include<iostream>using namespace std;void…
Q: In c++ and without the use of vectors, please. Thanks very much! A contact list is a place where…
A: i will give this question answer in next step.
Q: Create a social network, Chirper, that lets the user add new Chirps and like existing Chirps. It's…
A: RollSpecificNumber()Here is the Chirp class implementation, in the file chirp.h: code: #ifndef…
Q: Write a program in C++ that prints a sorted phone list from a database of names and phone numbers.…
A: Actually, program is a executable software that runs on a computer.
Step by step
Solved in 4 steps with 2 images
- create a passphrase generator on c++ that follows this. Please make sure the code works on c++ visual studios Diceware™ is a method for picking passphrases that uses ordinary dice to select words at random from a special list called the Diceware Word List. Each word in the list is preceded by a five digit number. All the digits are between one and six, allowing you to use the outcomes of five dice rolls to select a word from the list. Here is a short excerpt from the English Diceware word list: 16655 clause 16656 claw 16661 clay 16662 clean 16663 clear 16664 cleat 16665 cleft 16666 clerk 21111 cliche 21112 click 21113 cliff 21114 climb 21115 clime 21116 cling 21121 clink 21122 clint 21123 clio 21124 clip 21125 clive 21126 cloak 21131 clock The complete list contains 7776 short words, abbreviations and easy-to-remember character strings. The average length of each word is about 4.2 characters. The biggest words are six characters long. The English list is based on a longer word list…In c++ and please without the use of vectors. Thanks very much! A contact list is a place where you can store a specific contact with other associated information such as a phone number, email address, birthday, etc. Write a program that first takes as input an integer N that represents the number of word pairs in the list to follow. Word pairs consist of a name and a phone number (both strings). That list is followed by a name, and your program should output the phone number associated with that name. Define and call the following function. The return value of FindContact is the index of the contact with the provided contact name. If the name is not found, the function should return -1 This function should use linear search. Modify the algorithm to output the count of how many comparisons were performed during the search, before it returns the index (or -1). int FindContact(ContactInfo contacts[], int size, string contactName) Ex: If the input is: 3 Joe 123-5432 Linda 983-4123…Please due in C++ If possible can explain what should I put in StudentInfo.h file what in StudentInfo.c Thank you
- Working on an assignment for C++ codding. Need a little help. I need to write a function that takes in the user's input and returns true if the input contains "polly", "cracker", or "hello". Thanks in advance!Do not use Swing for the console output--the console output must be displayed in the console. Write the following code in Java. Using classes of the Java Collections Framework, write a program that allows the user to specify a text file, open the file, and print a two-column table consisting of all the words in the file together with the number of times that each word appears. Words are space-delimited and case-sensitive. The table should appear in the console (do NOT use Swing/JTable) and list the words in alphabetical order. Implement try/catch blocks for cases where the file cannot be opened.I am learning C++ and would like to make cleaner code. I am learning on Udemy.com how having the main at the bottom of the program helps when making blocks of code. What I would like to do is take some code I already have, and have the user enter two prime colors to make a mixed color, then ask the user if they would like to mix another color with two of the same prime and one other prime color to get: yellow-green, yellow-orange, orange-red, red-purple, blue-green, and blue-purple. Is my logic flawed? What is the correct logic? How would I set up this code to have different functions outside the main with the main at the bottom? I know it is supposed to read the information first somehow. I just can't process how to write it. #include <iostream>#include <string> using namespace std; int main() { string arr[] = {"red", "blue", "yellow"}; int color1, color2; string mixedColor; char choice; do { cout << "Enter one prime color followed by a second…
- Write a Java program that opens a file and counts the whitespace-separated words in that file. You may obtain the name of the input file either from the command line or via prompt and user input. Be sure to clearly document the method chosen. You may test your program using any number of text files; however, you must be sure to test your program using the Sample Text File provided at the end (excerpt.txt). Sample Text File There was nothing so VERY remarkable in that; nor did Alice think it so VERY much out of the way to hear the Rabbit say to itself, `Oh dear! Oh dear! I shall be late!' (when she thought it over afterwards, it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural); but when the Rabbit actually TOOK A WATCH OUT OF ITS WAISTCOAT- POCKET, and looked at it, and then hurried on, Alice started to her feet, for it flashed across her mind that she had never before seen a rabbit with either a waistcoat-pocket, or a watch to…In c++. The instructions are in the image. Please do not change existing code below just add to what is needed. I am very confused. Can you please show the input and output of the code it would help very much. There is also a text file which is named "input.txt" and it reads. Different solutions i have seen but i keep getting errors and errors i am still confused. Movie 11Genre1Movie 22Genre2Movie 33Genre3Movie 44Genre4Movie 55Genre5 main.cpp #include <iostream>#include <vector>#include <string>#include "functions.h" int main(){vector<movie> movies; char option; while (true){printMenu();cin >> option;cin.ignore();switch (option){case 'A':{string nm;int year;string genre;cout << "Movie Name: ";getline(cin, nm);cout << "Year: ";cin >> year;cout << "Genre: ";cin >> genre;//call you addMovie() herecout << "Added " << nm << " to the catalog" << endl;break;}case 'R':{ string mn;cout << "Movie…Write a program that queries information from three files(given to you). The first file contains the names and telephone numbers of a group of people. The second file contains the names and Social Security numbers of a group of people. The third file contains the names and annual income of a group of people. The groups of people should overlap. Your program should ask the user for a telephone number and then print the name, Social Security number, and annual income, if it can determine that information. Sample run1: Enter the phone number (7 digits, with a dash): 555-1234 555-1234 is associated with Bob Bob's SSN is 000300021 Bob's salary is 55000 Sample run2: Enter the phone number (7 digits, with a dash): 675-4566 Couldn't find a name associated with that number. Sample run3: Enter the phone number (7 digits, with a dash): 000-2345 000-2345 is associated with John John's SSN is 000000004 John's salary is 65000 python language
- 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! $List two features we used from the C++ standard library, including a short explanation of why you would use the feature and which header file must be included. Example: The std::cin object is found in the iostream header file and is used to read characters from the keyboard.Create a complete C++ program that will read from a file, "studentInfo.txt", the user ID for a student (a number, but use a string to hold it). Next it will need to read three integer values that will represent the 3 exam scores the student got for the semester. Once the values are read and stored in descriptive variables it will then need to calculate a weighted course average for that student. Below is an example of what the calculation would be for the program. score1 * .3 + score2 * .3 + score3 * .4 The program will then determine the letter grade for that student and write the user ID and the letter grade to a file "studentGrade.txt" The standard grading scale will be used: A --> 90 – 100B --> 80 - 89.99C --> 70 - 79.99D --> 60 - 69.99F --> below 60 To keep from the user being confused as if anything happened or not, give them a ending statement i.e. Something like the following: Program has completed and the output can be found in 'studentGrade.txt' Files…