Where ever I have mentioned "CHANGE" in the code. That field needs to be changed and to be inserted from Excel.

Hello Guys,

I am working on a Movie Platform and using XML file to upload/Publish Movies on to the platform. So for each Movie title I have to Edit and create an XML which is very time consuming and to be honest stupid. I want your help to suggest me a way how can I integrate this XML at the back of Excel Sheet and Index those fields which I have to change using Excel columns and can generate the XML file. I have data in excel sheet column wise. So each column serves as the data to be inserted on the platform. I need to make something so that I can I can run a script on excel data file and it generates all the XML files.

Please help me find a way as how to do it? So that I may be able to do it in future for all the platforms. Thanks in Advance

<?xml version="1.0" encoding="UTF-8"?>
<ADI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Asset>
<Metadata>
<AMS Provider="000403" Asset_Class="title" Asset_ID="CHANGE" Verb=""/>

<App_Data App="MOD" Name="CarrierID" Value="96502"/>
<App_Data App="MOD" Name="CarrierID" Value="96501"/>
<App_Data App="MOD" Name="CarrierID" Value="96601"/>
<App_Data App="MOD" Name="CarrierID" Value="97101"/>
<App_Data App="MOD" Name="CarrierID" Value="96503"/>
<App_Data App="MOD" Name="CarrierID" Value="96402"/>
<App_Data App="MOD" Name="CarrierID" Value="96401"/>
<App_Data App="MOD" Name="CarrierID" Value="96802"/>
<App_Data App="MOD" Name="CarrierID" Value="97402"/>
<App_Data App="MOD" Name="CarrierID" Value="97303"/>
<App_Data App="MOD" Name="CarrierID" Value="97302"/>
<App_Data App="MOD" Name="CarrierID" Value="97301"/>
<App_Data App="MOD" Name="DestAreas" CarrierID="96502" Value="10"/>
<App_Data App="MOD" Name="DestAreas" CarrierID="96501" Value="9"/>
<App_Data App="MOD" Name="DestAreas" CarrierID="96601" Value="3"/>
<App_Data App="MOD" Name="DestAreas" CarrierID="97101" Value="1"/>
<App_Data App="MOD" Name="DestAreas" CarrierID="96503" Value="11"/>
<App_Data App="MOD" Name="DestAreas" CarrierID="96402" Value="16"/>
<App_Data App="MOD" Name="DestAreas" ...

[QUOTE=ithelp;1070993]Plot the formulae in matlab first.[/QUOTE]
[CODE]clear all
close all
t=0:0.1:3;
f1=1/6; f2=1/4; f4=1/2; f3=1/3; f5=2/3; f6=3/4; f7=5/6; f8=1;

x1=sin(2pif1t); x2=sin(2pif2t); x3=sin(2pif3t);
x4=sin(2
pif4t); x5=sin(2pif5t); x6=sin(2pif6t);
x7=sin(2pif7t); x8=sin(2pif8t);
subplot(811); stem(t,x1); grid on;
subplot(812); stem(t,x2); grid on;
subplot(813); stem(t,x3); grid on;
subplot(814); stem(t,x4); grid on;
subplot(815); stem(t,x5); grid on;
subplot(816); stem(t,x6); grid on;
subplot(817); stem(t,x7); grid on;
subplot(818); stem(t,x8); grid on;
xlabel('Time'); ylabel('Amplitude');
figure;
f11=-1/6; f22=-1/4; f33=-1/3; f44=-1/2; f55=-2/3; f66=-3/4; f77=-5/6; f88=-1;
x11=sin(2pif11t); x22=sin(2pif22t); x33=sin(2pif33t);
x44=sin(2
pif44t);x55=sin(2pif55t); x66=sin(2pif66t);
x77=sin(2pif77t); x88=sin(2pif88t);
subplot(811); stem(t,x11); grid on;
subplot(812); stem(t,x22); grid on;
subplot(813); stem(t,x33); grid on;
subplot(814); stem(t,x44); grid on;
subplot(815); stem(t,x55); grid on;
subplot(816); stem(t,x66); grid on;
subplot(817); stem(t,x77); grid on;
subplot(818); stem(t,x88); grid on;
xlabel('Time'); ylabel('Amplitude');[/CODE]

Is That How it should be done......I am not sure

