Help i need to have 3 login attempts then the program will lock down but the message box shows up 3 times consecutively, it will close then pops out it will do this for 3 times then it closes ... help pleassseee :( Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click Dim un, pw As String Dim counter As Integer = 0 un = txtUsername.Text pw = txtPassword.Text Do If un = "student" And pw = "21217" Then Me.Hide() CourseStudy.Show() Else counter = counter + 1 MsgBox("Try again", MsgBoxStyle.Critical, "Acess Denied") txtPassword.Text = "" txtUsername.Text = …

Member Avatar
Member Avatar
+0 forum 1

package de.extrema.java; import java.util.Scanner; public class Pogramm { public static void main(String arrg[]) { try (Scanner scanner = new Scanner(System.in)) { double a , b , r , A , h; int number2; int number; System.out.println("Körper: "); System.out.println("Deine Wahl: "); number = scanner.nextInt(); number2 = scanner.nextInt(); switch(number) { case 1:{ switch(number) { System.out.println("Viereck: 1 Kreis: 2 Dreieck: 3 Trapez: 4 "); case 1:{ System.out.println("a: "); a = scanner.nextDouble(); System.out.println("b(a): "); b = scanner.nextDouble(); A = a * b; System.out.println("Fläche des Vierecks= " + A); break; } case 2:{ System.out.println("r: "); r = scanner.nextDouble(); A = Math.PI * r * r; …

Member Avatar
Member Avatar
+0 forum 5

I tried alot to print this arrow with random generated values which are 0101 , every time it should be differnt, please help me out thanks :) ![Untitled1.png](/attachments/large/4/c843d1e3a2cf1464dc1f1eb7c0d4a68a.png)

Member Avatar
Member Avatar
+0 forum 6

I am working on a problem for which i have already developed a solution, but i am new to OPP prgramming and started learning recently. Would request OPP Gurus to provide suggestions for the better designs, keeping scalability, extendability of (course readability) in mind. Also,I would like to extend the the current program for mutiple random players and winner is decided based on max number of votes. But there are rules: 1)Currently i have 6 players, out of which any number of players might contest(taken from std::input or cmd args) 2)Contestants are not aware of other contestants. 3)Each contestant has …

Member Avatar
Member Avatar
+2 forum 1

Hi everyone, I'm new to parallel programming, and my project is the two-dimensional matrix vector multiplication using mpi in C programming language. I have this multiplication function, but I don't know exactly how to run it with mpi. Can you help me, please? I write these commands, $ mpicc -g -Wall -o matrix2d matrix2d.c -lm -c $ mpiexec ./matrix2d.c But I get some errors. `mpiexec was unable to launch the specified application as it could not access or execute an executable: Executable: ./matrix2d Node: ubuntu while attempting to start process rank 0.` 2D Matrix-Vector Multiplication Function is below: #include <stdio.h> …

Member Avatar
Member Avatar
+0 forum 1

#include<iostream> #include<string> using namespace std; class stack { string item; int top; public: stack() { top=-1; } void push(char ch) { top++; item[top]=ch; } char pop() { char ele; if(isempty()) { printf("\n stack overflow!!"); return '@'; } ele=item[top]; top--; return ele; } char peep() { return(item[top]); } int isempty() { if(top==-1) return 1; return 0; } int priority(char ch) { if(ch==')') return 1; else if(ch=='+' || ch=='-') return 2; else if(ch=='*' || ch=='/') return 3; else return 4; } }; int main() { string infix,prefix; char ch,ch2,token,temp; int i,j=0,len; stack st; cout<<"enter the valid infix expression: "; cin>>infix; len=infix.size(); for(i=len-1;i>=0;i--) …

Member Avatar
Member Avatar
+0 forum 4

1/Write a TeachArithmeticFrame class that teaches children arithmetic. The frame uses a JLabel for a problem and a JTextField for the user answer. When the user presses the Enter key (while the JTextField object is active) or clicks the OK button, display a message stating whether the user’s answer is correct. When the Next button is clicked, display a new problem. The numbers are limited to two digits. Consider using a larger font for the JLabel and JTextField text. You can change the color of text by calling the setForeground method, for example. questionLbl.setForeground(Color.RED); 2/Extend the TeachArithmeticFrame class so that …

Member Avatar
Member Avatar
+0 forum 1

Help me , Search data with dataGuidViewer and print that searching result (vb.Net). I am try verious Code thous are found youtube, but it not work...... Please Help me VB.Net (2010, 2012,2013,)

Member Avatar
Member Avatar
+0 forum 2

Assume that you are the manager of a restaurant. Create an interactive program that allows you to manage the order from your customers and compute your daily sales. First create a text file that contains the menu of your restaurant. Arrange the menu such that the items are properly organized in different categories, for instance food, drinks and desserts. Your program should be able to read data from the input file. When the program started, the main menu should display the following options 1. Show the current order of the customer. If the order is empty, display ”Please select your …

Member Avatar
Member Avatar
+0 forum 2

MyMainWindow::createUI() { label = new QLabel("foo"); button = new QPushButton("Browse"); connect(button, SIGNAL(clicked()), SLOT(browse())); layout = new QHorizontalLayout(); layout->addWidget(label); layout->addWidget(button); setLayout(layout); } void MyMainWindow::browse() { QString directory = QFileDialog::getExistingDirectory(this, tr("Find Files"), QDir::currentPath()); if (!directory.isEmpty()) { if (directoryComboBox->findText(directory) == -1) directoryComboBox->addItem(directory); directoryComboBox->setCurrentIndex(directoryComboBox->findText(directory)); } } MyMainWindow::createUI() { label = new QLabel("foo"); button = new QPushButton("Browse"); connect(button, SIGNAL(clicked()), SLOT(browse())); layout = new QHorizontalLayout(); layout->addWidget(label); layout->addWidget(button); setLayout(layout); } void MyMainWindow::browse() { QString directory = QFileDialog::getExistingDirectory(this, tr("Find Files"), QDir::currentPath()); if (!directory.isEmpty()) { if (directoryComboBox->findText(directory) == -1) directoryComboBox->addItem(directory); directoryComboBox->setCurrentIndex(directoryComboBox->findText(directory)); } }

Member Avatar
Member Avatar
+1 forum 1

Hello. At work, I have to count about 5k in a day for products. When someone takes out or puts in products for example 450 I have to recount again. So I want to create a system that when someone puts some kind of product on the shelf they would enter the quantity they are putting on the stock. For example, TOM puts 150 pcs of -product1- in stock. Then Bill will take 50 pcs of the same product1. So the system would do the calculation: 150-50 = 100 pcs left in stock. When TOM will put again 110 pcs …

Member Avatar
Member Avatar
+0 forum 2

**Task** Your task is to write a program that will draw graphs and output them as coloured image in the .ppm file format and display them using a suitable external image viewer (IrfanView). The program will use code generated sine waves, and harmonics of these, to calculate and display the harmonic components of a square wave. All sine wave harmonic should be displayed, each in a different colour – and the square wave that results from summing all the sine waves should also be displayed. The resultant waveforms should be output as a single file in the .ppm format. Initially, …

Member Avatar
Member Avatar
+0 forum 26

Hello everyone, I am Bastian, i would be very grateful if anyone could help me on this one. I want to self-study about creating a Hotel Management program in Netbeans but i am afraid that i just have a basic knowledge in Java. I studied Programming but unfortunately i have to stop due to my financial issues. So i am thinking if anyone could give me some tips and tricks in order for me to create a program. I want to learn by my own but i have no idea where to start. Thank you very much.

Member Avatar
Member Avatar
+0 forum 1

Hello everyone, I am writing this post again because there were ambiguities in the previous one. I need help with this task tomorrow. I will present what I have, what I got from you and ask which code is best to use to perform this task. I will start with the program I wrote to fill the 6x6 array with random numbers and display it on the console. The program displays random numbers stored in an array in the range of -5 to 64 ... I believe deeply that it contains no error. int x,y; int rand_tab[6][6]; int main() { …

Member Avatar
Member Avatar
+0 forum 5

I am new to code writing. How do I make it so this page stays centered in web browsers? What HTML code do I add and where? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Direct Selling Rumors & Gossip</title> </head> <body bgcolor="066082"> <TABLE align="center" class="" style="BACKGROUND-IMAGE: url(http://www.directsellinglive.com/Rumors/Rumors.jpg)" height="1067" width="1916"> <TBODY> <TR> </div></TD></TR></TBODY></TABLE> </body> </html>

Member Avatar
Member Avatar
+0 forum 8

Before anyone files a bug report, we are no longer pretty printing (using javascript to add line numbers & color coding) code snippets when on mobile browsers for performance reasons. It's not that it was particularly non-performant on mobile. It's rather just that I'm working hard to improve performance across a variety of devices, and I felt like it wasn't worth the trade-off, given it's an extra second or so of javascript parsing in exchange for making code not all that much more readable when on a mobile device.

Member Avatar
Member Avatar
+0 forum 33

Can I ask for a help? On how to program billing system with source code? I just need it for my case study.

Member Avatar
Member Avatar
-1 forum 1

HI everyone, _SBLOCK *allocateMemBlock(size_t size) [ _SBLOCK *block = (_SBLOCK*)sbrk(0); void *memadr = (void*)sbrk(0); void *allocate_mem = (void*)sbrk(BLOCK_SIZE + size); if(allocate_mem == (void*)-1) [ return NULL; ] else [ block->next = NULL; block->isfree = false; block->size = size; block->memoryAddress = memadr+BLOCK_SIZE; return block; ]

Member Avatar
Member Avatar
+0 forum 8

Hi All, I am trying to create multiple codeigniter sessons for multiple users. I will explain my scenario. I have developed an application using codeigniter and launched in an ecommerce platfomr so that many shop owners installed my application. Now from my admin front, I have access to check for each particular user's app interface using the session and redirect method. I want to make the sessions for all users open in different tabs, when I click on one button. I have used a for loop. The iteration works perfect and data are for each user are retrieved perfectly. But …

Member Avatar
Member Avatar
+1 forum 6

So, i'm having a bracket issue in line 83:9 or where the slashes are. it's telling me " error: expected identifier or '(' before '{' token", I don't understand how i am receiving this error. If somebody can explain to me how I'm receiving it, thank you. _Bool palindromes(char string[]) { int i = 0; while(string[i]=0 != '\0') { i++; int last_place = i - 1; for(int n=0; n<=last_place; n++) { if(string[n] == string[last_place]) { last_place--; continue; } if(n !=last_place) { return false; } } } } { //here is the issue while(string[i]=0 != '\0') int i=0; { i++; int …

Member Avatar
Member Avatar
+0 forum 2

Create a Project name Banking which will have the following classes with the given instance variables and the methods Create a class Account with first name , last name, address , phone number, balance (instance variables) Withdrawal and deposit methods Create checking account class extending the account class, Having additional instance variables monthly fees, over draft limit(OD), over draft active, overdraft fees Overriding the withdrawal and deposit methods Withdrawal method should check the over draft active or not if yes then should check the balance with the withdrawal amount and then perform the withdrawal, if withdrawal request is within the …

Member Avatar
Member Avatar
+0 forum 1

Hi, I've been having issues with my program where I make the rocket do what its supposed to do when it comes to outputting a filled and hollow rocket body depending on either a odd or even value. The only problem I am currently having is duplicating the body length also known as adding stages of how long I want the boyd to be. Here's my code: [code] //Draw a Rocket with a filled or hollow body with stages #include <iostream> using namespace std; void drawOddBox(/* in*/ int, /* in */ int); //Function prototype with two value parameters void getDimensions(/* …

Member Avatar
Member Avatar
+1 forum 1

Hi guys. And doing a system in spring. I want to cascade a dropdown list such that the selection on the first dropdown affect what appears in the second dropdown. All these data should come from a database. What I am getting online is using php is not what I want. Any help will be appreciated. Attached is what I have done. 1. Html <fieldset class="row1"> <div> <p> <label>3rd Party Category</label> <select th:id="selectCategory" name="selectCategory" th:field="*{category}" path="category"> <option value="">Select Category</option> <option th:each="category : ${category}" th:value="${category.id}" th:text="${category.name}" /> </select> </p> <p> <label>3rd Party Name</label> <select id="selectThirdParty" name="selectThirdParty" path="thirdParty"> </select> </p> </div> </fieldset> …

Member Avatar
+0 forum 0

How do I echo selected option? <?php session_start(); if(isset($_SESSION['cherianne'])){ }else{ header("Location:login.php"); } include("../includes/header.php"); // Retrieve our critical page setter variable. $char_id = $_GET['id']; //echo "<h1>$char_id</h1>"; // set this as a default value if (!isset($char_id)) { $result = mysqli_query($con, "SELECT bid FROM cde_blog LIMIT 1"); while ($row = mysqli_fetch_array($result)) { $char_id = $row['id']; } } // Step 3: UPDATE the DB with the new info from the form. Validate first. if(isset($_POST['mysubmit'])) { $title = strip_tags(trim($_POST['title'])); $message = strip_tags(trim($_POST['message'])); //echo "$title, $message"; $valid = 1; $msgPre = "<div class=\"alert alert-success\">"; $msgPreError = "<div class=\"alert alert-danger\">"; $msgPost = "</div>\n"; // Title Validation if((strlen($title) …

Member Avatar
+0 forum 0

CREATE TABLE Peaje ( id_no_pk CHAR(2) NOT NULL, nombre VARCHAR(30) NOT NULL, localizacion VARCHAR(30) NOT NULL, dirrecion VARCHAR(50) NOT NULL, tipo CHAR(1) NOT NULL, municipio_fk CHAR(2), CONSTRAINT Peaje_id_no_pk PRIMARY KEY(id_no_pk) CONSTRAINT Peaje_municipio_fk FOREIGN KEY (municipio_fk) REFERENCES Municipio(id_no_pk)); CONSTRAINT Peaje_municipio_fk FOREIGN KEY (municipio_fk) REFERENCES Municipio(id_no_pk)) * ERROR at line 9: ORA-00907: missing right parenthesis The parenthesis are in pairs and match. Why would this error message occur and how could I fix it>? Edit: this is the other Table for reference: CREATE TABLE Municipio ( id_no_pk CHAR(2) PRIMARY KEY, nombre VARCHAR(20) NOT NULL ) ;

Member Avatar
Member Avatar
+0 forum 1

from tkinter import * import time root = Tk() root.title("Testing System") root.geometry("900x600") def main(): def tick(): time_str1= time.strftime("%H:%M:%S") clock.config(text = "Current Time:\n" + time_str1) clock.after(200, tick) def date(): date_str1 = time.strftime("%A, %d %B %Y") date2.config(text = date_str1) date2.after(200, tick) frame = Frame(root) clock = Label(frame, font = ("times", 14, "bold"), bg = "light pink") clock.place(x = 260, y = 60) tick() date2 = Label(frame, font = ("times", 13, "bold")) date2.place(x = 40, y = 560) date() button1 = Button(frame,text = "Test", height = 2, width = 10, command = frame.destroy and menu) button1.pack() button1.place(x = 370, y = 150) def …

Member Avatar
Member Avatar
+0 forum 1

I am a beginner in C# database developing. I am developing a payroll application with four (4) user roles (i.e. Admin, Accountant, HR and ReadOnly). There is a Dashboard that displays four buttons that link their respective access pages. Though when logged in based on the user's role, he is directed to the Dashboard successfully. Now, what am expecting are that when the Admin logs in, all buttons on the dashboard should be active. But whenever any of the other users logs in, all other buttons should be disabled, except his. Below is the code I used; please can someone …

Member Avatar
+0 forum 0

I understood that it is not possible to run C code with gcc for a file in sdcard directories, sudo is required. But I see that it's possible to run Ruby files with Ruby. I don't understand why. Can someone say me what languages can be run in sdcard in the terminal?

Member Avatar
Member Avatar
+0 forum 7

Task 2: Write a program that simulates an unbiased coin flip. Your program should print true if the coin flip results in a head and false if the coin flip results in a tail. Hint: any value greater than 0.5, represents Head otherwise it represents Tail

Member Avatar
Member Avatar
+0 forum 1

write a C program to sort a csv(student.csv)file using QSORT on LINUX .. please help.. student.csv file containing(student name, percentage)

Member Avatar
Member Avatar
+0 forum 1

The End.