1,073 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for lakshay

#include<iostream.h> #include<stdlib.h> #include<conio.h> void main() { clrscr(); //char serial[]="EXAMS"; //int number[]={69,66,67,68}; randomize(); char planets[][10]={"Mercury","Venus","earth","Mars"}; //cout<<number[random(1)]; for(int i=0;i<4;i++) cout<<"::"<<planets[sizeof(char)+random(3)-1]; getch(); } How to calculate the output for it. Options: 1::venus::mercury::mars::earth 2::earth::mercury::venus::earth:: 3::mercury::earth::mercury::earth 4::mars::mercury::venus::earth

Computer Science c++
Member Avatar for rubberman
0
214
Member Avatar for Jamie_11

This is what I have so far.....any advise? Output does not give only one largest and smallest number from a file and also there are multiple averages of numbers..... thank you in advance.

Computer Science java
Member Avatar for stultuske
0
202
Member Avatar for Sade'

# include <stdio.h> #include <stdlib.h> int option(); int questions (); int count_yes (); int main () { questions (); option (); medcode(); } Printf("Are you an asthma patient?\n"); Scanf("%s", &option); if option='N' { Printf ("You are not an asthma patient. Goodbye."); } else option='Y' { while option= Y { Int …

Computer Science c++
Member Avatar for rubberman
0
209
Member Avatar for pihuu

I encountered a problem when trying to use hibernate to save details onto my database. > > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". > > SLF4J: Defaulting to no-operation (NOP) logger implementation > > SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. > > Exception in thread "main" org.hibernate.HibernateException: /hibernate.cfg.xml not found …

Computer Science java
0
195
Member Avatar for cproger

I am trying to create a banking system which can state if the user has selected the SavingJRadioButton or the CheckingJRadioButton. Before using getters and setters, I used public static variables which worked, but my teacher wants getters and setters. So far my code looks like this: public class CreateAccount …

Computer Science java
Member Avatar for JamesCherrill
0
157
Member Avatar for Shamiah

> Help please, I'm just practicing and it's really annoying to have an error. I tried everything but yeah, failed. lol #include <stdio.h> main(){ int order; int price=5; int bill; int billd; int billf; scanf("Amount of Order: %d",& order); if (0<=order<=10); bill=(order*price); billd=(bill*0.1); billf=(bill-billd); { printf("Bill: %d",billf); } else if(11<=order<=20); …

Computer Science
Member Avatar for deceptikon
0
111
Member Avatar for Betty1909

#include <algorithm> #include <cassert> #include <cstdint> #include <iostream> #include <iomanip> #include <string> #include <vector> // Use these constants for your arrays. const int MAX_ROWS = 100; const int MAX_WIDTH = 100; // Side of an airplane, port or starboard. These terms are more // precise than "left" and "right," which …

Computer Science c++
Member Avatar for Betty1909
0
226
Member Avatar for DeanMSands3

Hi, Daniweb, it's been a while. I'm looking to do a mobile ssh-client (well, not quite a full client) that stores sensitive login information encrypted by a pattern-lock. However, I know very little about encryption. Can anyone recommend a good learning path - and by path, I mean Encryption for …

Member Avatar for stultuske
0
307
Member Avatar for studentc

Hai, Can anyone help me to solve this program. Write a function in C++ to count number of words starting with “amend” in the text file named as “Amendment.txt” Eg:- A contract to deliver something to a customer once a month can be amended if the customerwants it delivered once …

Computer Science c++
Member Avatar for David W
0
291
Member Avatar for Betty1909

#include <algorithm> #include <cassert> #include <cstdint> #include <iostream> #include <iomanip> #include <string> #include <vector> // Use these constants for your arrays. const int MAX_ROWS = 100; const int MAX_WIDTH = 100; // Side of an airplane, port or starboard. These terms are more // precise than "left" and "right," which …

Computer Science c++
Member Avatar for Shattered
0
172
Member Avatar for boobalan_1

the difference between compilation and execution?

Computer Science c++
Member Avatar for ddacot
0
85
Member Avatar for Curious Gorge

