65 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for Violet_82

Hi guys, I seem to have an issue with a boolean method returining a value. Here is the code excerpt - irrelevant code omitted: public class StreamsTest { public static void main(String[] args) { String[] arr = new String[]{"a", "b", "c"}; //convert array to string with streams List<String> list = …

Member Avatar for masijade
0
2K
Member Avatar for Michael_9

# **OLD** # [URL=http://s127.photobucket.com/user/yoda3ddd/media/codemap_zps4115ff7e.jpg.html][IMG]http://i127.photobucket.com/albums/p158/yoda3ddd/codemap_zps4115ff7e.jpg[/IMG][/URL] The Data Namespace Core Friend Module Func Public OkButton As Button Public CancelButton As Button Public ProgBar As ProgressBar Private Sub ProgressLoop() Do Func.ProgBar.PerformStep() Threading.Thread.Sleep(1) Loop End Sub #Region "Constants" Public Const DataRoot As String = "C:\AFormData\" Public Const IMG_PATH As String = "C:\AFormData\img" Public Const …

Member Avatar for Michael_9
0
473
Member Avatar for Latrell_vie

I have the following code and i dont understand why P4(3,7)is giving returnvalue true (1) , since here 7(ConTemp.XYCoord[1]) is bigger than 5 (ReCoordRo.XYCoord[1]), so i would like to know a way to monitor the boolean Rechteck1.contains(P4), watch windows doesnt give me that option, so how do i go about …

Member Avatar for ddanbe
0
677
Member Avatar for Doogledude123

I need a boolean to be stored with a String (or possibly a Path, not sure which one I want to use yet). I thought about using a Map, so I did some looking around and found out that LinkedHashMaps are the only type of Map that stay in Order …

Member Avatar for Slavi
0
292
Member Avatar for it@61@sec

I have the following struct definition: struct finfo { string filename; long fsize; bool operator() (finfo i, finfo j){return (i.fsize > j.fsize);} } fstruct; And the following vector definition: vector<finfo> fdata; In the code I use the following statement to sort the vector elements by fsize: sort(fdata.begin(),fdata.end(),fstruct); This works perfectly …

Member Avatar for it@61@sec
0
958
Member Avatar for vishalonne

Question. Name the law given and verify it using a truth table. X+ X’.Y=X+Y My Answewr give below X | Y | X’ | X’.Y | X+X’.Y | X+Y 0 | 0 | 1 | 0 | 0 | 0 0 | 1 | 1 | 1 | 1 | …

Member Avatar for faroukmuhammad
0
247
Member Avatar for moaz.amin.37

i want to understand that what is bolean data type in c++. I tried to my best but i can not understand boolean data type plz help me

Member Avatar for Schol-R-LEA
0
378
Member Avatar for mellixa

I cant figure out how to check the array for AND and OR. please, help, i got stuck my code: import java.util.Scanner; public class BooleanProduct import java.util.Scanner; public class BooleanProduct { public static void main(String[] args) { Scanner input = new Scanner(System.in); int[][] A = new int[10][10]; int[][] B = …

Member Avatar for JamesCherrill
0
879
Member Avatar for mellixa

import java.util.Scanner; public class BooleanProduct { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = 10; int[][] A = new int[n][n]; int[][] B = new int[n][n]; //Fill A and B int m,n2,p,q; System.out.println("Enter number of rows for matrix A : "); m = input.nextInt(); System.out.println("Enter …

Member Avatar for stultuske
0
300
Member Avatar for grafic.web

Hi, is more than a week that i try to resolve this error on my app but i can't... The problem is the following : I have a menu and submenu table and i show this records in this mageMenu.chstml (list of menus and submenus to generate the menubar of …

0
184
Member Avatar for C

I had a programme to write for college in Java. I have missed the class so I won't be getting marked on it but wanted to get it done as I have an exam next we. I am really stuck. I have to create a costInsurance () method taking in …

Member Avatar for C
0
309
Member Avatar for GeneClaude

So we were asked to reproduce the function generator and oscilloscope as a virtual instrument for our final exam. But I'd like to focus on the function generator. The audio generator GW Instek GAG-809/810 has only a single button for the waveform wherein the user would just press it repeatedly …

Member Avatar for Alberto Bucur
0
202
Member Avatar for jj.dcruz

i have a database at the links. so the problem it still insert between the time some friends suggested to loop all the data 1st then validate but im confused here. **any help would be great ** <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <?php mysql_connect("localhost","root",""); …

Member Avatar for jj.dcruz
0
208
Member Avatar for Derek_4

I am having trouble adding an item that will increase a player's energy in my BlueJ game. At the bottom of the createRooms() method in my game class I have added several items to rooms. At that point I tried setting boolean newEnergy equal to true. If the player types …

Member Avatar for Derek_4
0
324
Member Avatar for beastie805

I need help reading a bool function from my HW assignment, I am not asking you to do complete my assignment for me. All I need help with is reading my bool function in main. Thank you for looking #include<iostream> #include<fstream> #include<string> using namespace std; struct StudentType {string studentName; int …

Member Avatar for beastie805
0
682
Member Avatar for vishalonne

Hi Every body Is my answer correct for this question - Obtain the minimal form for the following Boolean expression using Karnaugh map. F(U, V, W, Z) = ∑(0, 1, 2, 3, 6, 7, 8, 9, 10, 13, 15) My answer - ![a48a42f649b78dce10e6abdea215d087](/attachments/small/2/a48a42f649b78dce10e6abdea215d087.jpg "align-left") There are four pairs and one …

Member Avatar for ravikash123
0
202
Member Avatar for Shivam_4

Can someone help me with solving boolean expressions with the help of forward chaining. A good tutorial will also help me. Example: A.(A + B) = A A.(A + B) => A.A + A.B [Applying distributive law] A.A + A.B => A + A.B [Applying idempotency law] A + A.B …

0
181
Member Avatar for jshlmnc

I am having trouble getting started with my program. I have writen the array but I am having trouble starting the if statemnent to fill the seats in the program. If they press 1 it needs to fill seats 1 through 5 if they press 2 it needs to fill …

Member Avatar for JamesCherrill
0
308
Member Avatar for matt.harding.14203

For the below program: import java.util.*; public class triangleLoop { public static void main (String[] args) { int height, row, col, spa; String leftOrRight; char hyp; Scanner kbd = new Scanner(System.in); System.out.println("Enter the desired height of the triangle: "); height = kbd.nextInt(); kbd.nextLine(); System.out.println("What side do you want the hypoteneuse …

Member Avatar for JamesCherrill
0
263
Member Avatar for Anark10n

Pk, so here's the code I'm running for a checkboxlist object public void regSubjects(object sender, EventArgs e) { int courseCount = 0; for (int i = 0; i < coursesFound.Items.Count; i++) { if (coursesFound.Item[i].Selected) coursesCount++; } if ((courses < 4) && (courses > 6)) clabel.Text = string.Format("Choose between 4 - …

Member Avatar for rubberman
0
322
Member Avatar for l.worboyz

basically i am working on a project for uni, which is to create a form of an abacus model. - peg_array[] stores the number of counters/beads present in each of the pegs(lines) of the abacus. i am trying to use 2 boolean methods: "boolean removeCounter(int thisPeg)" "boolean removeCounter(int thisPeg)" thisPeg …

Member Avatar for valdez25
0
304
Member Avatar for musikluver4

Just a curious question, not important really. More for a discussion. Isn't using int i = 0; boolean count = false; pretty much the same thing when flagging? I mean when something goes right, change i = 1; count = true; and get the same result. What's the advantage of …

Member Avatar for stultuske
0
299
Member Avatar for Start4me

I want to create a method that is meant to protect against entering a wrong value for gender. The method **fineGender** below, will return true if the correct gender is entered and false otherwise. // postcondition: fineGender returns true if argument g equals M, m, F or f // and …

Member Avatar for andreas.bjorn
0
325
Member Avatar for Noth

Hi everyone. I'm trying to verify whether the variables $username and $password_recovery (both are unique - impossible for them to be the same) both come from the same row in the rable 'users'. This is the query I am using: return (mysql_result(mysql_query("SELECT COUNT(`user_id`) FROM `users` WHERE `username` = '$username' AND …

Member Avatar for urtrivedi
0
195
Member Avatar for john.knapp

Consider this: I have a user-defined stored procedure which returns a bit value as OUTPUT. In my calling code I want to check that value. I define it in my code as follows: Dim retval As New SqlParameter() retval.ParameterName = "@return" retval.SqlDbType = SqlDbType.Bit retval.Direction = ParameterDirection.Output DataCommand.Parameters.Add(retval) DataCommand.ExecuteNonQuery() ' …

Member Avatar for john.knapp
0
528
Member Avatar for //Gonz

Good morning I have an event called "OptionChanged" that is triggered when one of many CheckBox's is changed. string cb = ((CheckBox)sender).Name.Remove(((CheckBox)sender).Name.Count() - 1); gets the name of the changed CheckBox, removes the last letter then copies it to a string. Now, i need to find the relevant bool (named …

Member Avatar for //Gonz
0
245
Member Avatar for sapure
Member Avatar for sapure
0
243
Member Avatar for jongiambi

I am trying to implement a function sameMonth from a class to compare two user entered months. My class is declared in a header file "Date.h": #include <iostream> using namespace std; class Date { private: string month; int day; int year; public: Date(); Date(string aMonth, int aDay, int aYear); void …

Member Avatar for vijayan121
0
284
Member Avatar for trishtren

Hello, I am hoping someone can help me understand a piece of code i found. Since php is not my primary language, and what i googled returned vague results, i am unsure exactly how a number or integer value can be used directly as a boolean in a while operation. …

Member Avatar for pritaeas
0
217
Member Avatar for lesliebielski

I am new to Java (taking it to get warmed up for C and C+++ as I am very rusty.) I am writing a class that is suppose run the file DLTest.java(written by the instructor) that is suppose to keep track of two licenses with name and tickets. DrivingLicense, ().addTicket, …

Member Avatar for JamesCherrill
0
235

The End.