199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for izabella.pearson

You are to write a program that will do the following: Part 1 (30 pts) Grade a 30 multiple-choice question exam and print each student’s name followed by the score (number of correct answers), the appropriate calculated percentage score (number of correct answers divided by 30), and letter grade for …

Member Avatar for phorce
0
201
Member Avatar for marnun

We started learning Heap property in class. Here is an exercise on the topic: > isHeap > Write the definition of a function named isHeap that receives three arguments as follows: > x : an array of ints > i : a valid index into the array x > n …

Member Avatar for marnun
0
240
Member Avatar for jeansantos

The idea would be to read the items of Listbox1 (one-by-one) and run a query (Listbox1 ->Field1) and display the result (Field2 -> Listbox3) in the same Listbox3. For some reason, only appears in Listbox3 the result of the last item of Listbox1. Dim con As New OleDb.OleDbConnection …

Member Avatar for jeansantos
0
134
Member Avatar for lewashby
Member Avatar for lewashby
0
90
Member Avatar for aabbccbryanmark

package prjarrays; import java.io.*; import java.util.Arrays; import java.util.Collections; class BubbleSorting { public static void main(String[] args)throws IOException { BufferedReader a = new BufferedReader(new InputStreamReader(System.in)); int []num = {54,92,04,98}; -> Arrays.sort(num, Collections.reverseOrder()); for(int str : num) { System.out.print(str + " "); } } } > cannot find symbol method sort(int[],java.util.Comparator<java.lang.Object>) why …

Member Avatar for Ezzaral
0
133
Member Avatar for Violet_82

Hi I got in a bit of a muddle here. Basically say you have this html: ... <a href="javascript:void(0)"> <img alt="" data-name="myCar" data-family="ferrari" data-type="Fast Family" src="images/ferrari.png" style="left: 193.291px; opacity: 0.5; cursor: default;"> </a> <a href="javascript:void(0)"> <img alt="" data-name="yourCar" data-family="aston" data-type="Fast Family" src="images/aston.png" style="left: 293.291px; opacity: 0.5; cursor: default;"> </a> ... …

Member Avatar for Violet_82
0
166
Member Avatar for adrian.mcguinness

I have a gridview which totals up the quantity of items the buyer has added to basket. I have added a delete button and this button is meant to reduce the quantity by one when clicked. removing the latest record from the database. I keep getting a the following: > …

Member Avatar for adrian.mcguinness
0
1K
Member Avatar for Diogo Martinho

I'm having some trouble with selecting the Max values of three different tables in my SQL. I have 3 tables Car [CarID, Name] - Price [CarID, Price] - Group [GroupID, CarID] With these Values Car: CarID --- Name 1 ------- Car1 2 ------- Car2 3 ------- Car3 Price: CarID --- …

Member Avatar for blocblue
0
163
Member Avatar for motrcolt

Im not really sure if you guys do graphics.h questions here but here it goes. Im trying to find out how to get text to scroll similar to credits at the end of a movie from top to bottom but to have it repeat. I cant find online anywhere that …

Member Avatar for Ancient Dragon
0
941
Member Avatar for jstfsklh211

A simple way for using templates in php new pages can run server side code or pretty much do anything you would normally want to do on a web page First create your template. cleary there is way more that can be done with this, I've kept it simple for …

Member Avatar for jstfsklh211
0
433
Member Avatar for eburlea

Hi all. I am a beginner in Zend and I am wondering if there is any good book or tutorial for developing applications with Zend Framework, using json for data encoding and decoding and how to use jquery with Zend. Thanks.

Member Avatar for eburlea
0
241
Member Avatar for kindofsudden

I have a datagridview bound to a datatable and it works great. However, when I try to programmatically change the datasource property to a different existing table, I get a blank datagridview with no cells. Although I have tried many bits of code to remedy the problem, this is the …

Member Avatar for kindofsudden
0
294
Member Avatar for rinu.urs

Hello, Hii friends, I want to know how to connect sql server 2005 to vb.net windows application 1)is there any connection string ? 2)if so i am using windows authendication in sql server 2005 management studio so am not entering any user id and password to enter in sql server …

Member Avatar for Reverend Jim
0
1K
Member Avatar for hhm_pro992

