132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jhan.rhey.5

/Design a program that supplies numbers (9000 only) and outputs their equivalent Roman numerals. //the supply numbers and their equivalent Roman numerals are given below. //Supply number equivalent Roman Numeral //1 I //5 V //10 X //50 L //100 C //500 D //1000 M Sample Output: Enter integer (1-9000):1984 MCMLXXXIV …

Software Development c++
Member Avatar for jhan.rhey.5_1
0
638
Member Avatar for lincy828

How could i convert One number system to another system? this is the output: Choose a number system below: Press A if you want Decimal to convert to another number system. Press B if you want Binary to convert to another number system. Press C if you want Octal to …

Software Development c++
Member Avatar for ddanbe
0
370
Member Avatar for andrew mendonca

Write a program to read a maze from a text file into your array, print the unsolved maze, solve the maze, and then print the solution. You may assume the maze will fit in a 24-row by 81-column character array (for 80 character C-strings). The maze will be in a …

Software Development algorithm c++
Member Avatar for owenransen
0
1K
Member Avatar for klfrancisco

I have a social security program that I need finished. I have the code so far but I need to know how to make is where the user can only input numbers and no letters. This is what I have and I just do not know how to program only …

Software Development c++
Member Avatar for deceptikon
0
322
Member Avatar for hassan12

// onlyme.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include<stdlib.h> using namespace std; int inputa; int inputb; int Andgate(void); int orgate(void); int notgate(void); int andgate(void) { cout<<"input Gate A, enter 1 or 0, enter 2 to end program "; cin>>inputa; cout<<"input Gate B, …

Software Development c++
Member Avatar for richieking
0
118
Member Avatar for beastie805

Basically I need to change the Two StudentType* functions to const but i know its not letting me because of the &ersand sign on the ReadStudentData function, is there anyway around this? I am not asking for someone to do my hw just point me in right direction it brings …

Software Development c++
Member Avatar for richieking
0
185
Member Avatar for Kwesi_1

what it entails,difference between it, open source and closed source

Software Development open-source
Member Avatar for LaxLoafer
0
151
Member Avatar for paul.rothenberger

Hey Everyone, I'm stuck... I've got a 1-dimensional array from a text file that is displaying in a list box. I have buttons to sort ascending and descending but cannot seem to get them to work. My code for the array is Dim name() As String = IO.File.ReadAllLines("Countries.txt") lstCountries.Items.AddRange(name) This …

Software Development visual-basic
Member Avatar for velota27
0
283
Member Avatar for beastie805

this is probably a dumb question but how would I remove the array so that there is no max size on it. struct StudentType { string studentName; int testScore;//Between 0 and 100 char grade; }; const int NUM_STUDENTS = 20; int main() { StudentType student[NUM_STUDENTS]; } this is what i …

Software Development c++
Member Avatar for beastie805
0
124
Member Avatar for mikewyatt

I am trying to add /edit records in an embedded database. I have written some code that I think might work, but I would like a second set of eyes to look at to see if it is coded correctly..... private void Save_Item___MouseClicked(java.awt.event.MouseEvent evt) { if ("Equipment - Mundane".equals(jComboBox1.getSelectedItem().toString())) { …

Software Development java
Member Avatar for mikewyatt
0
211
Member Avatar for Exinta

In my project I have a Settings form and a Main form. I'm trying to call the Main form's MasterReset function from the Setting form, but nothing happens. The Main form's MasterReset function looks like this: public void MasterReset() { DialogResult dialogResult = MessageBox.Show("Are you sure you want to perform …

Software Development
Member Avatar for deceptikon
0
2K
Member Avatar for borgasia

Can't get this work properly: FormatRange(ref ws.Range[curRange.Offset[1, 0] , gives A property or indexer may not be passed as an out or ref parameter Any help would be thankfull public static void WriteDetailData(ref Worksheet ws, string type, ref int row, int col, Hashtable parts, Hashtable refList) { Range curRange = …

Software Development
Member Avatar for borgasia
0
4K
Member Avatar for Deep Modi

I am using the richtextbox, and now when I am saving the File, then the File get saved but not as I want.? Example: File Name: example File extension: .txt Body: **1.)**Hey guys, Whats up? **2.)**R u Fine ??? **3.)**Reply soon Now When I save the file and open in …

