answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How int on capital treated in cost accounts?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the oldest capital city int he US?

kansas


What will happen if a char is counted as an int in C plus plus?

The main difference is that int values are treated as being integers whereas char values are treated as being character codes. Thus if you output a char with value 65 you will get the symbol 'A', but if you output an int with the value 65 you will get the value 65 instead. In order to output the symbol 'A' you would have to cast the int to a char.


The capital of Muslim empire int eh Tim of Haroon Rashid was?

Damascus


A state capital int the us with ho in it?

Honolulu, Hawaii Oklahoma City, Oklahoma


What are good pest controls?

varies with pest to be treated, property, int or ext and whether preventive or existing


30 examples of variables?

int n1; int n2; int n3; int n4; int n5; int n6; int n7; int n8; int n9; int n10; int n11; int n12; int n13; int n14; int n15; int n16; int n17; int n18; int n19; int n20; int n21; int n22; int n23; int n24; int n25; int n26; int n27; int n28; int n29; int n30;


How do you convert Travel Salesman problem from Recursive to Iterative?

//Here is my copy of recursive, any suggestion on converting to Iterative? Please help! #include <iostream> #include <stdio.h> #define INFINITY 9999 using namespace std; int cost=0; int n,a[10][10],visited[10]; int initial; void read() { cout << "Please enter number of vertices: "; cin >> n; while (n <= 0) { cout << "Number of vertices has to be greater than 0. Please enter number of vertices again: "; cin >> n; } }; void get(int a[10][10],int n,int visited[10]) { int i,j,max,src,dest,wt; for(i=0;i<n;i++) { visited[i]=0; for(j=0;j<n;j++) { a[i][j]=999; } } //display our input data max=n*(n-1); cout << "n = " << n << ", lines: " << max << endl; for(i=0;i<max;i++) { cin >> src >> dest >>wt; //a[src][dest]=wt; a[dest][src]=wt; } //print-out matrix table cout<<"\nCost Matrix"; cout<<"\n~\n"; for(i=0;i<n;i++) { for(j=0;j<n;j++) { if(a[i][j]!=999) cout<<a[i][j]<<"\t"; else cout<<"0\t"; } cout<<endl; } //get initial destination cout << "Please enter your initial destination: "; cin >> initial; }; int least(int c,int n,int a[10][10],int visited[10]) { int nc=999,min=999,kmin; for(int i=0;i<n;i++) if((a[c][i]!=0)&&(visited[i]==0)) { if(a[c][i]<min) { min=a[i][initial]+a[c][i]; kmin=a[c][i]; nc=i; } } if(min!=999) cost+=kmin; return nc; }; //void mincost(int city,int n,int a[10][10],int visited[]) //{ // //========================== // int counter; // //cout<<"This is counter count: "<<counter; // //========================== // int i,ncity; // visited[city]=1; // cout<<city<<"<-"; // ncity=least(city,n,a,visited); // if(ncity==999) // { // ncity=initial; // printf("%d",ncity); // cost+=a[city][ncity]; // return; // } // mincost(ncity,n,a,visited); //}; void mincost(int city,int n,int a[10][10],int visited[]) { int counter=0; //cost = 0 variable //cout<<"Mincost is running!"<<endl; for (int i=0; i<n; i++) { int a[10][10]; int i,ncity; visited[city]=1; cout<<city<<"<-"; ncity=least(city,n,a,visited); if(ncity==999) { ncity=initial; printf("%d",ncity); cost+=a[city][ncity]; return; } } }; void put() { printf("\nMinimun cost for visiting all cities:%d\n",cost); }; main() { read(); get(a,n,visited); mincost(initial,n,a,visited); cout<<endl; put(); }


How much is the car bloodhound ssc?

it cost about 10000000 pound is int it expensive you have to be a millianar to by that car


Is this legal float f equals 2?

At least in Java, that's legal - 2 is treated as an int, which can be converted without problems to the float type.


How many tickets could Chris buy if she had twenty dollars and each ticket cost 3.75?

She could buy int(20.00/3.75) where int(x) is the integer part of x 20.00/3.75 = 5.33... So int(20.00/3.75) = 5 tickets.


How do declare function pointer having two integer parameters and returning integer pointers?

// declare a function int* function(int, int); or int* (function)(int, int); // declare a pointer to a function int* (*pointer_to_function)(int, int);


Can variable have names space between them?

No. int my variable; <- not a valid declaration Java naming conventions say that you should use capital letters to differentiate words in a variable name. int myVariable; <- valid! Note that you can use the _ (underscore) character, as well, though some people suggest avoiding this. int my_variable; <- also valid!