OpenConn() For Each li As Windows.Forms.ListViewItem In ListView1.Items With OleDa .UpdateCommand = New OleDb.OleDbCommand() .UpdateCommand.CommandText = "UPDATE [Inventry] SET [CODE] = @CODE , [ITEM] = @ITEM , [QTY] = val(QTY) - @QTY , [SPRICE] = @SPRICE , [PPRICE] = @PPRICE WHERE (CODE = ?)" .UpdateCommand.Connection = Con .UpdateCommand.Parameters.Add("@CODE", OleDb.OleDbType.VarWChar, 50, …

Member Avatar for Begginnerdev
0
586
Member Avatar for kokiis

im using many textboxes one button and one datagridview, i want for example, textbox1.text to be shown i first row of column one, textbox2.text to be shown on first row of column2 and so one ... when i press button1. after i press button1, textboxes to be clean and to …

Member Avatar for Wolxhound90
0
522
Member Avatar for milan2011

Hi, i am trying to make a dictionary which takes an english word and its meaning in spanish in the following format from an input file. <english>:<spanish> i also need to add words manually,remove,search,print ,and store new tree in the same file by updating the file. my up() and load() …

Member Avatar for jrobertomar
0
2K
Member Avatar for Delightfully

Hello All!! I have an assignement that I am working on and for some reason I cannot for the life of me recall how to do something so simple lol. The directions are too "Write a function named Exam, which takes one argument n where n>2. Your function creates a …

Member Avatar for Lucaci Andrew
0
312
Member Avatar for Robby10

When the 'Read' button is clicked the user will be asked to open a text file (using a dialog box) that contains comma delimited float/double type data and read the data. The file will contain multiple lines of data with each line containing comma-delimited data ending in a carriage-return/linefeed (Enter …

Member Avatar for caKus
0
177
Member Avatar for shhh

using System; using System.Data; using System.Collections.Generic; using System.Linq; using System.Text; using MySql.Data.MySqlClient; using System.Windows.Forms; using DPUruNet; using System.Drawing.Imaging; using System.Drawing; namespace UareUBiometrics { class HelperFunctions { private static Fmd[] fmds; private static Fmd[] allDBFmds; public static Fmd[] GetAllFmds { get { return allDBFmds; } } private static string[] allUserNames; public …

Member Avatar for samsylvestertty
0
246
Member Avatar for avroshk

Hi! So I have two "tabs" implemented using radio buttons as shown in the code (visibility is controled by CSS). There is one control in each tab contained in the div. I hope the code is clear enough. Now, I am inside a javascript function where I have the control …

Member Avatar for stbuchok
0
195
Member Avatar for LdaXy

i'm writing a text based game that creates a world based on the data inside of the specified file. however, the code i have won't let me use the function DataInputStream.ReadFully(byte[]b) Code: package textgame; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.IOException; import java.util.Stack; public class world { Stack<String> LevelData = new …

Member Avatar for stultuske
0
1K
Member Avatar for Dewey1040

so I haven't used pointers to this extent for a few years so I'm a little rusty. I'll give a quick explanation on what the code is supposed to do, but from looking at my output I am messing up pointer arithmetic somewhere along the lines. I'm pretty sure it's …

Member Avatar for Dewey1040
0
120
Member Avatar for mrbungle

In my app, I have a text box that takes the text and transfers it to w Word doc for printing. It does this with the bookmark feature in Word. On the Word doc, I only have "X" amount of space. The bookmark in Word will auto size and fill …

Member Avatar for ponkhiraj
0
587
Member Avatar for ambageo

Hi! I cannot figure out how to install and use a database that I am given for a project. I'm running Windows 7. Can anybody help me?

Member Avatar for gon1387
0
83
Member Avatar for RRPowered

I have a slider that load all of my content at once. Into a div. Like so: external page.php $get_users = mysql_query("SELECT * FROM user WHERE id!='$user_id'"); while ($rows = mysql_fetch_assoc($get_users)) { $id = $rows['id']; $firstname = $rows['firstname']; $display_info .= ' <div class="f_outer" id="' . $id . '"> <div class="f_name …

Member Avatar for pritaeas
0
264
Member Avatar for hwoarang69

you can see the image that i upload to see what this code below is dowing. it make 3 cols and 6 rows table. echo" <div id = 'index_content_page_wrapper'> <br/> <br/> <table border='1px' cellspacing='0' cellpadding='0'> <tr width='1075' height='250px'> <td width='355'>image 1</td> <td width='355'>image 2</td> <td width='355'>image 3</td> </tr> <tr> <td>random …

Member Avatar for gon1387
0
2K
Member Avatar for hwoarang69

i have this query: $item_query = mysql_query("SELECT * FROM item"); this will always get the data from 1st row to bottom row. how can i get random data? SELECT * FROM item ORDER BY RAND() or SELECT * FROM item ORDER BY NEWID() i want the best way to get …

Member Avatar for pritaeas
0
84
Member Avatar for thinkaboutyoueveryday

`Inline Code Example Here`**I REVISED MY PROGRAM** #include <iostream> #include <cmath> using namespace std; int main () { const int num=100; float volt[num], sum=0, sum2=0 ; double ave2,standrddev1, standrddev2, standrddev; float average; int i, k=0 ; { cout<<"Enter the number of voltages to be analyzed:"; cin>>k; if (k>100) { cout<<"Maximum …

Member Avatar for NP-complete
0
203
Member Avatar for hanvyj

Hi, I'm trying and failing to get this CSV reading library to work. I started making a question on accessing the data in CsvReader, which I could see in the debugger but couldn't work out how to access via code. However, I'm getting annother problem now which I wasn't before, …

Member Avatar for hanvyj
0
672
Member Avatar for hwoarang69

lets say i have $num1 = 0; $num2 = 1.00; $num3 = 1.2; is there a php function that will convert int or double/float to usa dollar currency? so the output should be $num1 => 0.00; $num2 => 1.00; //note this will stay same $num3 => 1.20; i found this …

Member Avatar for blocblue
0
174
Member Avatar for arsharma159

Hello guys, I'm facing a serious problem now in my vb.net(VS 2005) project. The problem is that I want to update automatically my stock when I enter the purchase voucher and keep the purchase voucher detail as well. I can do everything except the automatic stock update. YOUR VALUABLE HELP …

Member Avatar for arsharma159
0
387
Member Avatar for MistaGeorge

So this more than likely has a simple answer, but i cant seem to find it. I have a 2d array in one class, what I want to do is get this array into my other three classes. Now I'm not sure but I believe I have to use inheritance, …

Member Avatar for NP-complete
0
131
Member Avatar for thinkaboutyoueveryday

# we are assigned to develop a c++ program that accepts a list of a maximum of 100 voltages as input, determine both the average and standard deviation of the input voltages, and then displays the results. There are still errors and it says it requires array or pointer type. …

Member Avatar for thinkaboutyoueveryday
0
227
Member Avatar for jinxmc

import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedHashMap; class oldEmployee { public static final int length = 0; static int empid[]={1,2}; static String Name[]={"name1",name2}; static String State[]={"state1","state2"}; static String City[]={"city1","city2"};; static String Area[]={"area1","area2"}; public Employee(int empid,String Name,String State,String City,String Area) { this.empid=empid; this.Name=Name; this.State=State; this.City=City; this.Area=Area; } public int getEmpId() { return …

Member Avatar for stultuske
0
211
Member Avatar for ku.heng.7

I wan to tranfer the value barcode from abc.aspx to cde.aspx and display in other page this is the code from abc.aspx <asp:HyperLink ID="hlBarcode" runat="server" NavigateUrl='<%# "~/SearchStock.aspx?BC=" + Eval("Barcode")%>' > this is the code from cde.aspx.cs protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["Barcode"] != null) txtBarcode.Text = Request.QueryString["Barcode"]; …

Member Avatar for manuindia
0
264
Member Avatar for thinkaboutyoueveryday

# Develop a c++ program that accepts a list of a maximum of 100 voltages as input, determines both the average and standard deviation of the input voltages and then displays the results. # ## step 1 : requirements : an average, standard deviation step 2: develop solution: the input …

Member Avatar for thinkaboutyoueveryday
0
294
Member Avatar for Atlanta15Braves

I am trying to switch the below code to sort in descending order rather than ascending. It works when counting upwards, but nothing I try helps with getting it to count starting with the largest number and count downward. public static void insertionSort(Comparable[] list) { for (int index = 1; …

Member Avatar for ~s.o.s~
0
755
Member Avatar for umesh314

I am not able to see the desired output. Please let me know where I am missing a point. #include<stdio.h> struct node{ int data; struct node *next; }; void push_node(struct node *node, int data){ struct node *new_node = (struct node *)malloc(sizeof(struct node)); if(node!=NULL){ new_node->data = data; new_node->next = node; node …

Member Avatar for umesh314
0
110
Member Avatar for while(!success)

Hi guys, I'm still new to .NET and your answers to my questions have been so helpful. I have another question yet again, however. This time my question has to do with sql server and handling it with code behind. I am creating a stored procedure which is supposed to …

Member Avatar for while(!success)
0
3K
Member Avatar for subi09

i started reading about templates and i got confused on the below. template<class T> T max(T t1, T t2) { int if (t1 > t2) return t1; return t2; } int main(){ std::cout<<max<int>(120,14.55); return 0; } o/p is 120 .But when i compiled the above i got the below warning. …

Member Avatar for subi09
0
228
Member Avatar for bobtutos

Hi friends. I am currently developing the website that I do want its contents (pictures & texts) to be prevented from being copied. I have tried googling but I got no solution on this, some of the people on the internet suggested the way on avoiding copying, they suggested disabling …

Member Avatar for lambing
0
124
Member Avatar for Arjun_Sarankulu

For Security Concern, I am using mssql_execute(). I am not getting way to get the recordset return from procedure. Below is my sample code $query = mssql_init("USP_GET_ICIN_DATA",$mssql_link); mssql_bind($query, '@ICIN_NUMBERS',trim($icin_data), SQLVARCHAR, false); mssql_bind($query, '@FROMRECORDNUMBER', $start, SQLINT4, false); mssql_bind($query, '@LIMIT', $limit, SQLINT4, false); $result = mssql_execute($query); while ($row = mssql_fetch_assoc($result)) { $icin …

Member Avatar for Arjun_Sarankulu
0
147
Member Avatar for Farhad.idrees

Hi guys... i want to delete data from datagrid in mysql...i have also done update query using same datagrid... but i m not able to delete data... my code is <script type="text/javascript"> $(document).ready(function () { // prepare the data var data = {}; var theme = 'classic'; var source = …

Member Avatar for lambing
0
388
Member Avatar for ram_kumar8970

Hi.. How can i use the commandline arguments in Visual Basic 6? I want to pass multipule arguments of different datatypes.

Member Avatar for hkdani
0
134
Member Avatar for charuwaka

i created a database with Item_No,Item_name,Qty,Price,Total,Grand total i took a form and dragged and dropped that database as details view. first i arranged labels in row format and their respective text boxes under them. and i made copies of text boxes of first row text by holding Ctrl key upto …

Member Avatar for TnTinMN
0
228
Member Avatar for scenium

Hi, I have some issues on my website with my deeplinks Let me show you sample regarding this issues www.mywebsite.com/buy-online-tv.php www.mywebsite.com/buy-LCD-tv.php www.mywebsite.com/buy-cheap-tv.php www.mywebsite.com/affordable-tv.php etc.... Until here everything is fine but I got lots of visitor coming for Google and the vistor find my website and come from such URL www.mywebsite.com/buy-online-tv.php/buy-LCD-tv.php …

Member Avatar for gon1387
0
243
Member Avatar for bepese

Hi; I have an sql database with a table called: "stardate" with default value set up with "dat" I want to modify this column default value to current date (server side) I'm trying this: Alter table my_table Modify startdate DATE DEFAULT CURRENT_TIMESTAMP; with this error: Error Code: 1067. Invalid default …

Member Avatar for code739
0
149
Member Avatar for siaosituimoloaublood

i am in need of help with this homework. The instructions are as followed: Package Newton's method for approximating square roots in a function named newton. This function expects the input number as an argument and returns the estimate of its square root. The script should also include a main …

Member Avatar for TrustyTony
0
5K
Member Avatar for DEAD TERMINATOR

I'm trying to create a program that will draw an equilateral triangle with an oval at the center point when the mouse is pressed, and while the mouse is being dragged, the triangle will redraw itself so that the triangle remains equilateral regardless of where the mouse is (the mouse …

Member Avatar for DEAD TERMINATOR
0
320
Member Avatar for Ayinainsoph

So i figured out how to embed drop down menu option on the table feature in dreamweaver, HOWEVER, when i go to remote view to see if all fields are working the dropdown box which I labeled package is now showing up in the email. How can I get this …

Member Avatar for Ayinainsoph
0
587

The End.