48,986 Topics

Member Avatar for
Member Avatar for eazy_man

Hi Guys Im looking for someone who can translate this c++ code to pseudocode . [CODE]#include <algorithm> #include <cctype> #include <functional> #include <string> bool palindrome( unsigned long n ) { unsigned long x = n; unsigned long u = 0; while (x) { u *= 10; u += x % …

Member Avatar for Koushik_3
-4
17K
Member Avatar for humbug

i have made a program in school that chooses a random number and you need to guess it. you put in a number and it says higher or lower. the only problem is that i can't set RAND_MAX and its a 4 or 5 diget number (havent figured it out …

Member Avatar for yw_046
2
29K
Member Avatar for Jeph_1

Hello, I am trying to count the number of characters in a string $a0 that return a 1 when passed to the function, otherwise return 0. Heres what I did: I dont have the correct answer __ output format must be 3, I have 11 .text .globl __start __start: # …

Member Avatar for rproffitt
0
135
Member Avatar for jennysolam25

I need help for this a program that will generate the receipt of the merchandise shop “The Blue Blood Shop”. The items available on their shop are as follows: Item Description Price (in Php) Deathnote Notebook 200.00 Bleach S10 Wristwatch 510.00 Pokemon Cards (Pack of 30) 35.00 Cardcaptor Sakura Mousepad …

Member Avatar for Jeph_1
0
111
Member Avatar for Abeiyh

Create a program that displays the result of a sales transaction. The calculation requires three numbers. The first number represents the product price. The second number is the salesperson commission. These two numbers should be added together. The third value represents a customer discount; subtract this third from the result …

Member Avatar for Dani
0
52
Member Avatar for Mariam_20

Hi, can someone give me an easy command that prevents a user from entering a negative value in the following code i made? thanks. #include <iostream> using namespace std; int main() { int X; int Y; cout<<"please enter the value of X and Y"; cin>>X; cin>>Y; float result; result=4*X^3+Y^3-4; cout<<"the …

Member Avatar for Schol-R-LEA
0
65
Member Avatar for mc8888

hi everyone...I need help on solving this question... Create a SavingAccount class. Use a static data member to contain the annualInterestRate for each of the saver. Each member of the class contains a private data member savingsBalance indicating the amount the saver currently has on deposit. Provide a calculateMonthlyInterest member …

Member Avatar for Zain_12
0
6K
Member Avatar for مبشر

//Basic libraries #include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> #include <stdbool.h> #include <time.h> #define Empty 0 #define P1 1 #define P2 2 #define Height 6 #define Width 7 int board[Height][Width]; char gamestr[41]; void show_game_list(){ //Open game file for reading FILE * fp; char * line = NULL; size_t len …

Member Avatar for Fifth Horseman
0
93
Member Avatar for MICKLUFFY

The first line of an input file, called tons.txt, only contains a single number between 1 and 9. Write a C++ program to input the number of tons from the input file and print out the equivalent in pounds, ounces, kilograms, and grams, to an output file, called report.txt. Also, …

Member Avatar for ivy.inc.Hugh
0
44
Member Avatar for Napoleon_1
Member Avatar for tixtqs

Hey, so I'm still very new at programming/coding and for fun, I wanna make some sort of script. For a offline fighting game. So let's say I press one key, it does one combo? does that make any sense? I just wouldn't know how to go about that is there …

Member Avatar for ivy.inc.Hugh
0
88
Member Avatar for Crona