I'm working (rather beginning) on a Huffman tree. I think I've run in to a problem for time complexity. Huffman trees are supposed to be fast in most ways. As I prepare to build my tree, I have three for...next loops in separate methods. I think that could be very …

Computer Science
Member Avatar for rubberman
0
617
Member Avatar for Yash969680

write a program that displays the following information, each on a separate line: * your name * your address, with city, state and ZIP * your telephone number your college major Although these items should be displayed on separate output lines, use only a single **println** statement in your program.

Computer Science java
Member Avatar for Reverend Jim
0
482
Member Avatar for claptus

Let assume that ‘k’ is an integer that indicate and reveals exactly the length of subset that sum to 0. Thus length of subset to pick is determined by ‘k’. If I would like to pick only ‘k’ distinct set of integers from any given set of integers in polynomial …

Computer Science java
Member Avatar for Reverend Jim
0
300
Member Avatar for RobertSharp

Hi, I'd been working on a MS Word document for 2 hours when Word crashed. When I restarted Word, all of my changes were GONE. Can anyone tell me how to recover my temporary document? I tried to look at my Windows/Temp folder but I'm on my work computer.

Computer Science
Member Avatar for Vlastimil
0
1K
Member Avatar for Gilbert_3

Hi guys I need help from you. How do i increment the id like for example: EMP001, EMP002, EMP003 I hope you can help me out guys, thanks in advanced.

Computer Science vb.net
Member Avatar for Reverend Jim
0
421
Member Avatar for jjones0150

I have the code for my InventoryManager class, my Product class, and my InventoryApp class . Based off this code, I need someone help me correctly call the methods I already have in place. There is a section where the method is supposed to be called and I have made …

Computer Science java
Member Avatar for jjones0150
0
252
Member Avatar for khaled02

Hi, I hope you can help me out of this because i really dont understand how to fix this code anymore, i tried and tried and it don't work. When i debug this code in Microsoft Visual Express 2010, it says the following erros are: 1>------ Build started: Project: Adreesbook2, …

Computer Science c++
Member Avatar for khaled02
0
241
Member Avatar for Muhammad_102

Hy Guys,I Need Your Help Regarding This Question.. I run this Program on Dev c++ and Compiler did not Show Error but During INput I can not input Name and Address in both student class and School Class.. Sorry For bad English.. :) #include<iostream> #include<string.h> #include<fstream> using namespace std; class …

Computer Science c++
Member Avatar for 2teez
0
239
Member Avatar for hadisur_rahman

make 100 with just required digit is ..you can used four 7 digit and only one 1 digit ... 7,7,7,7 and 1; now for making 100 with them you can used any arithmatic symboil... * ,/, +,-

Computer Science
Member Avatar for invisal
0
123
Member Avatar for Mar. Na.

