Member Avatar
Group, I've got a complex If/Then statement that may require the use of "Select Case". However I'm not familiar with how "Select Case" actually works. Needless to say, I'm not sure if you can use it within an "If/Then" statement. Here's what I need to do: ... To explain, I'm …
by doncwilson_1 16 in Software Development ()
Member Avatar
This time just a simple example of grading scores (0 - 100) with letters (A - F). Two approaches are presented, one using sitch/case in an "on the fly" function, and the other uses the score as an index to a string of letters F through A.
by vegaseat 1,720 in Computer Science ()
Member Avatar
... any one please can help me out for unit test case which verifies the data fetch from json file???
by Bchandaria in Web Development ()
Member Avatar
SQL Gurus, help !! I have a table with 3 fields, ID, Answer_5, Answer_6. Answer_5 & Answer_6 both hold a date value, but the fields are defined as string (for other reasons). In Answer_6 it is possible to have the string of 'Now'. I am trying to do a simple …
by olegb in Databases ()
Member Avatar
I have to create a program that asks a person to enter a 2 digit number (10-99) and convert it into words. I've been working on this for days and I still don't see what I'm doing wrong! PLEASE HELP ME!!! EXAMPLE: 27 twenty-seven include <iostream> using namespace std; int …
by adoleh in Software Development ()
Member Avatar
I have a table that logs customer data but i want to search for the customer, upon finding that customer i want to click on the name and find it in another table that store other data. But here is where i am stuck i want to check which table …
by Ryan_11 in Web Development ()
Member Avatar
Hello everybody! I'm trying to count the number of occurrences of each word in a text file. Problem situation requires to realize menu using "switch" statement (If file exist or not). There are following errors in my program ("case b" and "default" is not working): [C++ Error] 03_int.cpp(61): E2126 Case …
by Auroch in Software Development ()
Member Avatar
As I stated when for the Nexus 7 2013, the most important things a writer looks for in any keyboard are key travel, spacing and feedback. Obviously a travel keyboard throws some additional requirements into the mix such as weight, size and battery life. However, when it comes to the …
by happygeek 1,608 in Mobile and Wearables ()
Member Avatar
For a professional writer of any description, there are three things that matter when it comes to the keyboard that they are using: key spacing, key travel and key feedback. The Minisuit 3-in-1 Folio manages, as far as any such small keyboard is ever going to achieve, to get the …
by happygeek 1,608 in Mobile and Wearables ()
Member Avatar
I saw lots of old threads on this problem but could not find a solution so I thought I would share my experience and solution. Hi, I just had a problem that my cpu and case fans would not switch off after shutdown. It turned out to be a dvi-d …
by jason.allen.750331 3 in Hardware ()
Member Avatar
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 …
by GeneClaude in Computer Science ()
Member Avatar
I only have experience using pretty basic Oracle. However, I'm now in need of a better understanding of SQL. I'm trying to write a query using CASE statements (as this seems to be the best approach), but am admittedly lost at the moment. Here is what I have as a …
by kahaj in Databases ()
Member Avatar
Nice to meet you, i am a newbie i would like to ask a question that bothers me out : 1).How to add the decimal representation of N! (5 <= N <= 1,000,000) is simply the multiplicity of the prime factor 5 in N! to my script? 2). I wanted …
by muhammad_43 in Software Development ()
Member Avatar
Diggit, is funded by the local authority in the Greenwich area. The project is to take young people who are seen at risk of offending and involve them in helping to look after the gardens of the elderly. A young person can be referred to the project from a number …
by ishancoolstar in Computer Science ()
Member Avatar
Hi, I'm sorry if I had post duplicate post. I had join this 2 table (dt_dict_tbl - store dictionary, sdn5_5 - store accumulate value for reporting). Here the table structure dt_dict_tbl sdn5_5 For column program and typeQuantity, it will read info from dt_dict_tbl; So for reporting i had try below …
by red_ruewei in Databases ()
Member Avatar
Hi All, I am pulling out info from my db and need to tjeck if a column is 0, if it is then i need to SUM 3 other columns and pull out that total. I want to use the CASE keyword and tjeck for this, but am doing something …
by klemme 3 in Web Development ()
Member Avatar
Bold Text Herea program hat can convert uppercase characters to lower characters
by admin-pc -1 in Software Development ()
Member Avatar
I am looking at and the specific example at: And the result of N would be: I want the result to be: Mr Red has a red house and a red car With the first-replaced occurance to be capitalized like the original text to be replaced. Is there a way …
by JySysAdmin in Web Development ()
Member Avatar
I have no problem of putting a break statement in the default option of a switch case statement, just wondering why it is needed. Anyone any ideas? If I leave the break out on line 10, I get the error Control cannot fall through from one case label ('default:') to …
by ddanbe 2,372 in Software Development ()
Member Avatar
import java.io.*; import java.util.*; import java.util.Scanner; public class cooperativeCanteen60 { static Scanner console = new Scanner(System.in); static Scanner sc = new Scanner(System.in); public static void main(String[]args) { //throws java.io.IOException { Scanner in = new Scanner (System.in); int type; int discountRange; int discount; int customerType; int number; int rtotal; int vtotal; …
by JavaGr33nh0rn in Software Development ()
Member Avatar
Hello everyone, i am fairly new to shell scripting so please bear with me. The following script is supposed to read words from a file and depending on the word print different things. However it always prints the default value. It also refuses to work completely if the first line …
by replic 17 in Software Development ()
Member Avatar
There is a small problem i have there is a small error that i didnt use to have with the boorland compiler I'm using xcode these days and in my switch case im trying to execute a function (as you can see, the "main" function) however it says that it …
by mattboy64 13 in Software Development ()
Member Avatar
Hi, Please, this isn't about opinions on uml, it's usefulness (or lack thereof), it's standing, etc - please (I'm so tired)! I have a text usage case which main success scenario is thus: The problem I don't understand is how to represent something like this in a use case diagram. …
by ClientAlive in Computer Science ()
Member Avatar
So in my classes I've taken I was told by the teacher "case statements and if-else statements are the same things essentionally" so why learn both? and so I was not taught about cases. Besides the fact I should learn it anyway incase I need it for someone elses code, …
by Prysm[VA] in Software Development ()
Member Avatar
can anybody explain to me why case 1 is getting an orphaned case error?
by WaltonPan in Software Development ()
Member Avatar
Greetings, I have two tables named 'copyright' and 'logs'. Table : copyright Field : Copyr_md5 Table : logs Field : md5checksum Problem 1 Say i have a value stored in in php , now i want to check if the value stored in is found in field .If found , …
by Khav in Databases ()
Member Avatar
I would like to know the best way to manage the two drop down menu on the PHP page. 1st menu : Select Type of House (House1, House2, ) 2nd menu : Select Number of Rooms (1,2 .. 12) The system should be displayed price based on selected items. Need …
by PriteshP23 in Web Development ()
Member Avatar
#include <iostream> #include <cmath> #include <string> #include <fstream> #include <windows.h> using namespace std; struct Grade{ int getA; int getB; int getC; int getD; int getF; float marks[100]; }; void init( Grade* student ){ student->getA=0; student->getB=0; student->getC=0; student->getD=0; student->getF=0; for( int i=0; i < 100 ; i++) student->marks[i]=NULL; } int readFile( …
by kmlilo in Software Development ()
Member Avatar
I'm stuck at the point where I'm supposed to enter scores and the program will eliminate the two lowest scores for me. For instance I enter 1 2 3 4 for assignments 1-4 respectively, the result will come out right. But if I enter 9 6 7 8 only the …
by acerious in Software Development ()
Member Avatar
Hi! I am new in vb.net and use it in our game programming. I don't know if this is the same in what they do. Here's the code. Thanks! :) Here's the other code: By the way, the latter works. It shows the image. But, have problem while moving it.
by pangit in Software Development ()