75 Topics

Member Avatar for
Member Avatar for Zubenna

Dear Python coders, I am new to python programming and I am trying to solve an assignment. The question is stated below; Create a function that does the following 1. Accepts as the first parameter a string specifying the data structure to be used "list", "set" or "dictionary" 2. Accepts …

Member Avatar for Gribouillis
0
912
Member Avatar for kxjakkk

http://i.stack.imgur.com/nJGPy.png A physical memory/cache system has the above properties. I need to make a diagram showing how a 12‐bit main memory address is partitioned into the block offset, set index, and tag fields for addressing the cache. Show clearly the bit positions of the 12‐bit address occupied by each field. …

Member Avatar for rubberman
0
132
Member Avatar for Pyler

Are these two instructions equivalent, i.e do they both do the exact same thing? `addi $s0,$s0,0` and `add $s0, $s0, $zero`

Member Avatar for Hiroshe
0
239
Member Avatar for can-mohan

Hi, I am getting below error after executing below code. **Error**: In function `main': undefined reference to `Point2D::Point2D(int, int)' class Point2D { public: Point2D(int,int); int getX(); int getY(); void setX(int); void setY(int); double getScalarValue(); bool operator< (const Point2D &right) const { return x < right.x; } protected: int x; int …

Member Avatar for Moschops
0
259
Member Avatar for anku83

I want to find all the subset of a set.Can sumone plz help me through this.I have a array which would consisting ={1,4,5,6,7} i want all subsets.. {1,4} {1,5}...{1,4,5,6} {1,5,6,7} {1,4,6,7}..etc.

Member Avatar for JamesCherrill
0
116
Member Avatar for anku83

I have this code which finds the duplicate rows .I want to check if the top row has weight greater than given minimum support..If true then generate its subsets. If row 1 i.e 11110011 wight>min_sup then generate subsets....if not then jump to next row here 1 represents presence of items …

Member Avatar for anku83
0
297
Member Avatar for theashman88

I understand the concept of using get and set with instance variables, but I am confused about using get and set by themselves For example `public string random {get; set;}` what is the purpose of this, and how can I use this in my code. I am a beginning programmer …

Member Avatar for tinstaafl
0
224
Member Avatar for ZJRG.1997

I'm quite new to python and am trying to make a kind of 20Q thing, but am struggling - anybody know how to delete a list from a set, or if not a list from a list? Thanks :)

Member Avatar for Gribouillis
0
386
Member Avatar for MikeBah

I have been asked to build a group of functions that carry out set theory operations such as intersection and union. The functions below that I must complete are set_intersectWith, set_unionWith, set_minusWith, set_powerset, where: > set_intersectWith = A ∩ B > set_unionWith = A ∪ B > set_minusWith = complement …

Member Avatar for rubberman
0
538
Member Avatar for eburlea

