The______________ standard library function displays information on the screen.
Q: Language: c++ Please solve problem completely according to requirement, program should must be…
A: ArrayList will be used here. add(), remove() and iterator are some of the methods that will be used…
Q: 3. Create a text-based, menu-driven program that allows the user to choose whether to add, subtract,…
A: #include <iostream>using namespace std; //Function Prototypesvoid add(double, double);void…
Q: Create a C++ Grocery Program according to this guideline: Linked List Functions Pointers Arrays The…
A: Problem 1 #include#include#include//define MAX items in list#define MAX 1000using namespace…
Q: Exercise 1 The following codes will show the difference between reference by value or address.…
A: Difference between call by value and call by reference Call by value Call by reference A…
Q: 1. The circle has two data members, a Point representing the center of the circle and a float value…
A: #include<stdio.h>#include<math.h> typedef struct{ float x; float y;}Point; typedef…
Q: Code writing Complete the program below writing by writing the prototypes and function definitions…
A: Given: #include <iostream> using namespace std; // Write the prototypes for getData() and…
Q: C++ LANGUAGE (FUNCTION) EXERCISE No. 2 Juan wanted to create a program that would use block of code…
A: To create a student grade report. Given formula: Prelim grade= Quiz*20%+Seatwork*10%+Lab…
Q: Create a C Program: Robot walks in a Cartesian plane. The program has four commands: a] Origin -…
A: Coded using C language.
Q: 29. A calorie is a unit of energy. The 15°C calorie is defined as 4.1855 Joules. The following…
A: Normally we know that, the one small calorie is equal to the 4.184 joules. the by using this we can…
Q: convert the following c++ program into pep/9 assembly language. please send the screen shot of…
A: #include <iostream>using namespace std;int main(){ int x,i; cout<<"enter a…
Q: Can you please show the input and output of the code it would help very much. There is also a text…
A: main.cpp - #include <iostream>#include <vector>#include <string>#include…
Q: s as indicated by the comments. na directory of your choice, and then make th le Calculator.cpp.
A: Complete c++ code: #include <iostream>#include <string>using namespace std; // Write…
Q: 7. In C++ LANGUAGE, cin and cout are the predefined stream а) орerators b) functions c) data types…
A: 7. e 8. b
Q: C Language Create 3 functions for your program. Function 1: Display Menu Create a function to…
A: #include<stdio.h>#include<string.h>//function to display menuvoid Display(){…
Q: 6. Write function main to do the following a. Declare four integers that will represent the four…
A: import java.util.LinkedList;public class Threadexample { public static void main(String[]…
Q: (C PROGRAMMING ONLY) 3. How Much Is The House? by CodeChum Admin There's this house I want to buy…
A: - We have to print the entered value using the dereferencing operator. - * is called the…
Q: Write it in python. Check the example properly. You have been hired as an app developer for the…
A: Here, Code instruction is given.
Q: C++ Please explain the code below. It doesn't have to be long, as long as you explain what the…
A: We need to find the function performed by the given code. The given code marges two array into a…
Q: A. USER REQUIREMENT Our University has rules and regulations that has to be followed by every…
A: Answer: C++ Source Code: #include <iostream>#include <iomanip> using namespace std;int…
Q: 1- printlnfo: This function prints your name and ID to the screen. 2- caleShapeArea: This function…
A: First, we need to display the menu, then we need to read the required input parameters and then…
Q: TOPIC: POINTERS 1.Create a C function main() and do the following sequence of instructions: 1.…
A: In the C programming language, a pointer is a variable that holds the location of another variable.…
Q: create a pusedocode #include #include #include using namespace std; int main (){ float…
A: Declare variables ga,fir,sec,thir,fin, q1, q2, q3, L1, L2, L3, L4, LP,t,fe,le,p,q; Input…
Q: D. Using Classes and Files: Create a C++ program for Banking record system. Note that: program must…
A: Actually, c++ is a powerful general purpose language.
Q: program5_3.py Write a program about triangles. You need two files, a module file and an executable…
A: def area (a, b, c): s = (a + b + c) / 2 area = (s * (s - a) * (s - b) * (s - c)) ** 0.5…
Q: Using C code Create a library named SoccerPlayer that defines the soccer player metrics. A…
A: Create a structure and save file as SoccerPlayer.hInclude file SoccerPlayer.h into the main…
Q: Project -1 A. Using functions and Files: Create a C++ program that let the user perform an…
A: The above Program is Solved in C++ below:
Q: 7. In C++ LANGUAGE, cin and cout are the predefined stream a) operators b) functions c) data types…
A: GIVEN : 7. In C++, cin and cout are the predefined stream .... 8. what do we use at the end and…
Q: State each of the following statement is TRUE or FALSE. 1. Identifier refers to a memory cell used…
A: Identifier refers to name given to entities such as variables, functions, structures etc.…
Q: Reducing code duplication with functions. Many songs are made of parts, like verses and chorus, that…
A: The program is implemented in C++ with a structured approach. We will be printing the lyrics of the…
Q: Customized step counter Learning Objectives In this lab, you will Create a function to match the…
A: here we are calculating the miles walked based on the number of steps given and the stretch of each…
Q: How many statements can we have inside a function? O Less than the number of statements in the main…
A: There is no restriction on the number of statements in main() or any other function, or in a…
Q: Create a C++ program called FindDomainFromEmail. Declare an array arrEmail. Assign a number of email…
A: /*C++ program for FindDomainFromEmail which displays the list of emails based on user selected…
Q: Instructions 1. Write a console application that initializes at least five (5) variables or…
A: How to make a console application in C# Open the C# application in Visual Studio. Then go to File…
Q: cin function is not used to read a string because It stops reading after pressing space It is used…
A: The answers are given below with example and explanation
Q: 7. In C++ LANGUAGE, cin and cout are the predefined stream . a) operators V / 1 b) functions c) data…
A: cin and cout are used for reading input and printing the output respectively. cin is an object of…
Q: C++ Language) Create a function that writes to a file named Inventy.txt the information of 8 items.…
A: Below is the implemented program for above problem, further comments are included in the program for…
Q: H. Using Structures and Files: Create a C++ program for Banking record system. Note that: program…
A: C++ is a powerful general-purpose programming language. It can be used to develop operating systems,…
Q: Function 1: Password Checker function _one(pwd) Create a JavaScript function that meets the…
A: Due to company policies I am compelled to solve only one question that is the first question. Please…
Q: WAP in c++ that reads the file FIRST.TXT and creates a new file named SECOND.TXT, to contain only…
A: main.cpp ====================== #include <iostream>#include <fstream>#include…
Q: write alogrithms for the following blocks of code... 2nd Block: int main() { //-------defining…
A: - We have to create the algorithm from the code provided.
Q: Create a Quiz Game program strictly using C LANGUAGE. You are required to use these 3 types of…
A: #include <stdio.h>#include <string.h>#define MAX_STRING_SIZE 40 int main(){ int i;…
Q: This is a program in C language. Help me debug this program. it has 3 errors. Please upload a…
A: Given program is a C++ program, not C program. Because iosteam, cout, cin all these are used in C++.…
Q: Hi pleas help me i need the solv by uesing online java compiler Create the principal program,…
A: Below is the required Java program: - Approach: - Define the class StuDetails. Declare the…
Q: Create a class Student that contains three members
A: Programming plan First, define the constant MAX as 40 that represents array size. Create a class…
Q: C++ Need Help with 3 part #include #include using namespace std; void PrintMenue() { cout <<…
A: I am answering the first 3 parts c - Number of non-whitespace charactersw - Number of wordsf - Find…
Q: Code in c++ please make a program that has two file one main.cpp and other .h header file 1. by…
A: void readdata(){ ifstream fin; fin.open("student.dat",ios::in|ios::binary); student st;…
Q: use pointers Design a scientific calculator in C++. Display the main menu to the user and according…
A: Program code: //include required header filess #include <iostream> #include<math.h>…
The______________ standard library function displays information on the screen.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- in C++ PLEASE #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <stdlib.h> #include <iostream> #include <pthread.h> #include <semaphore.h> #include <atomic> using namespace std; // The length of time the program should run int run_time; // The buffer that will be produced into and consumed from. int *buffer; int buffer_size; // The number of producers and consumers we will have int num_producers; int num_consumers; // TODO: Declare the semaphores that you will need to implement this algorithm // Semaphores are of type sem_t // TODO: Declare a mutex that you will use in your implementation. // Use type pthread_mutex_t // TODO: Declare any other global variables you will need to // use to implement your algorithm // These atomic variables will be used simply to generate unique numbers // to identify each thread. atomic_int producer_num(0); atomic_int consumer_num(0); // This is the function that will be…99.Code in Develop a Java program using NetBeans for Codex. Your program should initially display a menu to the user. The menu should have three options, namely (1) Register for a Training Programme (2) Check Registration details (3) Exit Program (see Figure 3 attached). The program should make use of two functions, registerApplicant() for registering a new applicant andsearchDetails() for searching the registrant details. The registerApplicant() function should accept four lines of arguments namely: the registrant’s name, the registrant’s surname, the registrant’s ID number and training programme. It should then write these details to a text file.To write to the text file or retrieve the product details from the text file, you must have a text file to which you write and store the registrant details. Your text file should be named registrants.txt Also, ensure that the program repeatedly shows the menu until the point when option 3 is selected which terminates the program.01. Question Code in Develop a Java program using NetBeans for Codex. Your program should initially display a menu to the user. The menu should have three options, namely (1) Register for a Training Programme (2) Check Registration details (3) Exit Program (see Figure 3 attached). The program should make use of two functions, registerApplicant() for registering a new applicant andsearchDetails() for searching the registrant details. The registerApplicant() function should accept four lines of arguments namely: the registrant’s name, the registrant’s surname, the registrant’s ID number and training programme. It should then write these details to a text file.To write to the text file or retrieve the product details from the text file, you must have a text file to which you write and store the registrant details. Your text file should be named registrants.txt Also, ensure that the program repeatedly shows the menu until the point when option 3 is selected which terminates the program. .
- Language: C Concatenate two strings using pointers and dynamically allocating the memory for the results. Read two strings from the keyboard using the fgets function. Dynamically allocate the memory for the result using malloc function. Using pointers, copy the first string to the result , except the null terminator ( ’\0’) from the end from the first string. Copy the second string to the result, including the null terminator. Print your results. Free up memory with the free function. Use valgrind to check memory usage.Determine what will be printed from each output of statement of this code below: #include <iostream> using namespace std; int main() { int apple; int *location; apple = 24; // a is an integer // aPtr is a pointer to an integer location = &apple; // aptr set to address of a cout << "The location of apple is " << &apple << << "\n The value of the location of the apple is location; cout << "\n\nThe value of apple is " << apple << "\nThe value of the location is " << *location; cout << "\n\nOveral inverse operator are as follows" << "\n & (* aPtr) << &*location) << "\n*(&aPtr) '<< *(&location) << endl; return 0; }Create a function called volume The function will calculate the volume of a cube. It will receive 3 integers, length, width and height. It will return the volume as an integer.
- C++ Programming I Program 4: C++ Craps Game Functions in files, random numbers , stringstream and precision Craps is a popular dice game played in casinos. The C++ variation is as follows: Make a bet. Roll two dice. Each die has six faces, representing values 1-6. Check the sum of the faces showing on the two dice.: If the sum is 2, 3 or 12 (craps), you lose. If the sum is 7 or 11 (natural), you win. If the sum is anything else, a point is established (the sum of the dice you rolled) and you continue to roll until you re-roll the point (you win) or you roll a 7 (you lose). This program will contain 6 functions to be called from main and from another function. The functions will be contained in two files: Functions.h, which contains the function prototypes, and Functions.cpp, which will contain the function implementations (or bodies). Do not forget to put include guards in the Functions.h file. Begin the program by declaring variables…(C PROGRAMMING ONLY) 4. Man's Best Friendby CodeChum Admin We all know what man's best friend is. A dog! ? Let's create one in our program using the pre-existing struct Dog provided. Instructions: In the code editor, you are provided with the definition of a struct Dog. This struct needs a string value for its breed. Furthermore, you are provided with a displayDog() function which accepts a struct Dog as its parameter.Your task is to create a Dog, take in a string user input, and then set it as the Dog's breed.Finally, call the displayDog() function and pass that Dog you created.Input 1. The breed of the Dog Output Enter·the·breed·of·the·Dog:·Golden·RetrieverArf·arf!·I'm·a·Golden·Retriever3) Username Program. Write a program that builds a computer system user name given a person’s name. Ask the user for the first name and last name (separately) and then displays the computer system user name which is the first 3 characters of the last name, the first 3 characters of the first name followed by a number 7. Write a function to return the username. Start with the program username.py and add your function makeusername. Sample output: Give me a first name: Neil Give me a last name: Thompson Computer System name is: ThoNei7
- TOPIC: POINTERS 1.Create a C function main() and do the following sequence of instructions:1. Declare two integer variables x and y.2. Declare two pointer variables p and q.3. Assign the following values: x=15, y=25.4. Print the values of x and y.5. Let the pointer p points to the address of x6. Print the value of x and the address of x using the pointer variable p7. Increment the value of x by 5 using the pointer variable p8. Print the value of x (using x and p variables)9. Let the pointer variable q points to the address of y.10. Print the value of y and the address of y using the pointer variable q.11. Add the value of x to the value stored in y using their pointer variables p and q.12. Print the new values of x and y using the pointer variables p and q.13. Let pointer p points to the address where the pointer q also points.14. Print the address of the variable pointed to by p and q.15. Change the value of y (let y=50) using the pointer p16. Print the value of x and y (using their…Numbers that are the same as the direction of reading when they are read backwards and straight are called Palindromic numbers. Write a C program that writes to the screen whether a number entered by the user is a palindromic number. The part that finds the palindromic number will be written as a function and the Pointer will be used. Example: 101,232,3663,8008, etc.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. 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 Name:";getline(cin, mn);bool found;found = //call you removeMovie()here if (found == false)cout…