[B][U][COLOR="Red"]n=pi[/COLOR][/U][/B]

"To verify that discrete sinusoidal and complex exponential signals have distinct frequency only in an interval of length 2π. Furthermore you have to verify that the frequency of discrete sinusoidal signal increases as we move from 0 to π and decreases when we move from π to 2π. You have to determine the period of various discrete sinusoidal signals as well."

This is the statement for the project.....Please help me understand.

Urgently required<<

Thanks

Yeah Ok mate, thanks for your time.

Happy thread solving

I have attached the PSD please download to see it.

Thanks

usman

the size is

Width:136
Height:160

If I send you the PSD can you do it or can you tell me how to cuz I have tried every thing and nothing seems to get working for me.

Hi

Sambeet if I send PSD to you can you do it??

I need immediate help please

I have made a logo and client wants it in different formats. One of them is .gif(transparent) Logo contains Gradient as well when i convert it into transparent .gif the gradient disappears.

In attachments you can see the jpeg file which is OK but .gif is not fine. Need urgent help please. I have to send tomorrow and must finish it by now.

Thanks

I need immediate help please

I have made a logo and client wants it in different formats. One of them is .gif(transparent) Logo contains Gradient as well when i convert it into transparent .gif the gradient disappears.

Need urgent help please.

Thanks

I really appriciate you(n1337) for taking out your time...Thankyou very much...you tried to help me alot

[ICODE]#include
using namespace std;

void prob(float,float,int,int);

void main()
{
int dataset;
cout<<"Enter how many data sets you want to enter"<<endl;
cin>>dataset;
float Pa=new float[dataset]; //Pa probability of A to win the match
float
Pb=new float[dataset]; //Pb probability of B to win the match
int K,L; //now they are not float

for(int i=0; i<dataset; i++)    //loop to input dataset and service chances
{   
    cout<<"Enter values"<<endl;
    cin>>*(Pa+i)>>*(Pb+i)>>K>>L;//when dataset more than two it wont overwrite the values   

}
prob(*Pa,*Pb,K,L);          //function call

}
void prob(float Pa,float Pb,int K,int L)
{
float sum=0;
float temp=1;

if(Pa>Pb)   //if Team A services first
{                                   
    for(int i=0; i<K; i++)  //outerloop for number of games
    {   
        for(int j=0; j<L+1; j++)//inner loop for number of rounds
        {
        temp=temp*((Pa/100)/2); //if A serves first it  has half chances of winning game so if Pa is 100% it would be 0.5 in this case we add 0.5 while moving through each loop. Thats the place where i need help, because it don't involves team B, which is probably wrong ofcource.
        sum=sum+temp; //ofcource we add result round by round
        }
        sum=sum*100;
        cout<<sum<<endl;
    }
}

if(Pb>Pa)                   //if Team B services first
{
    for(int i=0; i<K; i++)      //outerloop for number of games
    {
        for(int j=0; j<L; j++)  //inner loop for number of rounds
        {
        temp=temp*((Pb/100)/2);//if B serves first it has half chances of winning game so if Pb is 100% it would be 0.5 in this case we add 0.5 while moving through each loop. Thats the place where i need help, because it don't involves ...

You are giving me the bad impression!!!....can any one help!!! this is nto a solved thread!!!....no replies since two days...Plz help I've asked question...somebody plz...

Is there anyone who could guide me???

[code]
void prob(float Pa,float Pb,float K,float L)
{
float sum=0;
float temp=1;
if(Pa>Pb)
{
for(int i=0; i<K; i++)
{
for(int j=0; j<L; j++)
{
temp=temp(Pa/100)/2;
sum=sum+temp;
}
cout<<sum
100;
}
}

} [/code]

does that implement the 'A' part. As i have to calculate probability only for A. plz reply as soon as (anyone of you) can, im running short of time.

[ICODE]void main()
{
int dataset;
cout<<"Enter how many data sets you want to enter"<<endl;
cin>>dataset;
float Pa=new float[dataset];
float
Pb=new float[dataset];
float K=new float[dataset];
float
L=new float[dataset];

for(int i=0; i<dataset; i++)
{   
    cout<<"Enter values"<<endl;
    cin>>*(Pa+i)>>*(Pb+i)>>*(K+i)>>*(L+i);  
}
prob(*Pa,*Pb,*K,*L);

}[/ICODE]

Is that the right input?? or does it creats any problems!!!

I thought that was not the problem but another one arised!!!....Well according to the question I have I have to enter the number of data sets and the required fields. The loops worked right the way i was taking input!! but the problem was in the final output!!...can you resolve??? or anyone???

[code=cplusplus]

include

using namespace std;
void prob(float,float,float,float);

void main()
{
int dataset;
float Pa,Pb,K,L;

cout<<"Enter how many data sets you want to enter"<<endl;
cin>>dataset;

for(int i=0; i<dataset; i++)
{   
    cout<<"Enter values"<<endl;
    cin>>Pa>>Pb>>K>>L;  
}
prob(Pa,Pb,K,L);

}

void prob(float Pa,float Pb,float K,float L)
{
float sum=0;
float temp,temp1=1;

if(Pa>Pb)
{
    temp=(Pa/100)/2;
}
else 
{
    temp=(Pb/100)/2;
}
for(int j=0; j<K; j++)
{
    for(int k=0; k<L; k++)
    {
        temp1=temp1*temp;   
        sum=sum+temp1;
    }   

}
sum=sum*100;
cout<<sum;

}
[/code]
Thats All I could have done up till now!! according to you n1333. But it solves the problem for Pa=100,Pb=1,K=1,L=4 out put is 93.75
it sholud print this output when L=3. Thankyou.

Plz Its hard for me i've already mentioned Im just a beginner and i 've been trying on this problem for so long, but i've failed. I really need that solved. Plz if you have time can you tell me how can I solve or can you do it as a favour??? I will be very thankfull to you!!! our current course is just for beginners whose main focus is on the syntax and code implementation at medium level, logic is no the part of my course yet. Plz can you help me with that??.. I have to submit it before 15th may and I really don't understand the problem uptill now....Plz if you have time can you do it,......

One thing was confusing that you did took out the required result, How does it relate to the input Pa,Pb,K,L??? Pa is entered in percent and we have to reduce it to simple as Pa/100, and Pb/100; explain me your output while using the input that is Pa=100,Pb=50,K=1,L=3;

K and L surely are used in loops for repetetions and Pa as you explained but how Pb acts?,

Thank you for the info that you provied me with!!!

OK Im, Sorry i've posted it in the right thread!!!

Thanx alot but can you help me with that??

it says two teams A & B have to play a match, and we have to find probability of team A. I can't understand the way to calculate its percentage. The main points are:

1) the match is played by two teams: A and B;

2) the first team to win K games in a match, wins the match;

3) each game consists of rounds; each round is won by one of the teams, and the team adds one point to its score for the current game;

4) the first team to win L points in a game, wins the game;

