I am doing an inventory control progam and trying to output a multiple array, I am getting an illegal conversion error java.lang.doubl e !d. Can somebody tell me what I am doing wrong or if there is another way? - /*
-
* Main.java
-
*
-
* Created on April 29, 2007, 6:57 PM
-
*
-
* To change this template, choose Tools | Template Manager
-
* and open the template in the editor.
-
*/
-
-
package inventory2;
-
-
/**
-
*
-
* @author SandK
-
*/
-
import java.util.*;
-
import java.text.*;
-
import java.lang.*;
-
import javax.swing.*;
-
import java.awt.event.*;
-
import java.awt.*;
-
import java.text.DecimalFormat;
-
public class Main
-
{ //declare variables
-
private static String Choice;
-
private static double movieTotal;
-
private static double movieValue;
-
private static double gameTotal;
-
private static double gameValue;
-
private static double appsTotal;
-
private static double appsValue;
-
private double movieNumber[][];
-
private double gameNumber[][];
-
private double appsNumber[][];
-
private Product[] stores;
-
double itemNumber[][];
-
static double value;
-
static double grandTotal;
-
-
-
public static void main(String[] args)
-
{//set values for multiple array
-
//assign empty set to clear final variable
-
double itemNumber[][] = { {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0} };
-
//assign values to Movie array
-
double movieNumber[][] = { {5,10,29.95}, {6,15,24.95}, {7,20,14.95},
-
{8,20,15.95} };
-
//assign values to Game array
-
double gameNumber[][] = { {9,10,229.95}, {10,5,199.95}, {11,4,4999.95},
-
{12,20,699.95} };
-
//assign value to Apps array
-
double appsNumber[][] = { {1,10,19.95}, {2,25,25.95}, {3,20,20.95},
-
{4,15,19.95} };
-
-
Main inventory = new Main();
-
{
-
Scanner input = new Scanner (System.in);
-
//Query user for inventory to view
-
System.out.println("Would you like to view the movies, games, or apps inventory?");
-
String userChoice = input.nextLine();
-
Choice = userChoice;
-
//Load values into array for movies selection
-
if( userChoice.equalsIgnoreCase("movies"))
-
{
-
-
//add new DVD's to inventory
-
//Create subclass objects for DVD subclass including style
-
inventory.addProduct(new DVD("White Noise", 1, 10, 19.95, "Action"));
-
inventory.addProduct(new DVD("Jeff Foxworthy", 2, 25, 25.95, "Comedy"));
-
inventory.addProduct(new DVD("Cars", 3, 20, 20.95, "Comedy"));
-
inventory.addProduct(new DVD("Monster-In-Law", 4, 15, 19.95, "Comedy"));
-
//assign multiple variable movieNumber[][] to
-
//itemNumber[][] for array output
-
for (int disc = 0; disc < itemNumber.length; disc++)
-
{
-
for(int column = 0; column < itemNumber[disc].length; column++)
-
{
-
itemNumber = movieNumber;
-
}
-
}
-
-
}
-
else if (userChoice.equalsIgnoreCase("games"))
-
{
-
//add new games to inventory
-
//Create subclass objects for Game subclass without style
-
inventory.addProduct(new Games("Command and Conquer", 5, 10, 29.95 ));
-
inventory.addProduct(new Games("Delta Force II", 6, 15, 24.95));
-
inventory.addProduct(new Games("Roller Coaster Tycoon", 7, 20, 14.95));
-
inventory.addProduct(new Games("Half-Life", 8, 20, 15.95));
-
//assign multiple variable gameNumber[][] to
-
//itemNumber[][] for array output
-
for (int disc = 0; disc < itemNumber.length; disc++)
-
{
-
for(int column = 0; column < itemNumber[disc].length; column++)
-
{
-
itemNumber = gameNumber;
-
}
-
}
-
-
-
}
-
else if (userChoice.equalsIgnoreCase("apps"))
-
{
-
//add new games to inventory
-
//Create subclass objects for Game subclass with style
-
inventory.addProduct(new Apps("Wiindows Vista 32 bit", 9, 10, 229.95,
-
"Operating System" ));
-
inventory.addProduct(new Apps("Windows Vista 64 bit", 10, 5, 199.95,
-
"Operating System"));
-
inventory.addProduct(new Apps("Autocad 2007", 11, 5, 4999.95, "Drafting"));
-
inventory.addProduct(new Apps("Microsoft Office 2007", 12, 20, 699.95,
-
"Business"));
-
//assign multiple variable appsNumber[][] to
-
//itemNumber[][] for array output
-
for (int disc = 0; disc < itemNumber.length; disc++)
-
{
-
for(int column = 0; column < itemNumber[disc].length; column++)
-
{
-
itemNumber = appsNumber;
-
}
-
}
-
}
-
//Determine individual totals for arrays to compute grand total
-
//Compute movie total from array for part of grand total
-
for (int disc = 0; disc < movieNumber.length; disc++)
-
{
-
for(int column = 0; column < movieNumber[disc].length; column++)
-
{
-
movieValue = movieNumber[disc][1] * itemNumber[disc][2];
-
movieTotal += movieValue;
-
}
-
}
-
//Compute game total from array for part of grand total
-
for (int disc = 0; disc < gameNumber.length; disc++)
-
{
-
for(int column = 0; column < gameNumber[disc].length; column++)
-
{
-
gameValue = gameNumber[disc][1] * itemNumber[disc][2];
-
gameTotal += gameValue;
-
}
-
}
-
//Compute apps total from array for part of grand total
-
for (int disc = 0; disc < appsNumber.length; disc++)
-
{
-
for(int column = 0; column < appsNumber[disc].length; column++)
-
{
-
appsValue = appsNumber[disc][1] * itemNumber[disc][2];
-
appsTotal += appsValue;
-
}
-
}
-
grandTotal = movieTotal + gameTotal + appsTotal;
-
}
-
-
System.out.println("Inventory of: ");
-
System.out.println(Choice);
-
System.out.println();
-
-
-
System.out.println();
-
//Call to superclass methods
-
inventory.displayInv();
-
inventory.nameSort();
-
System.out.println();
-
inventory.displayInv();
-
-
double total = inventory.totalInvCalc();
-
System.out.println("Total Value is: $" + total);
-
System.out.println();
-
System.out.println("The grand stock inventory value is: $");
-
System.out.println(grandTotal);
-
-
-
-
-
outputArray(itemNumber);
-
-
}
-
-
public static void outputArray(double itemNumber[][])
-
{
-
//Print Column headings and set spacing
-
System.out.printf("%5s%6s%5s%12s\n", "Disc", "Qty", "Cost", "Inv Value");
-
//Print values from array and set spacing between values
-
//set row (aka disc) and column to zero before starting
-
for (int disc = 0; disc < itemNumber.length; disc++)
-
{
-
for(int column = 0; column < itemNumber[disc].length; column++)
-
-
//print information from array
-
System.out.printf("%5d", itemNumber[disc][column]);
-
value = 0;
-
//determine next value
-
value = itemNumber[disc][1] * itemNumber[disc][2];
-
grandTotal += value;
-
//print next value
-
System.out.printf("%8d",value);
-
//Return to start new line
-
//Clear values before determing next value
-
System.out.println();
-
-
}
-
System.out.print("The total inventory value is: $");
-
System.out.println(grandTotal);
-
System.out.println();
-
}
-
// method to sort inventory by name
-
public void nameSort()
-
{
-
for (int i = 1; i < stores.length; i++)
-
{
-
int j;
-
Product val = stores[i];
-
for (j = i - 1; j > -1; j--)
-
{
-
Product temp = stores[j];
-
if (temp.compareTo(val) <= 0)
-
{
-
break;
-
}
-
stores[j + 1] = temp;
-
}
-
stores[j + 1] = val;
-
}
-
}
-
-
//method to create a String representation of array of class products
-
public String toString()
-
{
-
String s = "";
-
for (Product p : stores)
-
{
-
s = s + p.toString();
-
s = s + "\n\n";
-
}
-
return s;
-
}
-
-
//method to increase array size to add products
-
public void addProduct(Product p1)
-
{
-
if (stores == null)
-
{
-
stores = new Product[0];
-
}
-
//Copy all products into p first
-
Product[] p = stores;
-
//create bigger array
-
Product[] temp = new Product[p.length + 1];
-
//add the new product at the last position
-
for (int i = 0; i < p.length; i++)
-
{
-
temp[i] = p[i];
-
}
-
temp[(temp.length - 1)] = p1;
-
stores = temp;
-
}
-
-
//method to calculate Total Inventory Value
-
public double totalInvCalc()
-
{
-
double total = 0.0;
-
for (int i = 0; i < stores.length; i++)
-
{
-
total = total + stores[i].inventoryValue();
-
}
-
return total;
-
}
-
//method to display inventory
-
public void displayInv()
-
{
-
//call toString method
-
System.out.println(toString());
-
}
-
-
-
}
-
-
-
//Setup Products subclass to Main and superclass to DVD's
-
-
-
-
}
5 2506
This part is not the problem, but here is the rest of the code: - class Product extends Main implements Comparable
-
{ //Declare class variables to store item information
-
private String title;
-
private int item;
-
private double stockOnHand;
-
private double cost;
-
//Declare product constructor for use by subclasses and clear variables
-
public Product()
-
{
-
title = "";
-
item = 0;
-
stockOnHand = 0;
-
cost = 0.0;
-
}
-
//four argument constructor
-
public Product(String title, int item, double stockOnHand, double cost)
-
{
-
this.title = title;
-
this.item = item;
-
this.stockOnHand = stockOnHand;
-
this.cost = cost;
-
}
-
//Setup set and get methods for class Products
-
public void setTitle(String title)
-
{
-
this.title = title;
-
}
-
-
public String getTitle()
-
{
-
return title;
-
}
-
-
public void setItem(int item)
-
{
-
this.item = item;
-
}
-
-
public int getItem()
-
{
-
return item;
-
}
-
-
public void setstockOnHand(double quantity)
-
{
-
stockOnHand = quantity;
-
}
-
-
public double getstockOnHand()
-
{
-
return stockOnHand;
-
}
-
-
public void setItemcost(double cost)
-
{
-
this.cost = cost;
-
}
-
-
public double getItemcost()
-
{
-
return cost;
-
}
-
-
public double inventoryValue()
-
{
-
return cost * stockOnHand;
-
}
-
//implement compare method
-
public int compareTo(Object o)
-
{
-
Product p = null;
-
try
-
{
-
p = (Product) o;
-
}
-
catch (ClassCastException cE)
-
{
-
cE.printStackTrace();
-
}
-
return title.compareTo(p.getTitle());
-
}
-
//Setup method to output string overriding string in superclass
-
//inventory2.Main using toString
-
public String toString()
-
{
-
return "Disc Title: " + title + "\nItem #: " + item + "\ncost: $" + cost + "\nQuantity: "
-
+ stockOnHand + "\nValue: $" + inventoryValue();
-
}
-
}
-
//Setup class DVD subclass to Products
-
class DVD extends Product
-
{
-
//Declare variables for DVD subclass
-
private String style;
-
private double restockFee;
-
-
//Five argument constructor
-
public DVD(String title, int item, double stockOnHand, double cost, String style)
-
{
-
super(title,item, stockOnHand, cost);
-
this.style = style;
-
this.restockFee = 0.05;
-
}
-
-
//returns the value of the inventory, plus the restocking fee
-
public double getInventoryValue()
-
{
-
return super.getItemcost() + restockFee;
-
}
-
//Return string with override of string of superclass inventory2.Product
-
//using toString
-
public String toString()
-
{
-
//Return string with style of DVD added
-
return super.toString() + "\nstyle \t" + style;
-
}
-
-
}
-
//Setup Games as subclass of Products
-
class Games extends Product
-
{
-
//Declare variables for subclass Games
-
private double restockFee;
-
-
//Four argument constructor for subclass Games
-
public Games(String title, int item, double stockOnHand, double cost)
-
{
-
super(title, item, stockOnHand, cost);
-
-
this.restockFee = 0.05;
-
}
-
-
//returns the value of the inventory, plus the restocking fee
-
public double getInventoryValue()
-
{
-
return super.getItemcost() + restockFee;
-
}
-
//Return string with override of string of superclass inventory2.Product
-
//using toString
-
public String toString()
-
{
-
return super.toString();
-
}
-
}
-
class Apps extends Product
-
{
-
//Declare variables for DVD subclass
-
private String type;
-
private double restockFee;
-
-
//Five argument constructor
-
public Apps(String title, int item, double stockOnHand, double cost, String type)
-
{
-
super(title,item, stockOnHand, cost);
-
this.type = type;
-
this.restockFee = 0.05;
-
}
-
-
//returns the value of the inventory, plus the restocking fee
-
public double getInventoryValue()
-
{
-
return super.getItemcost() + restockFee;
-
}
-
//Return string with override of string of superclass inventory2.Product
-
//using toString
-
public String toString()
-
{
-
//Return string with style of DVD added
-
return super.toString() + "\ntype \t" + type;
-
}
I am doing an inventory control progam and trying to output a multiple array, I am getting an illegal conversion error java.lang.doubl e !d. Can somebody tell me what I am doing wrong or if there is another way? - /*
-
* Main.java
-
*
-
* Created on April 29, 2007, 6:57 PM
-
*
-
* To change this template, choose Tools | Template Manager
-
* and open the template in the editor.
-
*/
-
-
package inventory2;
-
-
/**
-
*
-
* @author SandK
-
*/
-
import java.util.*;
-
import java.text.*;
-
import java.lang.*;
-
import javax.swing.*;
-
import java.awt.event.*;
-
import java.awt.*;
-
import java.text.DecimalFormat;
-
public class Main
-
{ //declare variables
-
private static String Choice;
-
private static double movieTotal;
-
private static double movieValue;
-
private static double gameTotal;
-
private static double gameValue;
-
private static double appsTotal;
-
private static double appsValue;
-
private double movieNumber[][];
-
private double gameNumber[][];
-
private double appsNumber[][];
-
private Product[] stores;
-
double itemNumber[][];
-
static double value;
-
static double grandTotal;
-
-
-
public static void main(String[] args)
-
{//set values for multiple array
-
//assign empty set to clear final variable
-
double itemNumber[][] = { {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0} };
-
//assign values to Movie array
-
double movieNumber[][] = { {5,10,29.95}, {6,15,24.95}, {7,20,14.95},
-
{8,20,15.95} };
-
//assign values to Game array
-
double gameNumber[][] = { {9,10,229.95}, {10,5,199.95}, {11,4,4999.95},
-
{12,20,699.95} };
-
//assign value to Apps array
-
double appsNumber[][] = { {1,10,19.95}, {2,25,25.95}, {3,20,20.95},
-
{4,15,19.95} };
-
-
Main inventory = new Main();
-
{
-
Scanner input = new Scanner (System.in);
-
//Query user for inventory to view
-
System.out.println("Would you like to view the movies, games, or apps inventory?");
-
String userChoice = input.nextLine();
-
Choice = userChoice;
-
//Load values into array for movies selection
-
if( userChoice.equalsIgnoreCase("movies"))
-
{
-
-
//add new DVD's to inventory
-
//Create subclass objects for DVD subclass including style
-
inventory.addProduct(new DVD("White Noise", 1, 10, 19.95, "Action"));
-
inventory.addProduct(new DVD("Jeff Foxworthy", 2, 25, 25.95, "Comedy"));
-
inventory.addProduct(new DVD("Cars", 3, 20, 20.95, "Comedy"));
-
inventory.addProduct(new DVD("Monster-In-Law", 4, 15, 19.95, "Comedy"));
-
//assign multiple variable movieNumber[][] to
-
//itemNumber[][] for array output
-
for (int disc = 0; disc < itemNumber.length; disc++)
-
{
-
for(int column = 0; column < itemNumber[disc].length; column++)
-
{
-
itemNumber = movieNumber;
-
}
-
}
-
-
}
-
else if (userChoice.equalsIgnoreCase("games"))
-
{
-
//add new games to inventory
-
//Create subclass objects for Game subclass without style
-
inventory.addProduct(new Games("Command and Conquer", 5, 10, 29.95 ));
-
inventory.addProduct(new Games("Delta Force II", 6, 15, 24.95));
-
inventory.addProduct(new Games("Roller Coaster Tycoon", 7, 20, 14.95));
-
inventory.addProduct(new Games("Half-Life", 8, 20, 15.95));
-
//assign multiple variable gameNumber[][] to
-
//itemNumber[][] for array output
-
for (int disc = 0; disc < itemNumber.length; disc++)
-
{
-
for(int column = 0; column < itemNumber[disc].length; column++)
-
{
-
itemNumber = gameNumber;
-
}
-
}
-
-
-
}
-
else if (userChoice.equalsIgnoreCase("apps"))
-
{
-
//add new games to inventory
-
//Create subclass objects for Game subclass with style
-
inventory.addProduct(new Apps("Wiindows Vista 32 bit", 9, 10, 229.95,
-
"Operating System" ));
-
inventory.addProduct(new Apps("Windows Vista 64 bit", 10, 5, 199.95,
-
"Operating System"));
-
inventory.addProduct(new Apps("Autocad 2007", 11, 5, 4999.95, "Drafting"));
-
inventory.addProduct(new Apps("Microsoft Office 2007", 12, 20, 699.95,
-
"Business"));
-
//assign multiple variable appsNumber[][] to
-
//itemNumber[][] for array output
-
for (int disc = 0; disc < itemNumber.length; disc++)
-
{
-
for(int column = 0; column < itemNumber[disc].length; column++)
-
{
-
itemNumber = appsNumber;
-
}
-
}
-
}
-
//Determine individual totals for arrays to compute grand total
-
//Compute movie total from array for part of grand total
-
for (int disc = 0; disc < movieNumber.length; disc++)
-
{
-
for(int column = 0; column < movieNumber[disc].length; column++)
-
{
-
movieValue = movieNumber[disc][1] * itemNumber[disc][2];
-
movieTotal += movieValue;
-
}
-
}
-
//Compute game total from array for part of grand total
-
for (int disc = 0; disc < gameNumber.length; disc++)
-
{
-
for(int column = 0; column < gameNumber[disc].length; column++)
-
{
-
gameValue = gameNumber[disc][1] * itemNumber[disc][2];
-
gameTotal += gameValue;
-
}
-
}
-
//Compute apps total from array for part of grand total
-
for (int disc = 0; disc < appsNumber.length; disc++)
-
{
-
for(int column = 0; column < appsNumber[disc].length; column++)
-
{
-
appsValue = appsNumber[disc][1] * itemNumber[disc][2];
-
appsTotal += appsValue;
-
}
-
}
-
grandTotal = movieTotal + gameTotal + appsTotal;
-
}
-
-
System.out.println("Inventory of: ");
-
System.out.println(Choice);
-
System.out.println();
-
-
-
System.out.println();
-
//Call to superclass methods
-
inventory.displayInv();
-
inventory.nameSort();
-
System.out.println();
-
inventory.displayInv();
-
-
double total = inventory.totalInvCalc();
-
System.out.println("Total Value is: $" + total);
-
System.out.println();
-
System.out.println("The grand stock inventory value is: $");
-
System.out.println(grandTotal);
-
-
-
-
-
outputArray(itemNumber);
-
-
}
-
-
public static void outputArray(double itemNumber[][])
-
{
-
//Print Column headings and set spacing
-
System.out.printf("%5s%6s%5s%12s\n", "Disc", "Qty", "Cost", "Inv Value");
-
//Print values from array and set spacing between values
-
//set row (aka disc) and column to zero before starting
-
for (int disc = 0; disc < itemNumber.length; disc++)
-
{
-
for(int column = 0; column < itemNumber[disc].length; column++)
-
-
//print information from array
-
System.out.printf("%5d", itemNumber[disc][column]);
-
value = 0;
-
//determine next value
-
value = itemNumber[disc][1] * itemNumber[disc][2];
-
grandTotal += value;
-
//print next value
-
System.out.printf("%8d",value);
-
//Return to start new line
-
//Clear values before determing next value
-
System.out.println();
-
-
}
-
System.out.print("The total inventory value is: $");
-
System.out.println(grandTotal);
-
System.out.println();
-
}
-
// method to sort inventory by name
-
public void nameSort()
-
{
-
for (int i = 1; i < stores.length; i++)
-
{
-
int j;
-
Product val = stores[i];
-
for (j = i - 1; j > -1; j--)
-
{
-
Product temp = stores[j];
-
if (temp.compareTo(val) <= 0)
-
{
-
break;
-
}
-
stores[j + 1] = temp;
-
}
-
stores[j + 1] = val;
-
}
-
}
-
-
//method to create a String representation of array of class products
-
public String toString()
-
{
-
String s = "";
-
for (Product p : stores)
-
{
-
s = s + p.toString();
-
s = s + "\n\n";
-
}
-
return s;
-
}
-
-
//method to increase array size to add products
-
public void addProduct(Product p1)
-
{
-
if (stores == null)
-
{
-
stores = new Product[0];
-
}
-
//Copy all products into p first
-
Product[] p = stores;
-
//create bigger array
-
Product[] temp = new Product[p.length + 1];
-
//add the new product at the last position
-
for (int i = 0; i < p.length; i++)
-
{
-
temp[i] = p[i];
-
}
-
temp[(temp.length - 1)] = p1;
-
stores = temp;
-
}
-
-
//method to calculate Total Inventory Value
-
public double totalInvCalc()
-
{
-
double total = 0.0;
-
for (int i = 0; i < stores.length; i++)
-
{
-
total = total + stores[i].inventoryValue();
-
}
-
return total;
-
}
-
//method to display inventory
-
public void displayInv()
-
{
-
//call toString method
-
System.out.println(toString());
-
}
-
-
-
}
-
-
-
//Setup Products subclass to Main and superclass to DVD's
-
-
-
-
}
At which line are you getting the error?
The line I am getting the error on is:
The line I am getting the error on is:
Post the full error message please.
Thanks for the help, glad it was so simple
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Steve |
last post by:
Hello,
I need help with formatting an output of an array.
I have a two dimensional array that looks something like this:
x x x x
y y y y
b b b b
....and so on...I use to just represent the row number whereas x, y, b
are some values in the array. I have no problem displaying the array on the
|
by: Gactimus |
last post by:
I made the program below. It outputs the smallest number in the array. What
I would like to know is how do I output the array location. I am at a loss.
For example, since the smallest number in the array is 2, the output should
be 2 for the number and 1 for the location. If anyone could help or point
me in the right direction that would be great. Thanks.
-------------------
#include <iostream>
|
by: Milton Snider |
last post by:
I have a table of about 20 Categories. I currently have them displayed
accross the page in a table from left to right in 3 columns. like this:
abuse cmecf credit/etc
dismissal presumptions
You will notice the sort runs from left to right. I would like the sort to
run vertically like this:
abuse dismissal
cmecf presumptions
credit/etc
|
by: Tom Lam lemontea |
last post by:
Hi all,
This is my very first post here, I've seriously tried some programming
on C, and shown below is my very first program(So you can expect it to
be very messy) that I wrote after I've learned the basics. However,
the output function I wrote seems to repeat unneedingly for 2 times.
My trial on solving it myself have failed. Anyone willing to point out
where the problem lies will be greatly appreciated. Thanks.
**** Source code ****
|
by: menotu3169 |
last post by:
Alright, I'm just learning C++ and I'm trying to make a program.
It uses a 10*10 array, calculates what all the values are and then
outputs the values stored in the array on the screen.
My teacher's out sick, and no one in my class has been able to help
me.
What I want to do, is take an array of double values, and output them
on the screen in a nice looking format.
| |
by: rkk |
last post by:
Hi,
I have written a generic mergesort program which is as below:
---------------------------------------------------------
mergesort.h
-----------------------
void
MergeSort(void *array,int p,int r,int elemSize,int(*Compare)(const
void *keyA,const void *keyB));
|
by: rkk |
last post by:
Hi,
My mergesort program is below. There is a small piece of logical
error/bug in this code which I can't figure out, as a result the output
array isn't completely sorted. Requesting your help to resolve this
problem. Thanks in advance.
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
|
by: thecoolone |
last post by:
I am trying to implement the yahoo search api using php.
I prefer to use PHP serialized to get the result of the search
displayed.
Right now i get the output like:
Array
(
=Array
(
=web
=20800000
|
by: LittlBUGer |
last post by:
Hello. First of all I'm programming in VB.NET/ASP.NET doing a page for a website. Now, to my question....
I have a simple array of integer numbers (15 characters in length) which can hold up to 2000 items. What I basically need to do is output these numbers to a PDF file I'm creating on the fly and I can only fit a certain amount of numbers per page. What I need to do is just output these on each page in numerical order vertically NOT...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |