Cash Register
i am new in J2me programming.
i wanted to program cash register.
is it under the j2me cdc programming or under the normal java programming?
are there any simulater for that cash Register?
... and why do you care if i cheat.basically because cheaters are costing the industry millions of dollars they could use else where.
You will be graduating one of these days, and I will assume that you will want a job. Since you and many more don't have a problem cheating their way through life, the entities that need qualified employees have to rigorously test, interview, and otherwise weed out those that are not able to do the job, but are eminently qualified due to education or experience. When I see a computer science degree on your resume, and major course work in programming, silly me, assumes that you have actually done the work there and can do elementery tasks. I do not have that luxury any longer and test, interview, and weed out candidates accordingly. This more rigorous process costs us 1000's of dollars each year in lost time and resources. I also realize many of the truely qualifed people do not make it to the interview process because they don't test well, don't know how to write a resume as well, or don't make it through the interview process because they don't interview well, but instead of being able to sit down with each applicant and have a relaxed interview, we screen and screen and screen.
I may add that in the case of entry level jobs and college/hs graduates I get a continuous supply of people that have no more ability to do the job--entry level work--than my cockerspaniel does, because they cheated their way through many of their courses and now cannot deliver using their own skills.
That is why I care that you cheat.
Similar Messages
-
Need help with a cash register program.
I'm a noob at JAVA, but having fun with i so far! I was wondering if anyone could help me with a school project I need to get done. I've done most of the work, but I can't get it to not display when I have zero results. What I mean is that the project requires you to create a cash register program that gives you change in 20's, 5's, and 1's for a hundred dollar bill. I get it to display the results, but if there are zero of any category, like in the last problem, I can't let it show. Could someone please help! Thank you in advance! Here's what I have so far (sorry about the rapidshare download ^_^;).
[http://rapidshare.de/files/39978938/project.java.html]Zack,
The user should not see the line: 0 $5 bill(s)Then you need to detect the situation where no five dollars bills are included in the change, and suppress the output of that line.
I can read your mind... it's going something like "yeah well righto smartass, I knew that allready... my question was _HOW_ to make that happen...
And my answer to that is "I'm not telling you"... well, not straight out anyway, coz you'll actually learn more if your struggle a bit (but not too much) yourself...
So... I suggest you (at least) read through [this page|http://java.sun.com/docs/books/tutorial/java/nutsandbolts/if.html] on the +if+ statement, and maybe even try out the examples, which should (I imagine) take maybe half an hour or so. "Selection" is an absolutely core programming construct... and the concept is common to every programming language ever (AFAIK) invented... meaning that you will really struggle until you "get" the +if+ statement... so that half hour would be time well spent.
When you've got +if+ concept onboard, you can attempt to apply it to your immediate problem, suppressing those annoying fivers! Have a go yourself, if get really stumped than post a _specific_ question here about the bit that's stumped you.
I know it can be frustrating... but that just hightens the little thrill you get when you "get it".
Cheers. Keith. -
Cash Register Program (processing "sales" and "amounts" )
I'm having trouble adding amounts to an array of capacity that the user sets at the beginning of the program. It seems very easy, but I just don't know what to do. It is for a school assignment, so I'm not asking for any freebies. I'd just like to be pointed in the right direction with hints or any useful info. A skeleton was included with the assignment which makes me feel less capable because it's all broken down. Some methods were included. The CashRegister class contains all the methods of the cash register (add amount, remove first occurrence of amount, remove all occurrences, etc.) I'm only lacking the add amount, and both remove occurrence methods.
I think i wrote the add amount method somewhat correctly.. although I'm unsure of how to implement it in case 2 of the switch obviously not as simple as addAmount();
// CashRegister.java
import java.text.NumberFormat;
import java.util.Scanner;
public class CashRegister
Scanner scan = new Scanner (System.in);
//instance variables
private double[] amounts;
private int numOfValues;
//constructor
public CashRegister( int size )
amounts = new double[ size ];
numOfValues = 0;
//increase size of array when needed
private void increaseSize ()
double[] temp = new double[amounts.length + 4];
for (int count=0; count<amounts.length; count++)
temp[count] = amounts[count];
amounts = temp;
//add amount to array
private void addAmount(double newAmt)
if (numOfValues == amounts.length)
increaseSize();
System.out.print ("Enter amount to be added: ");
newAmt = scan.nextDouble();
amounts[numOfValues] = newAmt;
numOfValues++;
//toString method
//returns String representation of CashRegister object
public String toString()
//to be used in formating currency values
NumberFormat fmt = NumberFormat.getCurrencyInstance();
//initialize resulting String
String result = "\n";
//Check if array is empty.
//If so, print accordingly.
if( numOfValues == 0 )
result += "There are 0 register amounts at this time.\n";
//otherwise, place amounts in result String
else
//build result String with amounts
for( int i = 0; i < amounts.length; i++ )
result += ( i + 1 ) + ": " + fmt.format( amounts[ i ] ) + "\n";
//return result String
return result;
// Project7ADriver.java
import java.util.Scanner;
public class Project7ADriver
public static void main( String[] args )
//Start Scanner to take input
Scanner scan = new Scanner( System.in );
//instantiate a CashRegister
System.out.print( "How many amounts would you like your register to hold? " );
int numElements = scan.nextInt();
CashRegister cr = new CashRegister( numElements );
int userChoice = 0;
while( userChoice != 5 )
menu();
userChoice = scan.nextInt();
menuSwitch( userChoice, cr );
public static void menuSwitch( int choice, CashRegister cashReg )
//Start Scanner to take input
Scanner scan = new Scanner( System.in );
switch( choice )
//print out amounts
case 1:
System.out.print( cashReg.toString() );
break;
case 2:
case 5:
System.out.println("\nGoodbye!");
break;
default:
System.out.println("Sorry, invalid choice");
public static void menu()
System.out.println("\nCash Register");
System.out.println("*************");
System.out.println("1: Print the sale amounts");
System.out.println("2: Add amount");
System.out.println("3: Remove first occurrence of an amount");
System.out.println("4: Remove all occurrences of an amount");
System.out.println("5: Quit");
System.out.print("\nEnter your choice: ");
}looks like your method signature is wrong
private void addAmount(double newAmt)the method itself gets the amount
newAmt = scan.nextDouble();so its a bit hard passing the amount, when you first call the method
try it like this
private void addAmount()
if (numOfValues == amounts.length)
increaseSize();
System.out.print ("Enter amount to be added: ");
double newAmt = scan.nextDouble();
amounts[numOfValues] = newAmt;
numOfValues++;
}and in your switch
case 2:
addAmount();
break; -
How can make a cash register products with labview?
need a cash register that only putting the product code to show me the product details such as price, product type, code, subtotal, etc..
I already have a prototype but I do not know how to do that prototype with a single command string or one string controlling how could it?bro if that idea is the same as mine and put the code that code be all and end shopping and make a report but could implement this idea in the program and qeque several examples and books but all I want to put the codes from one control rod
Attachments:
CASH REGISTER.lvproj 2 KB -
IMac G5 making ringing or cash register sound!!
I have been hearing this strange automated sound recently. Don't know if it is a virus etc. Every so often I hear a ringing sound when I'm doing work. Sounds like the ringing of a cash register! Haven't pinpointed if it is only when connected to net or if certain apps are open.
Could someone please tell me where to start looking! Weird.
iMac G5 iSight 20" Mac OS X (10.4.8)HMMMM... Normally I'd say no, but I will say that I recently loaded a piece of software? that allows me to use a Citrix Connection to access a real estate database, it seems that I amusing internet explorer in a window, but it is on their server.
I'm looking at my computer and this software or link isn't active, nor am I on that site, could this be it? Can't remember if the problem just started around the time of installation. But could be...
Any other ideas? -
Trouble with writing this (this is not the cash register)
someone please help me with this i want to make it so that if someone crashes then he will get back up on mouse click
is there a way to do this
public class CollisionHandler
public CollisionHandler(Ground ground1)
ground = ground1;
public boolean isInCollision(PhysicsPoint physicspoint)
return physicspoint.place.y > (float)ground.getMaxY(physicspoint.place.x);
public void handleCollision(PhysicsPoint physicspoint)
moveToSurface(physicspoint);
physicspoint.collisionToSlope(ground.getSlope(physicspoint.place.x), ground.getFriction(physicspoint.place.x));
private void moveToSurface(PhysicsPoint physicspoint)
float f = 0.0F;
Vector2 vector2 = Vector2.multiply(ground.getSlopeNormal(physicspoint.place.x), 0.4F);
Vector2 vector2_1 = physicspoint.place;
for(int i = 0; i < 10; i++)
vector2_1.x += vector2.x;
vector2_1.y += vector2.y;
float f1 = ground.getMaxY(vector2_1.x);
if(vector2_1.y <= f1)
return;
public Vector2[] isInCollision(PhysicsSphere physicssphere)
Object obj = null;
Vector2 vector2_1 = new Vector2(0.0F, 0.0F);
Vector2 vector2_2 = new Vector2(0.0F, 0.0F);
int i = 0;
for(int j = -(int)physicssphere.radius; j <= (int)physicssphere.radius; j += 4)
Vector2 vector2 = createContactPlace(physicssphere, j);
if(isInCollisionWithPlace(physicssphere, vector2))
vector2_1 = Vector2.add(vector2_1, vector2);
vector2_2 = Vector2.add(vector2_2, ground.getSlope(vector2.x));
i++;
if(i == 0)
return null;
} else
Vector2 avector2[] = new Vector2[2];
avector2[0] = Vector2.divide(vector2_1, i);
avector2[1] = Vector2.normalize(vector2_2);
return avector2;
private Vector2 createContactPlace(PhysicsSphere physicssphere, int i)
float f = ((PhysicsPoint) (physicssphere)).place.x - (float)i;
float f1 = ground.getMaxY(f);
if(f1 < ((PhysicsPoint) (physicssphere)).place.y)
f1 = ((PhysicsPoint) (physicssphere)).place.y;
return new Vector2(f, f1);
private boolean isInCollisionWithPlace(PhysicsSphere physicssphere, Vector2 vector2)
float f = Vector2.substract(vector2, ((PhysicsPoint) (physicssphere)).place).length();
return f <= physicssphere.radius;
public void handleCollision(PhysicsSphere physicssphere, Vector2 avector2[])
if(moveToSurface(physicssphere, avector2))
physicssphere.collisionToSlope(avector2[1], avector2[0], ground.getFriction(((PhysicsPoint) (physicssphere)).place.x));
private boolean moveToSurface(PhysicsSphere physicssphere, Vector2 avector2[])
RotateMatrix33 rotatematrix33 = new RotateMatrix33(4.712389F);
Vector2 vector2 = Vector2.multiply(Matrix33.multiply(rotatematrix33, avector2[1]), 0.35F);
if(Vector2.dot(vector2, ((PhysicsPoint) (physicssphere)).speed) >= 0.0F)
return false;
Vector2 vector2_1 = ((PhysicsPoint) (physicssphere)).place;
for(int i = 0; i < 20; i++)
vector2_1.x += vector2.x;
vector2_1.y += vector2.y;
avector2 = isInCollision(physicssphere);
if(avector2 == null)
break;
vector2 = Vector2.multiply(Matrix33.multiply(rotatematrix33, avector2[1]), 0.35F);
return true;
private static final int SPHERE_COLLISION_STEP = 4;
Ground ground;
}i dont think i have that gui thing or whatever, how
can i get itGUI is Graphical User Interface--buttons, windows, etc. Some programs have one, some don't. If you want your program to respond to mouse clicks, you have to use classes that are used for handling GUIs. (Note: I don't think your program would necessarily have to display any windows or other graphical elements just to be able to respond to clicks, but then I don't do GUIs, so I might be talkin' outta my butt.)
Here are some GUI tutorials. I'm too lazy to strip out the now-broken url tags, so you'll have to copy and paste the URLs yourself.
Trail: Creating a GUI with JFC/Swing
How to Make Dialogs
How to Use Progress Bars
Multi-threading in Swing
Threads and AWT/Swing (IBM article: section at bottom)
Using HTML in Swing Components -
I don't know this Register
I Had the same issue. I thought it was a virus. Turns out it's either my ebay or PayPal app. I noticed whenever an item was sold and or paid for on ebay, the cash register sound was made.
-
Paying cash for MBP at Apple Store?
Hi all,
Sorry for what is probably a really stupid question (and for where I posted it...I couldn't find a better category)...
I am based in the UK and will be in New York for a day next month as a stopover. I am looking to buy a new MBP (and hopefully the new ones will be out by then) and as I have US currency left over from previous trips (and re-imbursements from US friends for theatre tickets to shows here in the UK on their last visit), I would like to pay for the MBP using cash, and therefore save on the really bad exchange rate my credit card company charges.
As I have never actually seen a cash register in an Apple store, is it actually possible to pay for a MBP using cash?Well, yes you can pay cash.
But keep in mind there are legal, tax and duty regulations that may require additional payments when you purchase or when you return to the UK. For example, New York City has an 8.875% sales tax - add that to your purchase price at the point of purchase. You may also be subject to customs duty and/or import VAT upon your return to the UK if the value exceeds your duty allowance.
I was curious about this, so I did a little research. Here is an excerpt from HMR&C:
Other goods including perfume and souvenirs
You can bring in other goods worth up to £390 without having to pay tax and/or duty ...
If you bring in any single item worth more than your allowance, you must pay duty and/or tax on the full item value, not just the value above the allowance. You also cannot group individual allowances together to bring in an item worth more than the limit.
More info is here -> HM Revenue & Customs: Tax and Duty on goods brought to the UK from outside the European Union. -
Opening Cash Drawer from report
I understand CR doesn't permit embedded esc codes in the report (in this case for opening a cash drawer). How do I open a cash drawer from a report? Thanks.
Hi Carl: when the knowledgebase article refers to "printer escape codes", I believe they are referring to the printer control codes such as [you find here|http://printers.necsam.com/public/printers/pclcodes/pcl5hp.htm]. Opening another device (LPT2, say) from within the report and sending commands directly to that device via escape sequences/control codes (in this case a cash register on LPT2: telling the port to "honey, open the goddamned door") seems to be precluded. This is, I believe, the gist of the knowledgebase quote. And this is unhappy-making. I have the control codes for the device, but just can't seem to open the device and pass them to it from within the report. And some snippets of BASIC code I've found elsewhere, which claim to control for this, don't seem to work anyway when added to the report.
Thanks. -
At a total loss with this code...
So i'm working on this applet for work and im lost. in the end, this will be a cash register type app thats integrated with our web database. as of right now, the code to download an html page works fine when run by itself, independent of the main class. but when the download PageDownload class is called from the sales class (the main class), i get this error:
register/sales.java [245:1] unreported exception java.lang.Exception; must be caught or declared to be thrown
pagey.main(null);
what's my problem?
-------------------------SALES.java----------------------------
* sales.java
* Created on December 6, 2003, 1:34 PM
package register;
import javax.swing.* ;
import java.util.*;
import java.lang.*;
import java.text.*;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumn;
import javax.swing.JComboBox.*;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.AbstractTableModel;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.net.*;
import java.io.*;
* @author Geoff
public class sales extends java.applet.Applet {
/** Initializes the applet sales */
public void init() {
initComponents();
//private boolean DEBUG = false;
//Set the lblDate to contain today's date in mm/dd/yy format
Date today;
String dateOut;
DateFormat dateFormatter;
dateFormatter = DateFormat.getDateInstance(DateFormat.SHORT);
today = new Date();
dateOut = dateFormatter.format(today);
lblDate.setText(dateOut);
//set up the payment method choice box
cmbPaymentMethod.add("American Express");
cmbPaymentMethod.add("Cash");
cmbPaymentMethod.add("Check");
cmbPaymentMethod.add("Discover");
cmbPaymentMethod.add("Gift Card");
cmbPaymentMethod.add("Master Card");
cmbPaymentMethod.add("Visa");
JTable table = new JTable(new MyTableModel());
table.setPreferredScrollableViewportSize(new Dimension(500, 70));
//Create the scroll pane and add the table to it.
JScrollPane scrollPane = new JScrollPane(table);
//Add the scroll pane to this panel.
add(scrollPane);
scrollPane.setBounds(0, 165, 600, 200);
scrollPane.setVisible(true);
TableColumn sysCol = table.getColumnModel().getColumn(0);
sysCol.setWidth(120);
sysCol.setMaxWidth(120);
TableColumn conCol = table.getColumnModel().getColumn(2);
conCol.setWidth(60);
conCol.setMaxWidth(60);
TableColumn qtyCol = table.getColumnModel().getColumn(3);
qtyCol.setWidth(40);
qtyCol.setMaxWidth(40);
TableColumn rateCol = table.getColumnModel().getColumn(4);
rateCol.setWidth(60);
rateCol.setMaxWidth(60);
TableColumn amtCol = table.getColumnModel().getColumn(5);
amtCol.setWidth(60);
amtCol.setMaxWidth(60);
class MyTableModel extends AbstractTableModel {
private String[] columnNames = {"System",
"Item",
"Contents",
"Qty.",
"Rate",
"Amount"};
private Object[][] data = {
public int getColumnCount() {
return columnNames.length;
public int getRowCount() {
return data.length;
public String getColumnName(int col) {
return columnNames[col];
public Object getValueAt(int row, int col) {
return data[row][col];
* JTable uses this method to determine the default renderer/
* editor for each cell. If we didn't implement this method,
* then the last column would contain text ("true"/"false"),
* rather than a check box.
public Class getColumnClass(int c) {
return getValueAt(0, c).getClass();
* Don't need to implement this method unless your table's
* editable.
public boolean isCellEditable(int row, int col) {
//Note that the data/cell address is constant,
//no matter where the cell appears onscreen.
if (col < 2) {
return false;
} else {
return true;
* Don't need to implement this method unless your table's
* data can change.
public void setValueAt(Object value, int row, int col) {
//if (DEBUG) {
System.out.println("Setting value at " + row + "," + col
+ " to " + value
+ " (an instance of "
+ value.getClass() + ")");
data[row][col] = value;
fireTableCellUpdated(row, col);
/** This method is called from within the init() method to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
private void initComponents() {
label1 = new java.awt.Label();
txtSoldTo = new java.awt.TextArea();
label2 = new java.awt.Label();
lblDate = new java.awt.Label();
label4 = new java.awt.Label();
txtSoldBy = new java.awt.TextField();
label3 = new java.awt.Label();
lblSaleNumber = new java.awt.Label();
lblPaymentMethod = new java.awt.Label();
cmbPaymentMethod = new java.awt.Choice();
jButton1 = new javax.swing.JButton();
setLayout(null);
label1.setFont(new java.awt.Font("Dialog", 1, 12));
label1.setText("Sold To:");
add(label1);
label1.setBounds(10, 10, 50, 20);
add(txtSoldTo);
txtSoldTo.setBounds(10, 30, 180, 80);
label2.setFont(new java.awt.Font("Dialog", 1, 12));
label2.setText("Date:");
add(label2);
label2.setBounds(410, 10, 38, 20);
lblDate.setAlignment(java.awt.Label.CENTER);
lblDate.setText("dategoeshere");
add(lblDate);
lblDate.setBounds(390, 30, 90, 20);
label4.setFont(new java.awt.Font("Dialog", 1, 12));
label4.setText("Sold By:");
add(label4);
label4.setBounds(500, 70, 50, 20);
add(txtSoldBy);
txtSoldBy.setBounds(500, 90, 50, 20);
label3.setFont(new java.awt.Font("Dialog", 1, 12));
label3.setText("Sale No.");
add(label3);
label3.setBounds(500, 10, 50, 20);
lblSaleNumber.setAlignment(java.awt.Label.CENTER);
lblSaleNumber.setText("0");
add(lblSaleNumber);
lblSaleNumber.setBounds(490, 30, 70, 20);
lblPaymentMethod.setFont(new java.awt.Font("Dialog", 1, 12));
lblPaymentMethod.setText("Payment Method");
add(lblPaymentMethod);
lblPaymentMethod.setBounds(380, 70, 100, 20);
add(cmbPaymentMethod);
cmbPaymentMethod.setBounds(380, 90, 100, 20);
jButton1.setText("jButton1");
jButton1.setActionCommand("GO");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
add(jButton1);
jButton1.setBounds(210, 100, 81, 26);
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// Add your handling code here:
if( evt.getActionCommand().equals("GO")) {
PageDownload pagey = new PageDownload();
System.out.println("PageDownload created.");
pagey.main(null);
private String thepage;
// Variables declaration - do not modify
private java.awt.Choice cmbPaymentMethod;
private javax.swing.JButton jButton1;
private java.awt.Label label1;
private java.awt.Label label2;
private java.awt.Label label3;
private java.awt.Label label4;
private java.awt.Label lblDate;
private java.awt.Label lblPaymentMethod;
private java.awt.Label lblSaleNumber;
private java.awt.TextField txtSoldBy;
private java.awt.TextArea txtSoldTo;
// End of variables declaration
----------------------------PageDownload.java------------------------
package register;
* @author Geoff
import java.net.*;
import java.io.*;
import javax.swing.*;
import java.lang.Exception;
public class PageDownload extends java.applet.Applet {
/** Creates a new instance of PageDownload */
public PageDownload() {
public static void main(String[] args) throws Exception {
URL url = new URL("http://www.awebsite.com");
InputStream html = url.openStream();
int c = 0;
String a = "";
while(c != -1) {
a = "";
c = html.read();
if(c == (char)60) {
while(c != (char)62) {
a = a + (char)c;
c = html.read();
if(a == "") {}
else
System.out.println(a + ">");Your PageDownload code has no non-static code other than the blank class instantiator. You shouldn't be calling a static method from an instance of the class. You could just as easily say:
PageDownload.main(null);
instead of:
PageDownload pagey = new PageDownload();
pagey.main(null);
the PageDownload class needs no instance since it has no object code of any value.
Re-think the design a bit, the pattern looks bad.
If your intention for the PageDownload class was to create a singleton then search the tutorials for the proper way to construct singletons, also decide wether or not you need this class to be a singleton.
Also output some of the error information to help diagnose what exactly is wrong with the URL, ie, try to output the URL, maybe it's blank -
Cannot connect desktop (wired) & laptop (wireless)
I've been at this for days, scoured much info and many threads, and tried many things; so I could go on and on for days about all I've found and tried. I'll try to be concise, but I also want to be thorough. Every other forum I’ve posted in has asked the same questions, so I’m just going to try to get it all out there right off the bat. I apologize if I come off as curt. I’m usually good for some laughs, but I’ve been at this for way too long and am feeling pretty deflated.
GOAL: Achieve connectivity between my desktop and my new T520 - be able to swap files without fumbling thumb drives or emailing myself.
SYSTEM SPECS:
Desktop
self built: AMD Phenom II X4 3.4GHz
Mobo: Gibabyte GA-890GPA-UD3H
network adapter: Realtek RTL8168D/8111D
running Windows 7 Professional
Laptop
Lenovo T520
network adapter: Intel Centrino Advanced N 6205
running Windows 7 Home Premium
Router
Belking F5D8231-4 version 3000
SUMMARY OF EFFORTS THUS FAR:
Firewalls: Windows & router disabled
Anti-virus: (AVG) disabled, then uninstalled
Network adaptor drivers: updated
Router firmware: updated
Router has been restored to factory settings
Power cycles performed multiple times at various points
Tried static ip addresses (presently set to dynamic) - shared ip addresses not the cause
Sharing options have been enabled both in general network settings and specific folders
Pinging results in either "Request timed out." or "Destination host unreachable."
My network is designated a "Home network"
Neither machine is connected to multiple networks
Both machines are assigned to same Workgroup: tried changing from generic "WORKGROUP" to custom name to isolate my machines from rommie's
Relevant services I've been told to check and confirmed started:
- DHCP Client
- Computer Browser
- Network Location Awareness
- Remote Procedure Call (RPC)
- Server
- TCP/IP NetBIOS Helper
- Workstation
- Peer Networking Grouping
- PNRP Machine Name Publication Service
Under Local Area Network Status I've noticed that IPv4 shows connectivity to internet, but IPv6 says "No Internet Access" - disabling IPv6 has no effect
When I create a Windows Homegroup on one machine, an invite to join is never extended to the other.
I installed TeamViewer as alternative to Homegroup. After setup, the program claims to have a working connection, but any attempt to access the other gives an error.
Now, the name of my laptop will sometimes appear under Explorer>>Network, but clicking on it gives an error message (can't think what it says & the laptop isn't visible right now); while my laptop has never shown my desktop. However, if I hardline my laptop to the router, suddenly the two are best friends - connecting, accessing folders, swapping files, trading recipes, sharing steamy cups of Maxwellhouse International Cafe.
Does anybody have any insights into this situation? Any suggestions would be appreciated. I’ve wondered if perhaps there was some pre-installed Lenovo software that interferes with networks the way firewalls or anti-virus programs can? I've tried calling both Belkin and Lenovo tech support - played their little choose your own adventure games. Belkin's final word is that its a software issue. I'm at a complete loss.
I'm always asked for ipconfig and ping results at some point, so I'll go ahead and post them below. I've also found some errors in Administrative Events on both machines that may provide clues:
Dhcp-Client (both) - The IP address lease 192.168.2.2 for the Network Card with network address 0x6CF049E337F0 has been denied by the DHCP server 192.168.2.1 (The DHCP Server sent a DHCPNACK message).
bowser (desktop) - The master browser has received a server announcement from the computer GLADOS that believes that it is the master browser for the domain on transport NetBT_Tcpip_{4F23028C-E9A3-47B6-94A5-025192E2DBE0}. The master browser is stopping or an election is being forced.
BROWSER (laptop) - The browser service has failed to retrieve the backup list too many times on transport .... The backup browser is stopping
I don't really know much about Windows services and events, but they sound like they could be related, and they're the only lead I have to work right now.
================================================================================================
IPCONFIG/ALL - DESKTOP
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Matt>ipconfig/all
Windows IP Configuration
Host Name . . . . . . . . . . . . : MasterControl
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : Belkin
Ethernet adapter Local Area Connection 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TeamViewer VPN Adapter
Physical Address. . . . . . . . . : 00-FF-47-E5-AD-C9
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : Belkin
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
Physical Address. . . . . . . . . : 6C-F0-49-E3-37-F0
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::d8bf:b8a9:475a:e04%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.2.3(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Saturday, May 07, 2011 1:45:30 PM
Lease Expires . . . . . . . . . . : Monday, May 04, 2020 1:45:30 PM
Default Gateway . . . . . . . . . : 192.168.2.1
DHCP Server . . . . . . . . . . . : 192.168.2.1
DHCPv6 IAID . . . . . . . . . . . : 242020425
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-15-53-71-E4-6C-F0-49-E3-37-F0
DNS Servers . . . . . . . . . . . : 192.168.2.1
209.18.47.61
209.18.47.62
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.{47E5ADC9-D9C5-414A-8659-36D9EA7E6293}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Local Area Connection* 9:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e76:38b4:2ea7:e7e4:e5a6(Pref
erred)
Link-local IPv6 Address . . . . . : fe80::38b4:2ea7:e7e4:e5a6%13(Preferred)
Default Gateway . . . . . . . . . : ::
NetBIOS over Tcpip. . . . . . . . : Disabled
Tunnel adapter isatap.Belkin:
Connection-specific DNS Suffix . : Belkin
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::5efe:192.168.2.3%15(Preferred)
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . : 192.168.2.1
209.18.47.61
209.18.47.62
NetBIOS over Tcpip. . . . . . . . : Disabled
IPCONFIG/ALL - LAPTOP
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>ipconfig/all
Windows IP Configuration
Host Name . . . . . . . . . . . . : GLaDOS
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : Belkin
Ethernet adapter Local Area Connection 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TeamViewer VPN Adapter
Physical Address. . . . . . . . . : 00-FF-87-3A-ED-C2
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . : Belkin
Description . . . . . . . . . . . : Intel(R) Centrino(R) Advanced-N 6205
Physical Address. . . . . . . . . : A0-88-B4-10-6C-40
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::6470:d6ce:953e:60ce%14(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.2.5(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Saturday, May 07, 2011 1:47:54 PM
Lease Expires . . . . . . . . . . : Monday, May 04, 2020 2:02:47 PM
Default Gateway . . . . . . . . . : 192.168.2.1
DHCP Server . . . . . . . . . . . : 192.168.2.1
DHCPv6 IAID . . . . . . . . . . . : 379619508
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-15-32-24-66-F0-DE-F1-53-62-F8
DNS Servers . . . . . . . . . . . : 192.168.2.1
209.18.47.61
209.18.47.62
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : Belkin
Description . . . . . . . . . . . : Intel(R) 82579LM Gigabit Network Connecti
on
Physical Address. . . . . . . . . : F0-DE-F1-53-62-F8
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Local Area Connection* 12:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e76:3c20:3d8c:e7e4:e5a6(Pref
erred)
Link-local IPv6 Address . . . . . : fe80::3c20:3d8c:e7e4:e5a6%18(Preferred)
Default Gateway . . . . . . . . . : ::
NetBIOS over Tcpip. . . . . . . . : Disabled
Tunnel adapter isatap.Belkin:
Connection-specific DNS Suffix . : Belkin
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::5efe:192.168.2.5%21(Preferred)
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . : 192.168.2.1
209.18.47.61
209.18.47.62
NetBIOS over Tcpip. . . . . . . . : Disabled
FREQUENT PINGING ATTEMPTS IN EITHER DIRECTION RESULT IN ONE OF FOLLOWING
(1)
C:\Users\Matt>ping 192.168.2.5
Pinging 192.168.2.5 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.2.5:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
(2)
C:\Users\Matt>ping 192.168.2.3
Pinging 192.168.2.3 with 32 bytes of data:
Reply from 192.168.2.5: Destination host unreachable.
Reply from 192.168.2.5: Destination host unreachable.
Reply from 192.168.2.5: Destination host unreachable.
Reply from 192.168.2.5: Destination host unreachable.
Ping statistics for 192.168.2.3:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)Just throwing this out there: I had a cash register which bafflingly refused to talk to other systems on the network, except for just a few minutes after it booted. The problem was cured by unchecking "Allow the computer to turn off this device to save power" in the Power Management tab of the Realtek ethernet card Device Manager Properties.
I don't work for Lenovo. I'm a crazy volunteer! -
Help, I am killing myself trying to do this and I need help ASAP
I need help with this program it has to act like a cash register. The user will input an items price and then their payment. It will tell you the change and then tell you what kinda of change to use, see example below:
Use JOptionPane to take inputs from the user and display the results.
Example:
If the user enters
Amount Due = 5.52 // First Input from the User
Amount Given = 10.00 // Second Input from the User
Calculate the Balance Due
Balance Amount = $ 4.48
and display the balance due in denomination as (The following four lines will be ONE Output to the user)
$1 bill = 4 (4.00)
Quarters = 1 (0.25)
Dimes = 2 (0.20)
Pennies = 3 (0.03)
This last part, where you display the change that will be given back, ie: how many quarters, dimes, nickels, pennies is the part I am having problems with.
Can some one help? Please pardon my coding abilities, I am still learning how to do this and would really appreciate any help you can with my program.
Thanks in advance.
import javax.swing.*;
import java.text.*;
public class CashReg
{ //Start
public static void main (String [] args)
{ //Start Main
int count = 0;
char c1 = 0;
String price = null;
String payment = null;
String change = null;
boolean correct = false;
while(!correct)
{ //Start Loop
price = JOptionPane.showInputDialog (null,"Enter the amount of the item for purchase");
if (price.length() < 1) //Loop
JOptionPane.showMessageDialog (null, "You did not enter a purchase amount, try again please.");//Error message
payment = JOptionPane.showInputDialog (null,"Enter your payment amount.");
if (payment.length() < 1) //Loop
JOptionPane.showMessageDialog (null, "You did not enter a payment amount, try again please.");//Error message
else
correct = true; //Boolean to confirm that there are enough characters
for (int i=0; i<price.length(); i++)
if (Character.isUpperCase(price.charAt(i)))
count++;
} //End loop
// response = price - payment;
JOptionPane.showMessageDialog (null, "You item costs "+price+" and you payed "+payment+" and your change will be "+change);
System.exit(0);
} //End Main
} //EndOK, thanks for your help, but I need some more. I have the program running and showing the amount of change that is going to be returned. But I don't know how to display the kind of change. AKA, quarters, dimes, nickels and pennies. I am a programming idot, my teacher is letting us twist in the wind. He is not explaining the concepts behind any of this. You are saying the word "logic" and I don't know what that means. This assigment is due Monday, I just need some help with the last part. How to show the change. I am just plain lost. please help.
import java.text.DecimalFormat;
import javax.swing.*;
import java.text.*;
public class CashReg
{ //Start
public static void main (String [] args)
{ //Start Main
int count = 0;
char c1 = 0;
String price = null;
String payment = null;
String change = null;
boolean correct = false;
while(!correct)
{ //Start Loop
price = JOptionPane.showInputDialog (null,"Enter the amount of the item for purchase");
if (price.length() < 1) //Loop
JOptionPane.showMessageDialog (null, "You did not enter a purchase amount, try again please.");//Error message
payment = JOptionPane.showInputDialog (null,"Enter your payment amount.");
if (payment.length() < 1) //Loop
JOptionPane.showMessageDialog (null, "You did not enter a payment amount, try again please.");//Error message
else
correct = true; //Boolean to confirm that there are enough characters
for (int i=0; i<price.length(); i++)
if (Character.isUpperCase(price.charAt(i)))
count++;
} //End loop
// response = price - payment;
float fPrice = Float.parseFloat(price);
float fPayment = Float.parseFloat(payment);
float fChange = fPayment-fPrice;
DecimalFormat df = new DecimalFormat ("#.00");
JOptionPane.showMessageDialog (null, "You item costs "+price+" and you payed "+payment+" and your change will be "+ df.format (fChange));
This is where I don't know what to put
System.exit(0);
} //End Main
} //End
I am begging for help. -
Windows 8 Tablet / Touchscreen - On Screen Keyboard shortcut missing on Desktop
Hi
On a windows 7 tablet, on the desktop, if I clicked a field (e.g. in Windows Explorer) a small keyboard icon appears with a shortcut to the on-screen-keyboard (OSK).
On windows 8, this no longer appears. Instead you have to click the field, then select the OSK from the taskbar, and then click back in the field before typing.
Technical Stuff:
So far we've found that in Windows 8 there is no 'Options' window for the Input Keyboard in the Taskbar. In Windows 7 there WAS an 'Options' window which included the setting "For tablet pen input, show the icon next to the text box". This setting controlled
the shortcut icon that appears when you click in a field, and changes the following setting in the registry: HKCU\Software\Microsoft\TabletTip\1.7\ShowIPTipTarget. This setting does not appear in the registry on a Windows 8 machine and adding it in makes no
difference.
Rant:
Within 5 minutes of issuing a new Windows 8 tablet this problem was noticed by the end user, rendering the device almost useless if you want to work at any pace - and it was promptly handed back. Very frustrating and annoying as this feature appears
to have been removed. With Windows 8 pitched directly at the tablet market, surely this setting is in there somewhere - I can't think of any reason why it would be removed.
Any help much appreciated,
AndrewI fully agree with ssxIdent and all other posters who find the new touch keyboard rather dumb.
There is no point in explaining why MS has decided to do things this or that way and what philosophic reasons they can come up with. MS needs to understand that software has to be accepted by the users and should not irritate them.
But this is irritating.
I thought one of the main concerns of MS was to be as intuitive as possible and provide a most satisfying user experiance - this is definetly not.
Has anyone at MS ever tried to e. g. rename several files in a directory with the touch keyboard? Especially when you get to the bottom of the screen. Then you not only need to have show/hide the keyboard permanently, you even have to bother moving it or
resize the window. That is NO GOOD USER EXPERIANCE!
I'd find it intuitive, if there was a way for developers in WPF or in Windows Forms to tag any UI element if it
Needs a keyboard (making the touch keyboard appear automatically) or
Would like a keyboard (showing a symbol next to the box, just like the X in WindowsStoreApps.TextBox, to trigger the keyboard or make it pop up automatically, if the keyboard had an option that can be set by the user to respond to these UI elements) or
Can have a keyboard (behaviour as is now)
Once an application was built this way, users would intuitively be able to navigate through their beloved apps haveing the keyboard at hand when they will need it anyway, being able to access it just with a twitch of the hand if they want it and not being
annoyed by it when they normally would not need it AND not being annoyed by permanently having to show/hide/show/hide that dratted thing by making miles of hand movement for nothing.
For applications that are not tailormade this way some options to adjust the keyboard behaviour would help, too. Just provide an option to hook the keyboard to any focus change, and give users a selection of options to what major control types the keyboard
should respond. For geeks you could even provide white list where they can add the GUIDs for classes the keyboard should show up automatically, a black list where the keyboard has to disappear and a gray list where the keyboard comes up on enter and disappears
on leave.
Some other thing I'm not happy with:
I know Modern UI came somehow via Windows Phone 7, but our tablets, touch enabled laptops, ... are no telephones, so why has the touch keyboard numpad have the "1" at the top left corner and not at the bottom left like every other hardware keyboard
or even the MS Windows OSK???????? In this point I contradict the explanation in the otherwise quite interesting article about the
Design Concept because typing in numbers has more often to do with maths than with telephoning or switching TV channels. And calculators have the 1,2,3 in the bottom row, as have HW keyboards. The other misconception lies therin that you don't need to find
1,2,3 quicker with your eyes when you are typing lots of numbers e. g. into spreadsheets. The fingers of HW keyboard, calculator or cash register users are so used to the conventional position of the digits that won't be easy to reshape. Additionally when
typing in quantities of numbers right handed users (90% of world population) will have the hand rest on the keyboard, the thumb on 0 and index finger, middle finger, ring finger doing their respective columns low value low down, high value high up. Who
is dialing phone numbers or changing TV channels this way? But what will users do more often with the numpad - especially when dealing with loads of input data?
Why can we not at least have digits on the alpha keyboard like on Android with long press on "Q"="1" ... "P"="0"? Password policy sometimes forces you to add digits in a PW, calling for switch alpha/num/alpha/num which
is annoying, too! Even with the peek thingy, since you need two hands.
Why is there no indication what special characters are hidden behind a long press? It's possible when you press Ctrl, despite most people already knowing what Ctrl+C means. e. g. where is the paragraph sign "§"on the touch keyboard? Or have
you left it out, so lawyers can't sue you for developing this touch keyboard ;-) You have added a set of emojos, but forgotten to put a character on that is on virtually any other keyboard??? Rather give us a layer user/developers could fill with their own
set of special characters and swap the Ctrl hints for a special character preview.
When I have my keyboard docked I can split the alpha key gaining access to the ODD numpad in the middle, but why can I not have the numpad when the alpha stays unsplit in the middle having a big black block to its left and right - there was space, why have
you not used it properly??? Nevermind feeling crowded, as mentioned in the article, give us an checkbox in keyboard options than we can decide if we want it or not. Since the article argues that users tend to get comfortable with the keyboard after a while
and needn't look at it, this "over crowded" feeling would fade away just the same. Or you might even dim it a bit when there is no finger near it.
Where are the Fn keys? Give us an option - we'll decide if we want it e. g. on the left side of the alpha block. Just as with numpad this could be dimmed, too.
I'd have a lot more suggestions to throw into this, but I fear you'll not even pick up on the easiest or most fundamental ones.
Prove me wrong! Please do! I dare you!!! -
Changing Field Description in T.Code FBCJ
Hi SAP Gurus,
I am facing a problem with the T.Code FBCJ. In our organisation we have several branches where they use to save the Cash Payment transactions, they do not post it.While posting the transaction at HO, if the authorised person finds that "Business Transaction" assigned to the line item is not correct and wants to correct the Transaction, the system does not permit for that. As the field where changes required remains in DISPALY MODE only. Then please help me how to go for the change in that particular Field of "Business Transaction".
Please help me ASAP.
Regards
RajeshHi Rajesh,
When you save a transaction in cash journal system updates your cash register and it generates a cash document number and this is different from the accouting document number. At the time of posting system posts this transaction into accouting and generates an accounting document.
If system allows you to change the business transaction at the time of posting, then it means two different business transaction assignment for the same cash transaction, which should not be the case and is also not possible. Posting just posts the document in to accounting and if you want to change the business transaction, you need to cancel it and create it with the right business transaction.
Hope this helps...
regards,
Rengaraj -
Questions on OBIEE reporting against transactional Database
Hello guys
I have a situation where I have to bring in 5 tables from transactional database to do reporting on.. I looked at the tables, there are not typically dimension or fact tables. Each table contains information very specifically, at the same time all tables have numeric values that needed to be aggregated at the lowest level of that table..
I can join all these 5 tables together knowing the key columns. However, this is basically joining 5 tables with fact measures... Since this is transactional database which we don't own, so I can't create views nor changing the table structures..
I wonder how would I be able to configure such model in OBIEE?
Any thoughts?Thank you for the reply..
The specific situation I have here is:
I have 4 tables that I am polling directly from the4 store's cash register (Oh yea, real real time), they are customer, receipt line, receipt header, inventory,
The physical join is: they are customer-----> receipt line<-----receipt header <------------inventory...
In the BMM layer, each of these 4 tables have columns that should be measures, such as customer.customer credit limit, receipt line. quantity, receipt header. reciept tendered, inventory.quantity on hand... They are more measure columns from each table, but I am just listing one from each..
In this case if i set the aggregation rule on each column, then the BMM model won't a star schema anymore because every table can be fact..
I thought about adding all the measure columns into 1 logical fact table, which then the logical fact will have 4 LTS: customer, Re Line, Re Header, Inv.. This will be fine if I am only dealing with 1 store... However, in reality there will be 50 stores with the same exact tables/structures but on different servesr. Therefore, the logical fact will end up with 4*50 = 200 LTS each has fragmentation defined "store number = NYC or something else"..
Just wondering if combining all the measures in one logical table is the only way to model this design or not? What would be the best thing to do if in this situation I have to report against multiple data source of the same tables in 1 subject area?
Please let me know your thoughts..
Thank you
Maybe you are looking for
-
How do i add a rescue email to an existing apple id
Is it possible to add a rescue email to an existing apple ID? If so, what are the steps?
-
Break Points while remote debugging not working in Eclipse
I have set up my tomcat to listen for debugger connections on the default pot 8000. Now when I set break points in the code, it does not show the execution stop at that particular line. Now why would that be? Am I missing somethiing? I have built the
-
Error with master page "insert current page number" when exporting book
Using InDesign CS 5.5 for Windows Recently upgraded from InDesign CS (the really old one from 2003). I did save a copy of all my old version files and kept the old ID installed just in case (after reading all the horror stories on here). In my old ve
-
Copy header text of mult sales orders in a billing document
Hello Gurus, My requirement is to pass the header text from Sales order to a Billing document. However, if I create a billing document with reference to just one sales order, it is getting copied correctly in header text of a billing document. In cas
-
My iPhotos have disappeared completely. How do I get iPhoto back?
My iPhotos have disappeared completely. How do I get iPhoto back?