Software Development file-system vb.net
Member Avatar for Deep Modi
0
1K
Member Avatar for Syafiq_1

why i cant move the formula under int main()? #include <iostream> #include <stdlib.h> using namespace std; double fIntoCm(double dIn) { double dCm; dCm = dIn*2.54; return (dCm); } double fYtoM(double dY) { double dM; dM = dY*0.914; return (dM); } double fOtoM(double dO) { double dM2; dM2 = dO*29.574; return …

Software Development c++
Member Avatar for gerard4143
0
190
Member Avatar for Delira

I'm trying to finish up this vending machine. It worked well until I tried to add multiple items via inheritance while using a toString method. I'm not sure what is wrong about how I've done this. import java.util.Scanner; public class VendingMachine { public static double moneyCredit; public static double itemCost; …

Software Development java
Member Avatar for Delira
0
3K
Member Avatar for Rawan_1

Complete program - design two recursive functions with menu: Write a program that asks the user to input a positive integer, and then produces a menu where the user can choose to either check if the number entered is a prime number or print the sum of all the integers …

Software Development c++
Member Avatar for kal_crazy
0
153
Member Avatar for castajiz_2

Is there any option which i can activate when using ECLIPSE so that when i m typing S... for String or i.. for int etc... to automaticly give me suggestions that i want a int if the first letter is i or i want a String if the first letter …

Software Development ide java visual-studio
Member Avatar for JamesCherrill
0
183
Member Avatar for aelajj

I need to create a method compact that can remove all zeroes from an array and leave the order of other elements unchanged, but without creating a new array. The method must actually remove all zeroes, not just print out the other elements, and it should only use one private …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for daniel.s.mattos

I am trying to create a simple string class, but i am getting a run time error. What i want to accomplish is to store a const char pointer to a char pointer. I am trying to use the strncpy function, i also tried the memcpy, but both gave the …

Software Development c++
Member Avatar for kal_crazy
0
678
Member Avatar for deceptikon

This will be a relatively quick article because it's a simple issue. The `system` function gets a lot of flak for being slow because it calls the shell runtime to execute a command, but I rarely see the more devastating issue of security brought up. `system` is insecure in many …

Software Development c c++
Member Avatar for Assembly Guy
0
305
Member Avatar for jeromesturt

When throws keyword is used? Who knows best answer for that question?

Software Development java
Member Avatar for Shaun_2
0
236
Member Avatar for m1m6jbr

