142 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 ) { … | |
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 … | |
Hi, What is the main aim of the callable statement? How it is differ from prepared statement? | |
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 … | |
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 … | |
Critically analyze the following statement "Multiple inheritance can be achieved without interface"? | |
![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. | |
public class SongIterator<T,L> implements Iterator<Song<T, L>> {} | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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. | |
| 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 … |
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 … | |
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 … | |
| 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 … |
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 … | |
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 … | |
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 … | |
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 … |
The End.