C :: Make A Live Price Chart Graph
Dec 14, 2013
The only language I know so far is C. Is there any way I can use c programming to display a live chart for a price graph including volume in different time intervals that I want to select. I want it to look like this URL....
View 2 Replies
ADVERTISEMENT
Apr 30, 2013
I want to make such application in which user make directed graphs along with relations between them. After that application show that which graph properties are proved in this graph e.g Reflexive, Irreflexive, Symmetric, Anti Symmetric, transitive etc
View 1 Replies
View Related
Apr 9, 2014
How to get live streaming of stock data from yahoo finance? Using C++. I need the code and fetch the data so I can do calculations on the price and volume or what not.
View 1 Replies
View Related
Jul 29, 2013
I'm working on an app which monitors user selected data sets from various devices, and I'd like to display the data in a CListCtrl. This would be very convenient, but I'm just a little concerned about (1) just how fast can a CListCtrl be populated, and (2) how can i reduce or eliminate screen flicker. To be specific...
1. There will likely be upwards of 100 rows of data, maybe more (probably 5 or 6 columns), and I'm going to have to refresh it all as quickly as possible, perhaps as fast as once per second. I can play games and only refresh a visible rectangle, but how responsive the control would be, having all that data deleted and refreshed continually?
2. You can see why I'd be worried about screen flicker, and I thought I'd likely have to make two identical overlapped controls so I could double buffer as I would with a graphic animation, switching the visibility of one or another control after its updated to give the appearance of sudden complete updates. BUT... I see there is an extended style you can set called "LVS_EX_DOUBLEBUFFER"
View 10 Replies
View Related
Nov 30, 2012
I am trying to overlay an image on a live video.I have used alpha blending method to overlay image on the video. On overlaying the image, it gets overlayed five times rather than one as expected.
Both frame data and the image data is taken as BYTE* for overlaying and displaying it.
The image used is a bitmap image.
The data (BYTE*) of both the video and the image is overlayed and the resultant is stored back in the variable of the video and den drawn on the picture control of vc++.
The video resolution is 640x480.
The image I m overlaying is 128x128.
The IDE used is visual studio professional.The code is developed using c++.
How do I overlay the bitmap image as a single image on the live video at a specific position.
View 2 Replies
View Related
Aug 8, 2012
I have 2 database. One is on live server and the other on local desktop.
User can make changes in database offline on local desktop.
But later he wants to move his changes to live server and also get the updates done on live server by other users. How can this be accomplished? What algorithm can be applied?
View 3 Replies
View Related
Nov 26, 2013
I want to draw a 2D bar chart according to 10 or 15 numbers in c++. How can i do it? Which i need components?
View 1 Replies
View Related
Dec 17, 2012
I need to make a bar chart with asterisks that looks like this:
Store 1: ******
Store 2: ***
etc.
anyway, right now what I have is:
Code:
#include <iostream>
#include <iomanip>
using namespace std;
int main () {
const int STORES = 5;
int sales[STORES], i;
for (i = 0; i < STORES; i++) {
[code].....
It's not displaying asterisks.
View 1 Replies
View Related
Jan 6, 2014
how to draw a flow chart for following nested loop?
for(int r=1;r<=5;r++){
for(int c=1;c<=r;++c){
cout<<c;
}
cout<<endl;
View 1 Replies
View Related
Nov 11, 2014
I have the following code. I have hardcoded the x and y values to test. And for some reason for the point (0,-0.5) it plots (1,-0.5) . What is going on, because if you try other values then the graph displays correctly.
foreach (var grp in q) {
point = new DataPoint();
Sum1 = grp.Sum1 > 2 ? 2 : grp.Sum1;
Sum1 = Sum1 < -2 ? -2 : Sum1;
[Code] ....
Attached is what is displayed.
Attached image(s)
View 13 Replies
View Related
Dec 30, 2014
I need to create a line chart that will be universal for every currency. As Y it will display value of currency, as X it will display time when that value was established.
For drawing I think of using Windows.UI.Xaml.Shapes.Line and Windows.UI.Xaml.Controls.Canvas
What I want to get is something like image below but it would have to draw correctly scaled chart for every currency which is the biggest problem(I think it is).
For every currency I will probably have to get minimal and maximal value which will be used to properly scale a chart(I will probably also have to get rendersize of canvas or something).
The user will choose the range of time and then the correct chart must be drawn (For example 04-11-2004 to 11-03-2007)
It is a windows store project.
View 4 Replies
View Related
Nov 27, 2014
I am Trying all the Time to implement in c# moving of points by using Mouse ( Web Applications) and save the new value in array. But not successful ...
View 3 Replies
View Related
Oct 5, 2014
I've go this code that I need to use a Named Constant for the price of a t-shirt.
I've already done the code from a previous lab for college and I'm not sure how to proceed.
Here is the code:
int main()
{
int tno, price=12,cost;
float discount;
[Code].....
not asking to have this done for me just a hint at where to put the Named Constant
View 2 Replies
View Related
Jul 6, 2014
I'm trying to compare prices which are read from the file along with other information. The input file is as shown below: The file data is something like this:
//Program to test the class listType
#include <iostream>
#include <fstream>
[Code]....
View 5 Replies
View Related
Oct 24, 2013
I'm writing a function that is to return the price of something.. What would be the most appropriate return type for this? Like in Java it would be a double...
View 6 Replies
View Related
May 7, 2013
Given a structure book defined as follows and an array lib of books
Code:
struct Book{
char title[100];
char author[100];
int price;
struct Book *nextedition;
};
struct Book lib[1000]; I'm going to write a function to compute total price of books by a given author including all books which are future editions of his book, even if the author of that future edition is NOT the specified author. title author price nextedition Book1 Author1 25 &lib[2] Book2 Author2 20 NULL Book3 Author3 30 &lib[3] Book4 Author1 35 NULL
For the example above, given the author "Author1", the function should return 90 (=25+30+35), and given the author "Author 3", the function should return 65 (=30+35).
So here's my attempt:
Code:
int totalPrice(char author[100]){
int total=0;
for (i=0; i<numbooks; i++)
if(strcmp(author, lib[i].author==0))
[Code] ....
What I'm trying to do is finding the first book in the lib of the specified author using for loop and then let the while loop do the rest. However, it seems the price is over-counted after each iteration of the for loop but I don't know how to fix it.
View 2 Replies
View Related
Feb 22, 2015
I have been trying to calculate the bond price given a certain YTM using class method. Since the YTM and bond price are linked with each other(there is another question asking us to calculate the YTM with a given price),we put price and YTM in "private" and others variables in"public". Actually, this is the format given in my assignment.
I used "getvalue" to get the value of YTM, and used YTM in the formula of bond price calculation. However, the output of the price is infinite, while the output of price is right if I used a specific value of YTM(such as 0.05) in the formula. It means that I didn't successfully get right value of YTM.
#include <iostream>
#include <cmath>
using namespace std;
class bond{
public:
bond(){};
[Code] .....
View 1 Replies
View Related
Sep 6, 2014
I'm trying to calculate the total price of books contained in a linked list. I've tried getTotal() function in linked list but error: no match for 'operator+=' in 'total += ptr->Node<Book>::info'| occurred. How can I access the price in the node and then calculate the total price.
Here is part of my code :
Book class
class Book {
protected :
int id;
string title;
double price;
string bookStatus;
[code]....
View 2 Replies
View Related
Jul 20, 2014
Here is my code below:
#include<fstream>
#include<iostream>
#include<stdlib.h>
#include<iomanip>
#include<string>
using namespace std;
void main() {
fstream file;
string id,name,type,price;
[code].....
I can't separate and align 4 categories neatly, how to do this solution below(the link of example for sorting Product ID in ascending order): [URL]
By the way,here is the required .txt file(test.txt): [URL]
View 4 Replies
View Related
Apr 15, 2014
I am working on a drink machine simulation. I have a text file that holds the prices, names and inventory. My problem is It won't let me set my prices at 1.00 or higher. Ex: I set the price to 1.50 in the text file then when it reads the info and stores the price it only stores .50 instead of 1.50.
my code:
#include <iostream>
#include <string>
#include <fstream>
[Code].....
View 1 Replies
View Related
Apr 15, 2014
I am working on a drink machine simulation. I have a text file that holds the prices, names and inventory. My problem is It won't let me set my prices at 1.00 or higher. Ex: I set the price to 1.50 in the text file then when it reads the info and stores the price it only stores .50 instead of 1.50.
textfile looks like this:
Apple Juice 1.50 20
Mango Juice 1.50 20
Sprite Mix 1.90 20
Coca Cola 1.90 20
[Code].....
View 2 Replies
View Related
Mar 10, 2015
This is a round robin execution. with gantt chart. arrival time and burst time. I think there is an error in my formula to get the right answer,i cant resolve it but my program is running. What is the code or the right formula??
#include<stdio.h>
int main(){
int i,j=0,n,time,remain,flag=0,ts;
int sum_wait=0,sum_turnaround=0,at[10],bt[10],rt[10];
int ganttP[50],ganttStartTime[50];
printf("Enter no of Processes : ");
scanf("%d",&n);
remain=n;
[Code] ....
View 2 Replies
View Related
Mar 13, 2014
How can i write a program that allows a user to enter a size of pizza and then print the price for that size.
Example: if a user enters size ''s'' then it should display the price stored under ''s''
View 3 Replies
View Related
Sep 14, 2014
I want this programming to call functions choose between a customer type and call the relevent function to calculate the final price but it is not calling the functions.
#include <iostream>
using namespace std;
double amount;
double studendOrPensioner(int&choice, double &origPrice);
double OtherCustomers(int&choice,double& origPrice);
[Code]...
View 1 Replies
View Related
Apr 23, 2015
Currently i have a system that will store user input into a txt file, and have a function that will compute the daily sales of the month(Check by system date month) and display the sales of the day and the grand total of that month.
Take for example, the system date now check that the current month is Apr. Below are my current output:
20Apr2015 $11.5
20Apr2015 $15.5
22Apr2015 $4.5
25Apr2015 $4.5
28Apr2015 $4.5
20Apr2015 $4.5
Grand Total $45
But my desired result should be as below
20Apr2015 $31.5
22Apr2015 $4.5
25Apr2015 $4.5
28Apr2015 $4.5
Grand Total $45
Textfile data:
1|Bag|2|3|6|20Apr2015
2|Fruit|2.3|5|11.5|20Apr2015
3|Fruit|2.3|5|15.5|20Apr2015
4|Water|0.9|5|4.5|22Apr2015
5|Water|0.9|5|4.5|25Apr2015
6|Water|0.9|5|4.5|20Jul2015
7|Water|0.9|5|4.5|20Jul2015
8|Water|0.9|5|4.5|28Apr2015
9|Water|0.9|5|4.5|20Apr2015
Below are my code.
struct TransactionPile {
// to record item information.
string itemid;
string itemdesc;
float unitprice;
int quantity;
float totalprice;
string date;
[Code] ....
View 6 Replies
View Related
Apr 25, 2013
SYNOPSIS : KBJ tourist agency Sdn. Bhd wants you to write an application program to calculate the total price for their customers for a package of vacation. The following table shows the price for three destinations (transportation and accommodation) offered by the agency:
Destination TransportationAccommodation
Pulau Redang Child RM15.00
Adult RM30.00RM95 per day
Pulau Perhentian Child RM20.00
Adult RM30.00 RM100 per day
Pulau Kapas Child RM10.00
Adult RM20.00 RM120 per day
This agency company will give some discount to a group of customers with is:
a.10% discount will be given for the group that has a least 5 adults.
b.25% discount will be given for the group that has more than 5 persons (adults and children)
c.30% discount will be given for the group that has at least 15 persons.
Your application program has to display the output using this following screen layout:
KBJ TOURIST CUSTOMER INFORMATION
Customer’s name: XXXXXXXXXXXXX
Number of Children:XXXXX
Number of Adult: XXXXX
Transportation: RMXXX.XX
Accommodation: RMXXX.XX
Total price: RMXXXX.XX
This is the code i got so far but it doesn't work..:(
#include <iostream.h>
int main () {
char customerName,code,A,B,C;
int childNum,adultNum;
double rate,discount,totalPrice,a,c;
[Code] .....
View 8 Replies
View Related