I'm designing a LongDouble datatype which take a 16 byte space. my question is how to add or substract a two double numbers correctly ex : a= 3.025466 b=4.132655`` the result will be 7.158121 but in my code it's different here is my code LongDouble LongDouble::operator+( LongDouble olong) { LongDouble …

Software Development c++
Member Avatar for kal_crazy
0
211
Member Avatar for murdoc311

'Hi all. I'm trying to create an application that computes the average monthly 'rainfall, number of months with above average rainfall, and the number of with 'below average rainfall, given the rainfall amounts for each month in a year. 'is what I have so far. Sub Main() Dim sngRainfall() As …

Software Development visual-basic
Member Avatar for murdoc311
0
344
Member Avatar for Ghayth_1

hello everybudy i'm writing a code to revers a stack but i have a wrong output when i Calling the reverse function can anyone help me please :) :) # header.h # class intnode { public : intnode(int , intnode*); int info; intnode* next ; }; class Stack { public: …

Software Development c++
Member Avatar for Ghayth_1
0
262
Member Avatar for code2cplus

a simple program to find out the permutations of all the letters in the word ex: abc gives abc acb bac bca cba cab[code]void swap(char *p,char *q){ char c; c=*p; *p=*q; *q=c; } void perm(char *a,int m,int n) { if(m==n){ for(int i=0;i<=n;i++) cout<<a[i]; } else { for(int j=n;j<=m;j++) { swap(a[j],a[n]); …

Software Development c
Member Avatar for Assembly Guy
0
685
Member Avatar for jackbauer24

My computer does not have the swing.properties. How to make a swing.properties file and with what software?

Software Development java java-swing
Member Avatar for durim.kryeziu.927
0
1K
Member Avatar for stresstedout

Hi, I am new to java, so please be nice. I am trying to make an application in Netbeans, i know the basics of how to use the program but get a little stuck when it comes to programming. At the moment i am trying to get a button to …

Software Development java java-netbeans
Member Avatar for ObSys
0
165
Member Avatar for razamughal67

I have a 2 textbox 1 text box is empty . text2 is multine true second text box have some words. text2 text Example : "12345 is my number and 03451234567ddddsfsa somethingis wrong034512345find 03451234567" .............. i want to find 03451234567 11digit number in text box with first 3 or 4 …

Software Development visual-basic
Member Avatar for Reverend Jim
0
320
Member Avatar for Mehak murtaza

there is a large busy cosmetic store. In store, for billing, there are four counters with four tellers (who deal payment etc) . A customer comes to the store and collects the things he/she wants to purchase and go to one of the counters to pay for purchase. If there …

Software Development c c# c++ queue
Member Avatar for Ancient Dragon
0
234
Member Avatar for dean.ong.14

I know this is stupid but how do i add a quit button? from tkinter import * from tkinter.font import Font def button(frame, text, command=None): ft = Font(family=('Verdana'), size=14) return Button(frame, text=text, font=ft, width=3, command=command) def frame(frame, side=LEFT, bg="black"): f = Frame(frame, background=bg, padx=5, pady=5) f.pack(side=side, expand=YES, fill=BOTH) return f …

Software Development python tkinter
Member Avatar for dean.ong.14
0
198
Member Avatar for princessophia

Here is the problem as it is written in the book: Write a function that accepts a C- string as an argument and returns the length of the C- string as a result. The function should count the number of characters in the string and return that number. Demonstrate the …

Software Development c++
Member Avatar for Assembly Guy
0
255
Member Avatar for <M/>

Hello.... I am trying to create my first iphone app and I have decided to make a compass. I am trying to make the compass face a specific gps coordinate rather than facing north. Does anyone know how this is done or have any resources that I can use? Thanks!

Software Development iphone objective-c
Member Avatar for rubberman
0
153
Member Avatar for Jamie_2

from graphics import * def patchdrawer(): win = GraphWin("Patch drawer", 100, 100) for x in range(0, 5): for y in range(1, 6): p1 = Point(x * 20, (y - 1) * 20) p2 = Point((x + 1) * 20, y * 20) rectangle = Rectangle(p1, p2) if (x + y) …

Software Development python
Member Avatar for Jamie_2
0
654
Member Avatar for dean.ong.14

raceback (most recent call last): File "C:/Python32/n", line 1, in <module> from Tkinter import * # button text list cmdlst = ['7', '8', '9', '+', '%', '4', '5', '6', '-', '**', '1', '2', '3', '*', '//', '.', '0', 'CL', '/', '='] class MyButton(Button): backref = None def Click(self): # back …

Software Development python tkinter
Member Avatar for sneekula
0
760
Member Avatar for PulsarScript

Hi to all,can someone can help with animation project and help with the steps. I have canvas created and a few imagesof pacman 7x7 px ,how will i make him move left,then right,up? It something to do with positioning.And second question is how to put the diffrerent color on the …

Software Development c++
0
96
Member Avatar for Ng

When i compare two strings i can use strcmp. But i want to know that when i compared more than 2 strings. Have any function OR method i can use? Thanks.

Software Development c
Member Avatar for deceptikon
0
78
Member Avatar for JohnSoftware

import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; import java.util.Scanner; import javax.swing.filechooser.*; import javax.swing.ScrollPaneConstants; public class validatiorGUI implements ActionListener { JFrame frame = new JFrame("C0015665"); JFileChooser chooser = new JFileChooser(); JPanel aPanel = new JPanel(); // create text area and buttons JTextArea area = new JTextArea(); JButton openButton = new …

Software Development java java-swing
Member Avatar for mKorbel
0
750
Member Avatar for whatthebobo

Hey guys, Now that the previous problem was fixed I was finally able to run my program but now I just don't know what is wrong. Everytime I would enter in a few numbers and let it run, it would print out a series of the same number. Can someone …

Software Development c++
Member Avatar for whatthebobo
0
268
Member Avatar for Deep Modi

I like to know how to add the no at the each new line before starting. I know how to count total lines. but I am lacking some knowledge on how I can Add new line number before New line and also the selected line get background colour different then …

Software Development vb.net visual-studio
Member Avatar for Deep Modi
0
687
Member Avatar for Learner010

would here anybody like to suggest some good books on pointers ? Actually some of my friends often say me that pointer is hard , too hard(however i've not started learning pointers , so i can't say). And i'd like to make the pointer concept very clear , so please …

Software Development c++
Member Avatar for Learner010
0
311
Member Avatar for chdboy

Is there any way that I don't use lots of IF statements?,right now it is according to Index of combo box items. else if(e.getSource().equals(jcb1)) { int selectedindex = jcb1.getSelectedIndex(); String comb_string = (String)jcb1.getSelectedItem(); if(selectedindex==1) { try { //String sql_command ="select * , count(*) over (partition by 1) total_rows from Employer …

Software Development java
Member Avatar for JamesCherrill
0
289
Member Avatar for ZombieKnight93

This is what I have to do: Write an application that asks the user to input the radius of a circle as a floating-point number and draws the circle, as well as the values of the circle's diameter, circumference and area. Use the value 3.14159 for pi. [Note: You may …

Software Development java java-swing
Member Avatar for JamesCherrill
0
1K
Member Avatar for satti

there are two combobox cm1 and cm2 when user select columns from database for x axis and y axis in cm1 and cm2 the graph show the data from those columns . Need your help that how to populate combos with column names and to show the graph of selected …

Software Development vb.net
Member Avatar for ryanjayson
0
723
Member Avatar for Ng

I am doing data validation. Assume i type 3 student ID: First:1234 Second:4567 Third:1234 (same ask the user to type student id again) Please give me some hints,how can i do the part of checking the all data the user type? (whether have already exit). Thanks. #include<stdio.h> int main() { …

Software Development c
Member Avatar for Learner010
0
128
Member Avatar for 759153

A weather analysis program uses the following array to store the temperature for each hour of the day on each day of a week. int temp[7][24]; Each row represents a day (0 = Sunday, 1 = Monday, etc.) and each column represents a time (0 = midnight, 1 = 1 …

Software Development c c# c++
Member Avatar for Assembly Guy
0
381
Member Avatar for Geek1024

How to create a tweening effect to morph the alphabet A to the alphabet Z using OpenGl/Glut and C++ ?

Software Development c++ opengl
Member Avatar for owenransen
0
152
Member Avatar for andrew mendonca

Write a program to read a maze from a text file into your array, print the unsolved maze, solve the maze, and then print the solution. You may assume the maze will fit in a 24-row by 81-column character array (for 80 character C-strings). The maze will be in a …

Software Development algorithm c++
Member Avatar for owenransen
0
530
Member Avatar for guente

Please i have a problem i cant resolve. I was able to populate my combobox (Cus_ID) from TLB_Customer table sucessfully. Now, how ca i use the same populated combobox to populate a textbox (Cus_Name) all in the same TLB_Customer table. My Code Imports System.Data.OleDb Public Class frmTransaction Dim con As …

Software Development open-source vb.net
Member Avatar for ryanjayson
0
212
Member Avatar for Exinta

I am working on a project (simple phone book) for personal use. Basically, the contacts are displayed in a listview and stored in a XML file. I am having trouble deleting the last remaining item in my listview (listView1). So, let's say that I have got 5 contacts in the …

Software Development c c# c++ listview
Member Avatar for tinstaafl
0
297
Member Avatar for kiddd

hi everybody this is my code below that i did so far for my assignment i made a smiley but ,it s everywhere in my code ,and it s not so perfect i think i need only 1 and big smiley in my pattern i think i am missing something …

Software Development
Member Avatar for kiddd
0
226

The End.