49,764 Topics

Member Avatar for
Member Avatar for Johny_5
Member Avatar for Alina99900000

Write C++ Function named “ReverseIt” in which use enter a number, program reverse it and display reversed number on the console

Member Avatar for rproffitt
0
26
Member Avatar for TB_651
Member Avatar for Ayna_1

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 …

Member Avatar for rproffitt
0
70
Member Avatar for Battlecode10

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 …

Member Avatar for Dani
0
79
Member Avatar for Mnashmanne

: 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 …

Member Avatar for rproffitt
0
99
Member Avatar for motseilekgoa

using recursion, write a c++ function findlargestNode() which returns the largest node in a bst

Member Avatar for rproffitt
0
24
Member Avatar for mehmoodfahad199

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; …

Member Avatar for rproffitt
0
24
Member Avatar for Jonah_4

What are the byte values of basic data types : char , int , long , long long, float, double.?(using sizeof() )?

Member Avatar for Husoski
0
148
Member Avatar for Aldrich_2

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; …

Member Avatar for rproffitt
0
92
Member Avatar for ytgaamer

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 …

Member Avatar for rproffitt
0
148
Member Avatar for Claire_6

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; …

Member Avatar for rproffitt
0
99
Member Avatar for MD_546

QI: Write a C ++ program, using function, to counts uppercase letter in a 20 letters entered by the user in the main program.

Member Avatar for rproffitt
0
17
Member Avatar for Brylyn Crish

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. …

Member Avatar for jwenting
0
51
Member Avatar for Abhirami_1

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

Member Avatar for rproffitt
0
423
Member Avatar for Mohamed_144
Member Avatar for daledan

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..

Member Avatar for Mian_13
0
754
Member Avatar for NotAceGG

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

Member Avatar for Husoski
0
72
Member Avatar for Leopold II

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 …

Member Avatar for Leopold II
0
23
Member Avatar for renatobessa
Member Avatar for SylveeAshley

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() …

Member Avatar for Husoski
1
207
Member Avatar for NotAceGG

#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' …

Member Avatar for rproffitt
0
39
Member Avatar for Fossi
Member Avatar for Maulana_1

#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] …

Member Avatar for rproffitt
0
94
Member Avatar for Billclinton

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

Member Avatar for rproffitt
0
52
Member Avatar for Duki

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 …

Member Avatar for Dani
1
5K
Member Avatar for Ravi_76
Member Avatar for Kayra

#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 <= …

Member Avatar for rproffitt
0
95
Member Avatar for Ismayil36

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 …

Member Avatar for rproffitt
0
17
Member Avatar for Haneen_1

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 …

Member Avatar for rproffitt
0
100
Member Avatar for Simiyu
Member Avatar for fariraituge
Member Avatar for JackSterllING

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.

Member Avatar for rproffitt
0
48
Member Avatar for Eu_531

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!

Member Avatar for Naheedmir
0
79
Member Avatar for Shishir_1

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.

Member Avatar for rproffitt
0
26
Member Avatar for ComSciNum7

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> …

Member Avatar for tinstaafl
0
154
Member Avatar for Ali_698
Member Avatar for Prajkta_2

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

Member Avatar for rproffitt
0
153
Member Avatar for Rifki03
Member Avatar for Gabriela_4

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 …

Member Avatar for rproffitt
0
63
Member Avatar for agrbinoo.albaker

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 …

Member Avatar for braian44
0
726
Member Avatar for Gabriela_4

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 …

Member Avatar for rproffitt
0
169
Member Avatar for Haneen_1

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 …

Member Avatar for rproffitt
0
51
Member Avatar for NinjaLink

"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 …

Member Avatar for Nor_492
0
7K
Member Avatar for hamad_2

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

Member Avatar for rproffitt
0
37
Member Avatar for Muhamad_7

#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; }

Member Avatar for tinstaafl
0
33
Member Avatar for anes1

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 …

Member Avatar for rproffitt
0
40
Member Avatar for c++help

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):"<< ' '; …

Member Avatar for vishakha_3
0
11K
Member Avatar for Muhammad_263

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.

Member Avatar for Reverend Jim
0
58
Member Avatar for ferrerjulie

The End.