Hello. I have a function that checks the internet connection. I need to set a timeout to it. I have tried without success to do that. Please help. Here is the function: function isOnline() { if(navigator.onLine){ var uri = baseUrl+'ping'; var xhr = new XMLHttpRequest(); xhr.open('GET',uri,false); try{ xhr.send(); return true; …

Member Avatar for stbuchok
0
199
Member Avatar for theashman88

I'm in a class and we discussed what set /p does, but I wasn't paying close attention, I was wondering if anyone could explain to me what set /p does and an example of how I can use it in a batch file for dos

Member Avatar for cuzintone
0
301
Member Avatar for jamojo

Hello Everyone, I am trying to compute the subscription next due date. For example, these are the subscription dates: 1/28/13 1/29/13 1/30/13 1/31/13 When I used the php function strtotime( "+1 month", <date> ) the next month due date will be: 1/28/13 due date is 2/28/13 1/29/13 due date is …

Member Avatar for jamojo
0
2K
Member Avatar for Basuraj

Dim table As DataTable = New DataTable table.Columns.Clear() Chart1.DataSource = Nothing Chart1.Series.Clear() table.Columns.Add("Color", GetType(System.String)) table.Columns.Add("Data", GetType(System.Int32)) table.Rows.Add("Green", Integer.Parse(txtgreen.Text)) table.Rows.Add("Red", Integer.Parse(txtred.Text)) table.Rows.Add("Blue", Integer.Parse(txtblue.Text)) table.Rows.Add("Yellow", Integer.Parse(txtyellow.Text)) table.Rows.Add("Brown", Integer.Parse(txtnothing.Text)) Dim IEtable = CType(table, System.ComponentModel.IListSource).GetList Chart1.DataBindTable(IEtable, "Color") Chart1.DataBindTable(IEtable, "Data")

Member Avatar for ReyJEnriquez
0
292
Member Avatar for vegaseat

A simple way to find duplicate words in a text. In this case the text is preprocessed to eliminate punctuation marks and set all words to lower case.

Member Avatar for paddy3118
2
4K
Member Avatar for adam.meyer.712

I need help writing a program in c++ where i have to write 3 different programs, a webcounter.cpp,webcounter.h, and test_prgm.cpp.So then i have to creat a makefile to compile them together, and the result of the program is "When I create the the counter, I would like to be able …

Member Avatar for adam.meyer.712
0
358
Member Avatar for pmark019

I have an image view in my android application. I want to set the picture dynamically from a link. Example: The user has an id number of 0920305 The image from http://teachers.usls.edu.ph/student_pics/0920305 will appear on the image view.

Member Avatar for abhiroop.nray
0
224
Member Avatar for nikki05

Hi, I have one form with multiple controls (e.g. Button,Textbox, RadioButton, ComboBox, etc.). I want to set the focus dynamically on a control using key F4 to highlight that control. Scenario: 1.Suppose the user clicks on any control 2.Press Key F4 to highlight that control so that the user will …

Member Avatar for Reverend Jim
0
3K
Member Avatar for xxwikkixx

Hey everyone I was programing a small game and I am trying to figure out how to send an int value to a class and return a String from it. This is my code: This is my main.java class public class GamGUI { /** * @param args */ public static …

Member Avatar for riahc3
0
316
Member Avatar for kwng

I have this problem of moving my codes around in my external drive. Everytime I plug the external drive to a new PC, a different drive is assigned and I would have path not found error in my program. I only knew about set_path=app.path which is actually referring to the …

Member Avatar for fsshah
0
833
Member Avatar for Clan Onion

And the microprocessor? I want to know exactly how this all works. Wikipedia claims that an instruction set architecture determines the data, registers, addressing modes, memory, etc. It also claims that it dictates the opcodes on a microprocessor. Wikipedia says "Microarchitecture" is the way a given ISA is implemented on …

Member Avatar for mike_2000_17
0
1K
Member Avatar for -acir-

//compute percentage for Parent1 DecimalFormat df = new DecimalFormat("#.##%"); rs = s.executeQuery("SELECT " + "(SELECT COUNT(*) FROM genetic.blood_type where diseases = '" + disease1 + "')" + "/COUNT(*) AS rowcount FROM genetic.blood_type where btype = '" + btype1 + "'"); rs.next(); int result = rs.getInt("rowcount"); rs.close(); out.println(disease1 + " is …

Member Avatar for -acir-
0
220
Member Avatar for fyra

Hi. Nice to meet you. I'd like to know if I'm doing the allocation of memory from data to new_data correctly and why new_data only has one value since the memory of data was copied before to new_data. set size: 10 set[000] = 000 set[001] = 001 set[002] = 002 …

Member Avatar for fyra
0
277
Member Avatar for DyO1

Hello, I need a code that checks if a button is pressed to change the BackGround Image of Picture Box So when the button is pressed,a backgroundimage of a picturebox must be changed I tried to use PictureBox1.BackgroundImage.FromFile("IMAGE.bmp") *THE IMAGE IS IN THE PROJECT,IT'S NOT ON THE HARD DRIVE ANYMORE**but …

Member Avatar for tinstaafl
0
116
Member Avatar for inaxassan

Consider a hospital scenario. Design classes for: Patients. The class might have fields like unique ID for the patient, name, male or female, age, address, phone number, date of birth, height, and weight. I need help with this problem

Member Avatar for vegaseat
0
2K
Member Avatar for rami sohaill

package hospitalclient; public class Person { static int idnumber= 1500; private String name; private String telephoneno; private char gender; private String nationality; //No Parameter constructor public Person() { name="unassigned"; telephoneno = ""; gender = 'M'; nationality = "Saudi"; } public int getid() { return idnumber; } // Accessor Methods public …

Member Avatar for JamesCherrill
0
349
Member Avatar for codesforcoffee

I think this simple example might ask the question a lot more clearly. I have an input file with multiple products. There are different types of product (2 types with 2 product IDs is fine enough for this example), but the input will have many more. I only want to …

Member Avatar for codesforcoffee
0
2K
Member Avatar for ddanbe

For anyone who likes to do something with sets in C#, this can be a starting point. The full project (VS 2010) is also included. Have fun with programming!

0
302
Member Avatar for echo12

Hi everyone, I have 3 forms: main, AdvancedSearchMenu, and FacilitySearch. When the user clicks the AdvancedSearchMenu button on the main form, a new form appears in the style of a popup. This form contains a few different controls, including a button for FacilitySearch. I want the form to change from …

Member Avatar for AnkitGuru
0
243
Member Avatar for Doogledude123

Button1.DoDragDrop(BackgroundImage, DragDropEffects.None) Throws an error ' Object reference not set to an instance of an object. ' First time I've used DoDragDrop, and first time with 2012 :)

0
166
Member Avatar for efth

I'm quite new to Javascript but thought that I should challenge myself to use it to solve an old problem of mine. I'm trying to set the height of a div to the same as the width of it. Example: The width is set to 50% and the screen is …

Member Avatar for JorgeM
0
275

The End.