49,764 Topics
![]() | |
Write a program that sorts an array of integers using pointers. in c+++ | |
Write C++ Function named “ReverseIt” in which use enter a number, program reverse it and display reversed number on the console | |
Plz make it for me I tried but I can't solution it ?? | |
Hi! When I am running this code, the output looks how I expected it to be, but the problem is that I cannot go back to home page whenever I want to. I dont know why but when I tried to go back to home page after visiting the tips … | |
I am currently creating a Hangman program using Object oriented programming in C++. I tested my words class and it runs perfectly with a sample main that I was using. The classes that I need help with are Hangman and HangmanConsole. I am not sure what to do to get … | |
: Mining Temperature Data The highs and lows of the 3 first weeks of 2020 temperature data are available on a piece paper and we have decided to store them in a three-dimensional array in which the first index represents the 3 first weeks of the year, and take the … | |
using recursion, write a c++ function findlargestNode() which returns the largest node in a bst | |
Implement a class for vehicleType with data members "int YearModel, int speed and make (of type string or charll)". With following member functions; - Constructor with parameter, receiving "YearModel and make" and initialize other data members with ZERO. - int GetYearModel() const; - int GetSpeed( const; - string GetMake() const; … | |
What are the byte values of basic data types : char , int , long , long long, float, double.?(using sizeof() )? | |
I have a variable called **arrayForStudents**. it has 5 columns you can see how should it be applied from line 51 to line 63 code block but I am getting trouble how should I add the value as simple as interting values in the database. I need help using System; … | |
I am making a tic tac toe game, and have completed it. Now I am trying to implement a library to my code and I chose ncurses, because it seems easier to add and will allow me to change the color of the input for the game. However, I can't … | |
Hi! I need help with my assignment. I need to convert this one to C language. I've already changed the cout to prinf, but somehow it doesn't run. Help please. #include <stdio.h> int main(){ int order,no_deals; cout<<"Grocery"<<endl; cout<<endl; cout<<"(1) Eggs 6 pesos only."<<endl; cout<<"(2) 1 kl Rice 60 pesos only."<<endl; … | |
QI: Write a C ++ program, using function, to counts uppercase letter in a 20 letters entered by the user in the main program. | |
A sari-sari store needs a program that can help it add the corresponding profit and VAT values to its inventory. The program should add 5% to the base price for the profit amount. The 12% VAT should be added to the price after the solving for the price with profit. … | |
Create a c++ program that reads a CSV file and prints the rows at even positions. For example, if the CSV file has 10 rows, print rows 2, 4,6, 8 and 10 | |
| |
help!!!... i have homework to create a simple address book in Visual C++ it should Add, Delete, Modify, Display A Record using classes/class, file handling & structure... It would be a big favor doing it.. | |
class Complex { private: int a,b; public: set_data(int,int); show_data() { std:: cout<<"\na="<<a<<"\n"<<"b="<<b; } }; Complex::set_data(int x,int y) { a=x;b=y; } main() { Complex c1; c1.set_data(3,4); c1.show_data(); } Error: error: 'cout' is not a member of 'std' I tired to slove this error but this is not slove | |
Hello, Just wanted to say hello as I found the site today and joined up. And for the record to save time name is Fred not leo. I alway choose random names on all sites which is why here I used Leopold II. I am currently learning C++ for fun … | |
I am writing a program that calculates the volume of a cylinder when you input the diameter and height, using the formula 1/4*height*3.14*diameter^2 However the issue is, whenever I do that, the volume always comes out to be 0 when I run the program. #include<iostream> using namespace std; int main() … | |
#include<conio.h> #include<iostream> struct book int bookid; char title; float price; display(book); book input(); ; int main() book b1; b1=input(); display(b1); display(book b) std::cout<<"\n"<<b.bookid<<" "<<b.title<<" "<<b.price; book input(book b) book b; std::cout<<"Enter Bookid,Title,Price :"; std::cin>>b.bookid>>b.title>>b.price; return(b); error: 1st : error: 'input' was not declared in this scope 2nd : error: 'display' … | |
#include<stdio.h> main() { int A[9]={6,3,1,5,7,4,2,8,9}; int Temp, I, J, K; printf("sebelum \n"); for(I=0; I<=9-1; I++) { printf(" %d ", A[I]); } for(K=0; K <= 9; K++) { J = K; for (I=K+1; I<=9-1; I++) { if (A[I] < A[J]) J = I; } Temp = A[J]; A[J] = A[K]; A[K] … | |
A company by the name focus computer system has a standard rate of 1.6% of the salary of every employee Write a c program that accept employee salary as to display the rate amount after it's application | |
Hey guys, here's the question I'm asked. **a.** *Define an enumeration type, triangleType, that has the values **scalene, isosceles, euilateral, and noTriangle**.* **b.** *Write a function, triangleShape, that takes as parameters three numbers, each of which represents the length of a side of the triangle. The function should return the … | |
#include <stdio.h> int main() ( float height, weight, bmi printf("Enter height in meter\n"); scanf("%f", &height); printf("Enter weight in kg\n"); scanf("%f", &weight); bmi = weight / (height * height); printf("Your BMI is %f\n", bmi); if(bmi < 15) ( printf("Your BMI category is: Starvation\n"); ) else if(bmi >= 15.1 && bmi <= … | |
Hi everyone, When a file is deleted in the ufs file system, only the path to that file is deleted and the data of the file remains on disk. How can I find this data, this data will help me to recover the file. (As a reminder, I do this … | |
Please can anybody help me? I'm a beginner . I need to write a c++ program that does the following : 1. Ask the user to enter two text file , the the first one contains a list of words in one column Regardless of their number , second one … | |
I am new in c++, java and python | |
The thing is to create a c++ program which recieve these coordinates x1,y1,x2,y2 in order to build an empty rectangle made of asterisks or whatever. I'm a beginner, so I need your help. Thanks. | |
Hi, I am a begginer and I can't find an useful full and free tutorial for using Open GL in game development... do anyone know a place to learn it? Also, an full C++ free tutorial would help me a lot! | |
Write a code in C++ that takes an undirected graph as input using adjacency list. Now apply BFS algorithm to find the farthest nodes from the source node. Take source node as input from user. | |
I'm having trouble with these functions made for a C++ hash table...any and all pointers in the right direction would be greatly appreciated! EDIT: table.h is the problem file, but I included node.h just in case! // FILE: table.h #ifndef TABLE_H #define TABLE_H #include <cstdlib> // Provides size_t #include <string> … | |
Write a inline function to find largest of three numbers | |
Create a code using python of random walk where food is placed in spots on the grid. Whenever a Walker runs into the food it eats it and reproduces | |
Address searchPrec (List L, infotype X, address *Prec) | |
Hello! I have a homework in which i should do this: **Input x+-3129 Output: 3x1+2-9=-4** I wrote this code and my output is : **3-1+2x9** Can somebody help me to find the problem and a way to calculate the expression in code? #include <iostream> #include<stack> using namespace std; bool isOperand(char … | |
Write a C++ program that inputs a wavelength and then displays the associated light color. If the wavelength is shorter than 400 nm or longer than 700 nm, display the message “Wavelength outside visual range”. Classify boundary wavelengths as the lower-wavelength color. For example, label a wavelength of 424 nm … | |
Hello! So I have this homework that i have no idea how to continue. this is an exemple of input,but i have to do it for a general one: **7 pencils car ball candy tshirt bike video_game Mike Andrew Inna** and the output must be like this: **Mike: pencils candy … | |
Hi..please can anybody help me..im beginner and i have a hard assignment i need to write a c++ program that do the follwoing : 1.aske the user to enter two text file the first one containe the text file ,the second one contain list of words in one column Regardless … | |
"Write a program that reads in ten numbers to an array. The program then reads the array and displays distinct numbers (i.e. if a number appears multiple times, it is displayed only once)" for example: 1 2 3 4 [B]5 5 [/B]6 7 [B]8 8[/B] 9 1 2 3 4 … | |
Q2. Write a method called countOdds in java that takes an array of 10 integers as a parameter which is given by the user. The method counts the odd numbers in the elements and return the count. please can someone help me with this its java programming | |
#include<iostream> using namespace std; int main() { string weekday; weekday= {"Mon","Tue","Wed", "Thu","Fri"}; cout<<"\n Please select day of booking:"; cin>>weekday; cout<<"\n Day of booking:"; return 0; } | |
Implement in c++ Design an invoice class that has the following fields o Name, Item id , price, quantity Support setter and getter for price and another attribute 2 constructor default one , and another one takes all the parameters Provide 2 function o Get total … | |
i have a program that has one little glitch but i dont know how to fix it. If you can help it would be great. [b][code][/b] int main() { int a, b, c; b=0; c=0; do { cout << "Please enter a positive integer (negative integer to stop):"<< ' '; … | |
Write a program to sort elements of the array in this order. The even indexed elements should be in descending order and odd indexed elements must be in ascending order. | |
The End.