49,755 Topics

Member Avatar for
Member Avatar for Fola_1

We have a client who needs to make the cash withdrawal option of their ATM's Inactive once the ATM runs out of cash or if there is a cash jam. Can anyone help with this?

Member Avatar for JamesCherrill
0
209
Member Avatar for Aeonix

Couple statements, couple answers. I don't understand everything. If I'm wrong, correct me, but don't be mean about it. You weren't senior in your first steps either. Some of these are guarranteed wrong, because I want to taunt out the correct answer. Statements: **S1. Assembly works 1 on 1 with …

Member Avatar for Reverend Jim
0
362
Member Avatar for John_133

I am wondering if there would be any chance that someone could help me out with this, I am trying to teach myself c++ which i find it really interesting and I came accross this and would love to see how it works so i could do it and learn …

Member Avatar for ddanbe
0
274
Member Avatar for Avishai_1

I am getting difficulty to work out this question,can someone work out this program for me. Write a program that organise reservation for a show with the show hall having 5 rows of seats and 9 seats per row. The rows are numbered from ā€˜Aā€™ to ā€˜Eā€™ (back to front) …

Member Avatar for tinstaafl
-1
243
Member Avatar for Bryan_5

I'm trying to figure out how do i print a distinct enum value by using a conditional statement in my construction of array. I have a enum declaration enum Animal {Rat, Ox, Tiger, Rabbit, Dragon, Snake, Horse, Sheep, Monkey, Rooster, Dog, Pig}; And i construct my array using a voidptr …

Member Avatar for tinstaafl
0
297
Member Avatar for Tima_1
Member Avatar for can-mohan

Hi, I would linke to know what is the best way to synchronise the shared memory segment. is threads usage are also advisible whie synhcronising the shared memory segement. in what circumstances we should use threads or semaphore to synchronize the memory segment.

Member Avatar for rproffitt
0
457
Member Avatar for Yasir_7

how to create a simple calculator for addition, subtraction, multiplication,division and factorial using switch...case statement in C++ programm

Member Avatar for rproffitt
0
142
Member Avatar for Peter_36

How do I make a line of code that would go back to a part of a program without making it a loop? For example ###Code I don't want repeated### some line for later to come back (line 2) $$$code I want to repeat$$$ jump back to line 2

Member Avatar for ddanbe
0
357
Member Avatar for nitin1

Hi, I am facing an issue in string to const char pointer conversion. I am doing stuff in the fun() but here i am just giving my example. Here it the code: // Helper function string fun() { string abc = "Daniweb"; // print here #1 return abc; } // …

Member Avatar for AssertNull
0
3K
Member Avatar for Bryan_5

I just started learning how to use pointer array and i'm trying out examples to know more about them but i get confused with them easily. So, I tried to do a simple arithmetic calculation using a pointer array. The user will input 2 string variables for addition. I then …

Member Avatar for deceptikon
0
353
Member Avatar for Bryan_5

