142 Topics

Member Avatar for
Member Avatar for Victoria_1

For a homework assignment in my intro to java class I was given the following problem: Write for, do-while, and while statements to compute the following sum and product 1. 1 + 7 + 25 + 79 + .... + (3^20 - 2) 2. 1 x 3 x 9 x …

Member Avatar for stultuske
0
250
Member Avatar for macky.p.deleon

hi guys im a newbie on html java script,, im using switch statement but my final output always fall at my default statement need help.... here's my code... function finalgrade() { var texttgp, texttgm, texttgsf, texttgf, textfg; texttgp = parseFloat(document.frmMacky.textTgp.value); texttgm = parseFloat(document.frmMacky.textTgm.value); texttgsf = parseFloat(document.frmMacky.textTgsf.value); texttgf = parseFloat(document.frmMacky.textTgf.value); textfg …

Member Avatar for Daniel_28
0
126
Member Avatar for Brandy_1

Program runs without errors, unfortunately it will not calculate the days overdue. Any Suggestions? I have attached the code as a pdf, i have also done this as an IF, THEN, ELSE statement with the exact same results, but it will not let me upload it. Help! Private Sub calculateFees …

Member Avatar for Reverend Jim
0
391
Member Avatar for Jing_1

Hi all, i encounter an syntax error "Syntax Error in Insert Into" when i try to run this code... anyone can assist? Thanks! Dim sConnectionString As String sConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;" & _ "Data Source=H:\Users\Desktop\EmployeeAway2.xlsx;Extended Properties=""Excel 12.0;HDR=YES;""" Dim objConn As New System.Data.OleDb.OleDbConnection(sConnectionString) objConn.Open() Dim objCmd As New System.Data.OleDb.OleDbCommand() objCmd.Connection = objConn …

Member Avatar for Jing_1
0
346
Member Avatar for dany12

Based on this ideea **You just wrote a loop allowing the input of 20 names into a list. Alas, you made an error as you entered name number 17. Redesign your input loop, so you can correct the error easily without having to retype the previous 16 names.** I wrote …

Member Avatar for TrustyTony
0
319
Member Avatar for mustafa.bahaa

That program output (the chr is not a vowel ) everytime !! even if it's vowel #include <stdio.h> #include <conio.h> int main() { char ch; printf("Input a character\n"); scanf_s("%c", &ch); switch (ch) { case 'a': case 'A': case 'e': case 'E': case 'i': case 'I': case 'o': case 'O': case …

Member Avatar for Ayrton C.
0
300
Member Avatar for nouth

Can someone explain this what it is doing? if ( condition1 && condition2 && condition3 && condition4 && condition5 ) { code } It doesn't do what I want it to do but this does. if ( condition1 ) { if ( condition2 ) { if ( condition3 ) { …

Member Avatar for stultuske
0
152
Member Avatar for Gus_19

I am checking a couple of textboxes in my datarows. If the first textbox (event association 1) is not blank and it does not contain the word business, but the date of birth mtb is empty, then the statement is true and a messagebox will be displayed. Right now, I …

Member Avatar for Reverend Jim
0
297
Member Avatar for Yogesh2591

Hi, What is the main aim of the callable statement? How it is differ from prepared statement?

Member Avatar for stultuske
0
105
Member Avatar for changeworld4u

Hi Team, I have a file which contain following data like BKP0000032183140217000019 053IGZYEVSDOX .........field 2....... field3.....field4..... BKP0000032284140217000019CCTP1220 ............... BKP0000032384140217000019CA ..................... each line has 5 fields Now using shell script i am trying to extract field 4 based on condition that line start with BKP and contain code 84 and CA …

Member Avatar for changeworld4u
0
283
Member Avatar for jan.sehona.1

You have been hired by an amusement park company to write a JAVA program that prompts a person to enter their age and height and to find out if they are eligible to ride. A person is eligible to ride if their age is above 9 years and their height …

Member Avatar for JamesCherrill
0
195
Member Avatar for jan.sehona.1

Critically analyze the following statement "Multiple inheritance can be achieved without interface"?

Member Avatar for JamesCherrill
0
225
Member Avatar for Asus93

![57584e18da6337a653024b88f1c61707](/attachments/large/4/57584e18da6337a653024b88f1c61707.JPG "57584e18da6337a653024b88f1c61707") May I know that what is the ACL as shown above doing? Why do we need deny any when we are permitting the specific ip address? Isn't that ACL list has a hidden "deny all" statement? Thank you.

0
179
Member Avatar for Pyler
Member Avatar for Bader100

Hi all, Hi i have got a problem with the system i am creating on VB using Microsft Access. I have this error that keeps coming up when I debug my system. I am trying to add data in the database. I cant seem to find the solution to this …

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

see first elif statement for syntax error, where have i gone wrong?? this is only a section of code, help very much appreciated. if dice == dice2 : print ("The scores on both dice remain constant, no changes are made.") elif dice > dice2 : print ("The scores of the …

Member Avatar for Daemon_CC
0
336
Member Avatar for zahra97

here is *part* of my code: newvalue1 = difference + c newvalue2 = difference + d newvalue3 = difference2 + cc newvalue4 = difference2 + dd if dice == dice2 print ("The scores on both dice remain constant, no changes are made.") elif dice > dice2 print("The scores of the …

Member Avatar for Schol-R-LEA
0
228
Member Avatar for mooseless05

Hi, I have been working on some code in Tkinter - this is my first ever coding in python and have basically copied chunks of code over to see what is possible but I am stuck on one section - I am trying to create a GUI in Tkinter but …

Member Avatar for woooee
0
259
Member Avatar for Nebil

I was going to check if a temp table exists and delete the it,since "the temptable already exists" arises if you want to perform another operation. Here's the code i used five statements but it says syntax error in drop table or drop index statement. Any help would be appreciated. …

Member Avatar for Nebil
0
1K
Member Avatar for Reapt

So I'm teaching myself Java. I'm creating a text based game. I have an if statement that i want to check users input so its like this: if(sc.next() = "help"){ System.out.println("info"); } else if(sc.next() = "item"){ System.out.println("info"); } Etc. But it wont work. What would be the proper way to …

Member Avatar for stultuske
0
225
Member Avatar for cvandal

Hello, I'm trying to calculate the maximum and minimum distance between 10 points. My method to calculate the maximum distance is working fine however my method to calculate the minimum is returning 0.0 and I'm not sure why. Could someone please take a look at my code and tell me …

Member Avatar for cvandal
0
207
Member Avatar for moaz.amin.37

my problem is how to use if else statement with the use of character type string (char str[40]) for exemple char str[30]; cin>>str; or gets(str) or getline(str,30) if(str=="hello") cout<<"world"; i search this everywhere but every answer could not satisfied me.

Member Avatar for Ancient Dragon
0
316
Member Avatar for lithium112

Hello, Below is a simple gun simulator for the console, but everytime I hit spacebar, I have to hit it twice before the next line will pop up in the console. This started happening after I inserted the last 'if' statement in order to reload the gun. Does anyone know …

Member Avatar for lithium112
0
185
Member Avatar for TheFearful

I am having trouble finding out if I did the header correctly #include <iostream> #ifndef TREE #define TREE // Node class class Node { int key; Node* left; Node* right; public: Node() { key=-1; left = NULL; right = NULL; }; void setKey(int aKey) { key = aKey; }; void …

Member Avatar for Kristian_2
0
201
Member Avatar for Enigma360

I have just used this code in a project which works perfectly, but I have noticed that the first record is always not displayed. Eg. the SQL query lists 15 results, but the output only displays 14, missing the first record. Any ideas why? <?php $result = mysql_query($sql); //first put …

Member Avatar for diafol
0
1K
Member Avatar for iamthwee

I've asked this before and I'm really racking my brains here. To create an admin controller or simply have an if statement in the view. **view** if session == admin show admin delete post This would minimize my code so much. I really can't see the wrongness in this. Although …

Member Avatar for pritaeas
0
147
Member Avatar for Emma_3

I'm trying to convert a number from any base between 2-36 to any base between 2-36. I have the conversion to base 10, but I'm having trouble getting it from base 10 to the desired base. Any ideas? I know part of this idea will work, I just can't get …

Member Avatar for David W
0
505
Member Avatar for mystycs

How can i write it so that my program only accepts positive integers that are great than or = 0? I want my program to ask "How many devices do you wish to add?" And if a user enters a letter, or anything negative it will ask them to enter …

Member Avatar for David W
0
19K
Member Avatar for mystycs

I am getting an error on this code. Is it to do with whats in the while loop? How do i get it working? Basically i want to be able to take in letter or number variables, and each would output something, and if they type exit it breaks out …

Member Avatar for David W
0
500
Member Avatar for mystycs

How can i create a input that only allows the letters a b c d The console will ask to please enter a letter. And they can only enter the letters a b c d. And if they enter it, it says thank you for enter a, or b or …

Member Avatar for David W
0
302

The End.