5) if team A serves the ball in a round, it has Pa% chance to win the round (and (100-Pa)% to loose it);

6) if team B serves the ball in a round, it has Pb% chance to win the round (and (100-Pb)% to loose it);

7) if a round is not the first in a game, the ball in the round is served by the team that won the last round;

8) if a game is not the first in a match, the ball in the first round of the game is served by the team that did not served the ball in the first round of the previous game;

9) both teams have an equal chance to serve the ball in the first round of the very first game of a match.

Sample Input

2 \data sets
100 50 1 3\values for Pa,Pb,K,L
100 1 1 1\same ...

Recently, there was an international volleyball championship. Speaking of volleyball, we are interested in the probability of winning of one or another team, if we know some information about the teams. Here are the rules of the game and the necessary information:

the match is played by two teams: A and B;

the first team to win K games in a match, wins the match;

each game consists of rounds; each round is won by one of the teams, and the team adds one point to its score for the current game;

the first team to win L points in a game, wins the game;

if team A serves the ball in a round, it has Pa% chance to win the round (and (100-Pa)% to loose it);

if team B serves the ball in a round, it has Pb% chance to win the round (and (100-Pb)% to loose it);

if a round is not the first in a game, the ball in the round is served by the team that won the last round;

if a game is not the first in a match, the ball in the first round of the game is served by the team that did not served the ball in the first round of the previous game;

both teams have an equal chance to serve the ball in the first round of the very first game of a match.

So, for given values of Pa, Pb, K, and L, you have to compute the probability, ...