I'm doing a simple addition arithmetic using pointer array but i'm stuck at trying to print out my pointer array. int main() { string str1, str2; cout << "Enter the first string" << endl; cin >> str1; cout << "Enter the second string" << endl; cin >> str2; stringtoInt(str1, str2); …

Member Avatar for tinstaafl
0
364
Member Avatar for can-mohan

In below code snippet , I am trying to add the intefeger and float values in Array template but was surprised to see below output for float value as 5.1 was expected there but getting 0 . Can anybody let me know what can be wrong here. output value=5 value=15 …

Member Avatar for can-mohan
0
362
Member Avatar for Bryan_5

I'm trying to store some information in a binary file. However, i met with a problem that i can't rectify. For example, if the first order comes in, there is a struct of information that includes orderNo 1, which will be stored into the binary file. When there's a second …

0
229
Member Avatar for Sudo Bash

I am writing a game in which I need to know whether or not a user preforms an action in one second or less. I can not use time() because it measures time in seconds. If the user starts the action half-way through a second it would mess with accuracy. …

Member Avatar for Yangang
0
4K
Member Avatar for Adnan_9

It is a software Development and it's need me a access ,c++ java, programming,database i need me and you

Member Avatar for JamesCherrill
0
115
Member Avatar for lytonia

Create a ā€œC programā€ that determines whether or not a person is qualified to vote. Test for the following criteria for voting: Ask for the users first and last name (adds personalization) 18 years old or older Citizen of the United States State of residence (can only be one) Not …

Member Avatar for ddanbe
0
296
Member Avatar for mike_36
Member Avatar for happygeek
0
277
Member Avatar for Baran_1

I wrote and run this code in Windows, in DEV C++ but I am keep getting a Segmentation fault on Ubuntu's terminal when I try to run this program. Here is my whole code. #include<iostream> #include<string> #include<fstream> #include<cmath> using namespace std; int Str2NumByAscii(const string& str); // convert string to number …

Member Avatar for rubberman
0
5K
Member Avatar for rennel

Hello everyone..I am a newbie in DANIWEB..I really need your help guys regarding the topic i stated in the title..I am trying to create a payroll system..The system will get the data from the database, compute the NET and GROSS SALARY then afterwards save it back to the database.It is …

Member Avatar for Sean_13
0
2K
Member Avatar for Muntaha_1

((You often need to convert Rupees into coins of 5, 2, and 1. You task is to develop a C++ program to compute a mix of coins of 5, 2 and 1 against the given amount of money. Remember that you may not always have enough coins. So the program …

Member Avatar for tinstaafl
1
963
Member Avatar for something_1

here's my code: #include <iostream> #include <iomanip> using namespace std; int main() { char name[30], choice; int hours_worked; float wage; do { cout << "Employee Name: "; cin.getline(name,30); cout << "No of hours worked: "; cin>>hours_worked; cout << endl; wage = 80.75*hours_worked; cout << "The salary of " << name …

Member Avatar for Usman_10
0
248
Member Avatar for sunshine102030

> I know that the max value for short data type is 32767 and d=2*a=2*(20000)=40000 that is greater than 32767 > therefore the result of d is in minus d= -25536 while a,b and c displayed as they are scince they are< 32767 ,but the question is from where we …

Member Avatar for deceptikon
0
169
Member Avatar for glao

Hello , I have this: #include <iostream> #include <cstdio> #include <cstdlib> #include <vector> using namespace std; typedef struct { float x; float y; Point *next; } Point; int main() { Point *thePoints = new Point[2]; thePoints[0].x = 2; thePoints[0].y = 3; thePoints[1].x = 4; thePoints[1].y = 5; (thePoints[0])->next= 11; cout …

Member Avatar for glao
0
434
Member Avatar for can-mohan

Hi All, I below code snippet I have been using diff-2 structure with same variable due to having different -2 default values for the variable (var) in current implementation for both the structure a and b. This way i need to create 17 structure with same variable (var) but different …

Member Avatar for AssertNull
0
464
Member Avatar for laurel.jackson.12

Write a program that prompts the user for a value for i and displays the e value, and this is all i have so far. I was told it's suppose to have two for loops but i'm not sure where and how to do it and i know my output …

Member Avatar for AssertNull
0
3K
Member Avatar for samsons17

does anyone know how to do the program that are more or less like peteranswers?? This is the website which has been using to trick people... [URL="http://www.peteranswers.com/"]http://www.peteranswers.com/[/URL] and this is the secret : [URL="http://chriswondra.com/2007/02/21/peter-answers-the-secret/"]http://chriswondra.com/2007/02/21/peter-answers-the-secret/[/URL] i'm just wondering if i'm capable to do just a simple program that is similar like …

Member Avatar for AssertNull
0
1K
Member Avatar for cambalinho

i know save the Image on IStream. but what isn't saved like the original: the backcolor goes to black instead stays white. i belive that the problem is the transparent color, because isn't saved on IStream. i had tryied use the ColorPalette(Image.GetPalette() and Image.SetPalette(), but the ColorPalette.Count it's zero), but …

0
118
Member Avatar for Bryan_5

I have a notepad that consist of two data which is the title and the name. I've declared the title using an enum. The enum contain this variables. enum Title {Miss, Mrs, Mr, Dr, Unknown}; Then in my structure, I attempted to call the variables from the enum like this …

Member Avatar for tinstaafl
0
180
Member Avatar for Charizardly

Ikd what the error is telling me as when it compiles, no red lines appear. Plz help me >_< ! thanx in advance #include "stdafx.h" #include <iostream> #include <stdlib.h> using namespace std; #include "Shapes.h" #include "ShapeFeatures.h" int main() cout << "\n\n\n"; return 0; } //Shapes.h #pragma once class Shapes { …

Member Avatar for AssertNull
0
354

The End.