Hi , this algorithm diffecult to implement and work ,how can i write code for this because ,i write code for it but isnt work completely to find CBO i.e Eff.size. Input: Any class file Output: Total coupling in the class file /*Eff is set for efferent coupling(set is java …

Computer Science java
Member Avatar for Mar. Na.
0
259
Member Avatar for Gà_1

I'm writing a simple program to figure out how Linked List works, but for now I'm stucking. I don't know which line cause the error or I had a mistake in thinking. I run my program by my hand and it works fine. But when run, it gets error at …

Computer Science c data-structure
Member Avatar for Beingmahendra
0
217
Member Avatar for alfadil ahmed

I need simple programs written using c++ about simulation , please help!

Computer Science c++
Member Avatar for David W
0
276
Member Avatar for gajen007

An assignment is given to prepare a prolog code for the following scenario. Five bikes with colors Red, Blue, Black, White and Grey are in queue. At least one in front of Red and at least one behind the Blue. At least one in front of Black and at least …

Computer Science
Member Avatar for rubberman
0
169
Member Avatar for Stefce

Hello everybody im thinking about how AI works and actualy im really confuzed and scared at the same time, so me as low programmer i know how the computers work, first you write the program than you give him input and it gives you output based on what you insert …

Computer Science artificial-intelligence-llm
Member Avatar for rproffitt
0
410
Member Avatar for Fatma_3

how can calculate complixty for this code package ca.pfv.spmf.algorithms.frequentpatterns.fpgrowth_with_strings; /* This file is copyright (c) 2008-2013 Philippe Fournier-Viger * * This file is part of the SPMF DATA MINING SOFTWARE * (http://www.philippe-fournier-viger.com/spmf). * * SPMF is free software: you can redistribute it and/or modify it under the * terms of …

Computer Science java
Member Avatar for stultuske
-2
276
Member Avatar for sanraj_1

Hey guys i am having a problem with this function. Its a fucntion to generate bills and i want to add a condition in where if users enters a wrong product number th program should not proceed. Any help is appreciated. void place_order() { int order_arr[50],quan[50],c=0; float amt,damt,total=0; char ch='Y'; …

Computer Science c++
Member Avatar for David W
0
202
Member Avatar for Sidrah_1

I am writing a python program on Windows using Python 2.7. Basically, it's a program that takes a 5-digit, negative & positive, number from user & spells it out in English using num2word & then speaks it out too. I have used espeak & pyttsx both but i'm getting errors …

Computer Science
Member Avatar for Sidrah_1
0
439
Member Avatar for Ashildr77

Hello! I’m trying to write a small program to make a sort of animation using ncurses. I have an external file, a header file, and a main file so far. Header file contains a class with a constructor that is initialized in my cpp file, a void function that is …

Computer Science c++
Member Avatar for rproffitt
0
380
Member Avatar for Emily_2

I'm trying to write a program that has a user input student names, their ages, their GPAs, and their graduations dates (i.e. 'F13', F for Fall, S for Spring, then the last two digits of the year). This information goes into a linked list, then the user can search a …

Computer Science c++ linked-list
Member Avatar for David W
0
367
Member Avatar for daniellemacey

Hi, I'm not sure how to add two-digit input and three-digit output capacity to the program attached. ; Filename SubTest3.asm ; This program is designed to demonstrate the use of subroutines in ; programming. ; This file is phase 3 and introduces a multiply subroutine. ; Current support subroutines include …

Computer Science
0
307
Member Avatar for Popy_1

#include <iostream> #include <iomanip> using namespace std; enum sizes{small, medium, large, jumbo}; sizes options(int drinkSize, int popcornSize); void printTotal(sizes price); int main() { int popcornSize, drinkSize; cout<<"Please pick the size of your popcorn: "<<endl; cout<<"1. Small"<<endl;cout<<"2. Medium"<<endl;cout<<"3. Large"<<endl;cout<<"4. Jumbo"<<endl; cin>>popcornSize; cout<<"Please pick the size of your Soda: "<<endl; cout<<"1. Small"<<endl;cout<<"2. …

Computer Science
Member Avatar for Popy_1
0
189
Member Avatar for jkon

Hello , first of all I need to make clear that although I understand , and have done projects modifying code that is already there (and created my own minions) , in the core of C and C++ I wouldn't consider to know those a bit, I have just a …

Computer Science c++ software-architecture
Member Avatar for jkon
0
280
Member Avatar for joe97

guys i have this assignment about luhns algorithm and i cant seem to know where to start (i am very weak in functions and arrays) , if anyone can help me out with the start of the i would be very thankful then later on i will be disscussing my …

Computer Science c
Member Avatar for joe97
0
5K
Member Avatar for Isaac_9

Hey guys, Am Isaac from Nigeria. My final Year Project is solving timetable problem using genetic algorithm. The problem is I don't know how to accept population from my php script... Someone please help

Computer Science
Member Avatar for Isaac_9
0
164
Member Avatar for hadisur_rahman

# How many different ranks are possible in an exam with 10 students if ties are allowed ??? #

Computer Science
Member Avatar for rproffitt
0
126
Member Avatar for nlanka

public class NaveenSingleton { private String name; private String [] names; private static NaveenSingleton uniqueInstance; private NaveenSingleton() { } public static NaveenSingleton getInstance() { if(uniqueInstance == null) { uniqueInstance = new NaveenSingleton(); } return uniqueInstance; } public void setName(String n) { name = n; //Search for duplicate name here, before …

Computer Science java
Member Avatar for nlanka
0
180
Member Avatar for Lgie

How will I determine the rep for repInvariant? and How to write an abstract function?

Computer Science web-design
Member Avatar for darkagn
0
125
Member Avatar for katie6580

I am creating a program that takes two english words from the command line and prints one out vertical and the other horizontal and sees how many times the words cross. If they don't cross it then prints out an error message. Here is what I have so far for …

Computer Science java
Member Avatar for JamesCherrill
0
412
Member Avatar for ravi_14

**Bold Text Here**I am trying to make a generic linked list . below is the code for linkedlist . #ifndef GenericLinkedList_h #define GenericLinkedList_h #include <iostream> #include "GenericLinkNode.h" //class GenericLinkedList; template <typename T> class GenericLinkedList { private : GenericLinkNode<T> *head; public: GenericLinkedList(); void traverse(); bool isEmpty() { return head == NULL …

Computer Science c++
0
178
Member Avatar for esoul12

Hi this is my code for computing the payment of my system, But there have a problem in my codes ? Because, there have something wrong my codes, i try to fix the error but i can't, this is the error " Conversation from type 'DBNul' to type 'Integer' is …

Computer Science
Member Avatar for Taywin
0
88
Member Avatar for Mayo_1

one way of finding the square root of a certain number N is by using newtons method repetedly untill the absolute value 2 successive new guess is less than 10 raise to power -6

Computer Science c++
Member Avatar for gusano79
0
138
Member Avatar for shamas195

if top=0 write:"stack is empty" else top__ push(stack,N,top,x) if top=N write:"stack is full" else settop:=top+1 set:stack top[x] if top=0 write:"stack is empty" else top__ push(stack,N,top,x) if top=N write:"stack is full" else settop:=top+1 set:stack top[x]

Computer Science
0
137
Member Avatar for chubbyy.putto

I know I should have try it first but I dont understand what is this asking about. My english is my very bad. Can you please telling in easy english. PLus this is very confusing. Please help me out Write a BNF grammar for the for statement of C. Assume …

Computer Science web-design
Member Avatar for sepp2k
0
689
Member Avatar for happygeek

If you don't know who [Alan Turing](http://en.wikipedia.org/wiki/Alan_Turing) was, then shame on you. The British code breaker, mathematics genius and father of both computer science and artificial intelligence is rightly credited with helping to bring the second world war to an end. Turing was also gay, and that's where the shame …

Computer Science
Member Avatar for Lifei_1
8
737
Member Avatar for vegaseat

The Swift computer language is the brainchild of a number of Apple associates. In my humble opinion it shows some nice features, but also some warts. Part 1 (constants, variables, strings, tuples, arrays) explores a number of the features to give you a taste of the language. I hope I …

Computer Science apple
Member Avatar for vegaseat
2
1K
Member Avatar for playagain

Please help me to build a list of examples of stack and queue in real life situation... Conditions: The object concerned must only one object. And the object must be tangible. Example: Queue (FIFO): The bullet in a machine gun..(you cannot fire 2 bullets at the same time) Stack (LIFO): …

Computer Science
Member Avatar for priya..
-2
12K
Member Avatar for cppgangster

Hi there, I hope I could find help about plotting graphs. My problem is I have a device which alows me collect some data and transfer it throught USB. Then I will interpret that data using c or c++. I would like to plot such data on a window on …

Computer Science
Member Avatar for cppgangster
0
181
Member Avatar for Sphinx'LostNose

Can you use any compiler, assembler, etc to output code directly for the processor and not for an executable file specific to an OS? How do you determine if you are outputting for an executable for an OS or directly for a processor? Are the instructions/code part in an exe …

Computer Science
Member Avatar for rubberman
0
215
Member Avatar for furalise

Hi I'm using C++ and have a question regarding the use of fonts in programming. What I am doing is parsing files like pdf's and other files and wanting to transfer the extracted data to another file or command line screen. I'm able to work out metrics such as character …

Computer Science
Member Avatar for Rashakil Fol
0
261

The End.