I'm new to Java and I'm trying to recreate a simplified version of the Game of Mastermind. I managed to allow the player to input once but then it stops. I don't know how to fix this, I've tried everything I knew how to do to fix this but I was unable to. My verification checker also doesnt work import java.util.*; public class Main{ public static void printRed(String a) String red = "\033[31m"; System.out.print(red + a); public static void rules() String reset = "\u001B[0m"; System.out.println(""); System.out.println("The Mastermind Game"); System.out.println(" - How to Play - "); System.out.println("* The goal is to …

Member Avatar
+0 forum 0

An early Xmas present to myself arrived at Chez Moi last month in the shape of a rather thick credit card. It's not actually a credit card though, and while it's a chunky 6mm wide it is pretty smart truth be told. That's because it's a clinically validated cardiac diagnostic device, a heart monitor to you and me, called a WIWE. Once I got myself over the fact that I cannot stop pronouncing it as a wee wee, I quickly found the WIWE does a whole lot more than your Fitbit or smartwatch can do in terms of monitoring your …

Member Avatar
Member Avatar
+0 forum 1

Hey community, how can i show the connected USB-Device like keyboard, mouse, webcam and so on? Or how can i search in the connected USB-Devices, if I know the name or only a part of the name? I am looking for some examples since 2 days, but no one doesn´t work. So I hope you can help me with some code examples in vb.net. best regards joshi

Member Avatar
Member Avatar
+0 forum 8

To all in the last week or so who received a private message from me consisting only of the phrase, `Noli Mentula`, I sincerely apologize. In the previous incarnation of Daniweb, sending a private message was considerably different than in the new version. I had assumed that a message would not be sent unless/until I composed it, then clicked some equivalent of `Send`. You know. Like practically every other text messaging system ever invented. While trying to work through the new system with Dani I inadvertantly started conversations with several users. To further explain `noli mentula`... It fall into the …

Member Avatar
Member Avatar
+1 forum 7

I am currently studying for an "Associates in Computer Science" with the intention of tranfering to a four year collage to get either a "Bachelors of Computer Science" or a "Bachelor of Applied Computer Science" hopefully this spring. Before I can make a decision on which Bachelors I would like, I have to know what type of job the Computer Science field I would want however I currently don't know the exact diffrence between some of these jobs in programing. Can anyone (perhaps who is more expreince in this job field) first explain the diffrence between some of the jobs …

Member Avatar
Member Avatar
+0 forum 7

Suppose that I construct my own programming language and my own compiler (for windows), I am free to use WINAPI like "CreateWindowEx"?

Member Avatar
Member Avatar
+0 forum 1

# Lab Assignment # We must create a program that will print a sorted list of all the students and the corresponding scores listing the highest score first and the lowest score last. In this case I would need a Bubble Sort. ## Question ## This is my "Bubble Sort" method shown in the code block below. public static void bubbleSort(String [] name, double [] score) { double temp; int counter; int index = 0; for(counter = 0; counter < score.length - 1 - counter; index++) { if(score[index] > score[index + 1]) { temp = score[index]; score[index] = score[index + …

Member Avatar
Member Avatar
+0 forum 6

Hello guys I'm trying to read a file copy content into a new file to a random directory: <?php error_reporting(E_ALL); $dirname = uniqid(); mkdir($dirname); $newFileName = '/'.$dirname.'/newfile.txt'; $newFileContent = 'someinfoinfile.txt'; if (file_put_contents($newFileName, $newFileContent) !== false) { echo "File created (" . basename($newFileName) . ")"; } else { echo "Cannot create file (" . basename($newFileName) . ")"; } ?> and got a no file or directory error.. Where I'm wrong?

Member Avatar
Member Avatar
+0 forum 1

Is it possible to use both Block parameters and Code Editor in one time?

Member Avatar
Member Avatar
+0 forum 1

Recently I realized that I not receive any email notification from DaniWeb. When I check on the User Settings, I saw this alert message > We have been having problems emailing you. Has your email address changed? Please update your email address to begin receiving email from us again. After I re-write my email, this message changed to > An email to verify your account has been sent to xxx@hotmail.com. Please click the link in the email to confirm your email address. But when I check my mail, I don't receive any email from DaniWeb.

Member Avatar
Member Avatar
+1 forum 10

plz... some give me the answer for this . this was asked in an interview.

Member Avatar
Member Avatar
+0 forum 26

![code_error.png](/attachments/large/4/0618569524bcc2abec40e81e5691d469.png) I'm relatively new to python, and I'm trying to create a pokemon battle. This error has come up, I've looked up solutions but it hasn't helped me as I can't understand it properly. Please help, I'd like to learn especially since I'm planning on taking IT and computer science for GCSEs. Thank you in advance.

Member Avatar
Member Avatar
+0 forum 5

Hi, can anyone please tell me the valid off-page techniques in 2018

Member Avatar
Member Avatar
-1 forum 2

Please tell me how?

Member Avatar
Member Avatar
+0 forum 2

Hello all, I was wondering if I could get some questions answered about how cupons work in the work place. I have an idea which involves creating a very flexible cupon service, but would require knowing the rudiments of how cupons work. The main question I have is how is tax calculated on a ware as it is sold under a cupon service. I believe that would be the only thing I would have to stringently mandate as far as the cupon goes, since the institution wishes to clear the merchendise from the floor. The service would involve some C# …

Member Avatar
Member Avatar
+0 forum 1

i have made leaves managment system ,now i want to mentioned leaves days in attendance register if employee take leave from 1-1-2019 to 4-1-2019 then 5 day display in attendance register as a (L) . kindly guide me how it will get done. here is my attendance register query in pivot table. SELECT DISTINCT ReportingDate INTO #Dates FROM EmployeesAttendance WHERE (ReportingDate BETWEEN @StartDate AND @Enddate) ORDER BY ReportingDate DECLARE @cols NVARCHAR(4000) SELECT @cols = COALESCE(@cols + ',[' + CONVERT(varchar, DATEPART(DAY, ReportingDate), 112) + ']','[' + CONVERT(varchar,DATEPART(DAY, ReportingDate), 112) + ']') FROM #Dates ORDER BY ReportingDate -- Building the query with …

Member Avatar
+0 forum 0

I am working on an image cropper. And I am on the first stages. I want to know how to create the the two divs over the image, one is transperent while the other acts as a mask. Can this be done with CSS? Or should I consider jQuery? This is what I want to accomplish ... ![Croppr_js.png](/attachments/large/4/5d86601b7d949d7e68afe7357beafc5d.png) I just want to know how to create this overlay image feature.

Member Avatar
Member Avatar
+0 forum 5

hi I have datagridview which i want to add on several forms. Number of columons and all ather functionality remains the same. to avoid creating size, columns, column names each time, i am trying to create class control for datagridview which will give me by default number of columns and size once i add the datagrid to form. i have tried this . **But it shows ten columns instead of five** . attached picture Public Class ClsDgvJournal Inherits DataGridView Public Sub New() Width = 500 Height = 200 Dim Col1 = New DataGridViewTextBoxColumn With {.HeaderText = "AAA", .Name = "A", …

Member Avatar
Member Avatar
+0 forum 11

Hello, i got a table in Excel (or exported to CSV). There are 3 columns (1. column = specification / 2. columns = value1 / 3. column = value2). On my vb.net form i got a textbox, 2 labels and a button. If i write in in the textbox "5" it should search in the Excel or CSV-File in columns A (specification" the "5" and then it should show the both values in this row in label1 and label2. I tried much things but i can only read and show the complete row in only one label and only from …

Member Avatar
Member Avatar
+0 forum 2

Hi, I have checked all the prior forum questions on this topic, but none of the options seem to be working for me. I am creating an output file that goes into a specific folder for getting MP3 file information. When I run inside of Visual Studio Community 15, it works great ... no errors. When I take the EXE and create a new folder for the actual application and run by itself is when I get the error. I have tried turning on the UAC to Admin rights, with no luck. Here is my code Private Sub cmdCreateFile_Click(sender As …

Member Avatar
Member Avatar
+0 forum 5

Hi, I want to get all youtube video embed code of my account in c#.net. Thanks Pankaj

Member Avatar
Member Avatar
+0 forum 1

Hi All Brothers I am working on ERP system and i need one help I wrote code for Datagrid auto complete. this code is working perfect but it only showing one Column record from database what i need is i want first column is to autocomplete as i did and it should fill related columns automatically linked with first column. please guide me with Codes many Thanks My Code Dim strConn As String Dim da As SqlDataAdapter Dim conn As SqlConnection Dim ds As New DataSet strConn = ("Server= DESKTOP-QN6F623; Database = stock_in;Integrated Security = false;User ID=dis;Password=0m3rP@ss") conn = New …

Member Avatar
Member Avatar
+0 forum 3

i am here ![Screen_Shot_2018-12-28_at_6_47_38_PM.png](/attachments/large/4/237abffd6067e29aa8bd690c2c1a74ec.png) i want to merge all rowsof 3 rd col so that output looks like... end result should be.... ![Screen_Shot_2018-12-28_at_6_49_34_PM.png](/attachments/large/4/92adfc647020ab9265f7d7248758c82f.png)

Member Avatar
Member Avatar
+0 forum 2

i didnt have3 a question

Member Avatar
Member Avatar
+0 forum 2

Why much time is needed to access an applet having swing components the first time?

Member Avatar
Member Avatar
+0 forum 3

I do the class but there are some codes I need to help me please : -Write a number of member functions that do the following: •Calculate the student GPA •Search for the highest mark taken in a particular course •Print the ID, first name, and last name of all the students who have already taken a particular course •Print the course code, course title, course mark, course grade of all courses taken by a particular student -Write a main program that does the following: •Define an array of objects of each one of the above three classes •Assign data …

Member Avatar
Member Avatar
+1 forum 3

I need a recomendation for a good motherboard and accompianing CPU. Here's what I'm looking for. Compatible with Linux plenty of USB ports plenty of sata ports, may be a dual boot Linux/Windows/SteamOS Although I don't currently do a lot of high end gaming, or gaming at all, but I would like the option to do so if I get the urge. Thanks.

Member Avatar
Member Avatar
+0 forum 1

Dear Friends, can any one help me to find IP address of my computer with the help of simple programing in visual basic?

Member Avatar
Member Avatar
+0 forum 3

Let's say you want to send a short private message to your friend, but don't want grandma to snoop around and find it. One way is to use the Python Image Library (PIL) and hide the message in a picture file's pixels. Just looking at the picture you will barely detect any difference between the before and after picture. All your friend needs is the decode_image portion of this simple code to get the message back.

Member Avatar
Member Avatar
+5 forum 15

What useful plug-ins / debuggers for Visual Studio do you use (for Windows)? P.S. I know Visual Studio has a good debugger)

Member Avatar
Member Avatar
+0 forum 2

The End.