1,073 Recommended Topics
Remove Filter ![]() | |
#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++ | |
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 | |
# 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++ | |
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 | |
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 | |
> 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 | |
#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++ | |
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 … Computer Science android-development encryption java | |
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++ | |
#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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
I need simple programs written using c++ about simulation , please help! Computer Science c++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
#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 | |
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 | |
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 | |
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 | |
# How many different ranks are possible in an exam with 10 students if ties are allowed ??? # Computer Science | |
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 | |
How will I determine the rep for repInvariant? and How to write an abstract function? Computer Science web-design | |
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 | |
**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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 |
The End.