I have a homework assignment that im not really sure how to approach as of right now, I've done some research but. I have not found really anything that would pertain to what I'm doing. Any help would be appreciated <3 . So far this is what I have: /****************************************************************************** …

Member Avatar for DGPickett
0
235
Member Avatar for Ahad_1

Hello! I'm working on this linked list project where I'm supposed to save the employee data in a linked list and apply some operations. and I am new with c++ so I'll show you my code and please help me with it. my questions are: 1- whenever I enter a …

Member Avatar for toneewa
0
130
Member Avatar for plang007

I do not know why when I compile it, on why does the last cylinder file print out multiple times int tags1 and tags2. I bolded them so you would see what I am talking about. Could someone please help me out? [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> …

Member Avatar for toneewa
0
243
Member Avatar for alan_30

as an game engine dev i created an console graphics engine to create blazing graphics contains lighting and shadows and draw algorithms and the for loop for my 3D part was running slow and no flicker but slowly generates the walls and everything and when i update the frame again …

Member Avatar for rproffitt
0
75
Member Avatar for vaishnavi_13

line 5: Declaration syntax error line 59: function containing do are not expanded inline line 153: function containing while are not expanded inline line 218: declaration terminated incorrectly

Member Avatar for toneewa
0
64
Member Avatar for Husnain_6

statement: write a code in which user first select what type calculator they want to use. Simple or scientific and on that basis they do the calculations. I have written the following code but it is not running. I am unable to figure out the problem. Please anybody help!! #include …

Member Avatar for Schol-R-LEA
0
84
Member Avatar for Nathan_22

C++ program that displays on the screen item codes with corresponding item descriptions and prices. It asks the user to enter the code of the item purchased by a customer. It looks for a match of the item code stored in items.txt. How to read a specific line from a …

Member Avatar for toneewa
0
742
Member Avatar for kuaina

Display instruction for the respondents to answer the survey using function displayInstruction(). -------------------------------------------------------------------------- |Survey of Student's Perception on Online Learning in Kolej Seri Sarawak | -------------------------------------------------------------------------- Dear Respondents, You are invited to answer this survey. Please respond to the following questions that corresponds to your response. The survey is divided …

Member Avatar for toneewa
0
136
Member Avatar for sprongklong

Write a program that converts pounds into kilograms. The program prompts the user to enter a number in pounds, converts it to kilograms, and displays the result. One pound is 0.454 kilograms. Here is a sample run:

Member Avatar for toneewa
-2
782
Member Avatar for HUSNAIN_5

Hi! My name is Husnain.I want to make a calculator using array in C++ language. So please can you help me to make this calculator?

Member Avatar for rproffitt
0
36
Member Avatar for Catszzzz

Please help me with my project. Currently i am trying to make a receipt that only list the things that you order. But i have no idea how to do it. Please Help #include <iostream> #include <stdlib.h> using namespace std; void check (); void start(); void printacc(double pa); void printphone(double …

Member Avatar for toneewa
0
127
Member Avatar for Joel_33

Anyone can help me? Create a C++ program that will contain a function to sort an array of 5 integers in ascending order, in which the function returns a pointer that points to the sorted array.

Member Avatar for rproffitt
2
121
Member Avatar for sankar2000

Hello. I am writing a program in C++ that is reading some files with `fstream` then writes with simple function and after that closes them. I created a `struct` and i keep there filetag,filepointer and lines. The problem is that from main i can't write or close the file ... …

Member Avatar for Schol-R-LEA
0
31
Member Avatar for Miguel Nicholas

To be honest with you, all the codes that i made were self taught, i had to advance myself to learn more stuff in C++ which my first challenge is to make a simple but clean made text based adventure game, but im at the wall atm. (don't judge me, …

Member Avatar for kidspointdotin
4
3K
Member Avatar for Mehak_3
Member Avatar for jwenting

I'm trying to use CLion (thus CMake) to create OpenGL applications using C++ on MacOS Monterey using a 2021 (so M1 based) Macbook. Glew2 and GLFW3 are installed correctly using Homebrew, XCode and the commandline tools are installed as well. Creating and compiling/running through XCode works fine, but using the …

Member Avatar for rproffitt
1
635
Member Avatar for Saim_5

i have initialized the elements of the array by reading the strings from a file, however when I call the sort function, either the program crashes or it just outputs NULL. What could be a more efficient way to store data from a file? the file that I have opened …

Member Avatar for Jim_532
0
180
Member Avatar for vaishnavi_13

line 5: Declaration syntax error line 59: function containing do are not expanded inline line 153: function containing while are not expanded inline line 218: declaration terminated incorrectly`

Member Avatar for indraagarwal
0
76
Member Avatar for complete

I am starting a new coding job with a new client. The problem I am having is that a lot of issues with namespaces that can not be found or maybe missing directives or an assembly reference. This, I think, is a common thing. So I am wondering where I …

Member Avatar for rproffitt
0
57

The End.