The document contains code snippets for several C++ programs that perform calculations related to arithmetic, finance, and currency conversion. The programs include:
1. A menu-driven program that allows the user to select an arithmetic operation like calculating the nth term, sum of n terms, arithmetic mean, etc. and performs the calculation.
2. A program that calculates the power of a number to a given exponent.
3. A quiz program that asks the user multiple choice questions and calculates their score.
4. Additional code snippets calculate compound interest, quotient and remainder, powers of a number, currency conversion rates and solar energy calculation.
The process of creating HDTR images from the photographic shot to the processing via a Photoshop JS script explained.
This is the slide I used for my talk at the monthly MadridJS meeting held on May, 23rd 2013.
Talking Heads - writing an API does not need to be a "psycho killer"Theo van Hoesel
In a world where things get more and more connected to services there is a dire need to understand the principals off HTTP protocols. It is simply not enough to 'just return' some data and expect the the client knows what to do.
Proper clients, wether it is a 'thing' or 'software' can intelligently communicate with servers. And servers should take the responsibility to give clear answers.... or let the client know that it is not fully clear what the client requested.
This talk is a brief overview on how client and server communicate with each other concerning caching, content-negociation and the methods provided. Its all about what is going on inside the HEADs when client and server are TALKING http.
Then there is Web::Machine, based on Basho's work. It brings structure in the whole decision tree of what is happening with all the Request Header Fileds. A nice work from, but arguably, it has some weak spots.
And of course a great new module for Dancer2 will be introduced: Dancer2::Plugin::HTTP::Auth::Extensible, the first of a series that will make life easy when developing REST api's with Dancer
The process of creating HDTR images from the photographic shot to the processing via a Photoshop JS script explained.
This is the slide I used for my talk at the monthly MadridJS meeting held on May, 23rd 2013.
Talking Heads - writing an API does not need to be a "psycho killer"Theo van Hoesel
In a world where things get more and more connected to services there is a dire need to understand the principals off HTTP protocols. It is simply not enough to 'just return' some data and expect the the client knows what to do.
Proper clients, wether it is a 'thing' or 'software' can intelligently communicate with servers. And servers should take the responsibility to give clear answers.... or let the client know that it is not fully clear what the client requested.
This talk is a brief overview on how client and server communicate with each other concerning caching, content-negociation and the methods provided. Its all about what is going on inside the HEADs when client and server are TALKING http.
Then there is Web::Machine, based on Basho's work. It brings structure in the whole decision tree of what is happening with all the Request Header Fileds. A nice work from, but arguably, it has some weak spots.
And of course a great new module for Dancer2 will be introduced: Dancer2::Plugin::HTTP::Auth::Extensible, the first of a series that will make life easy when developing REST api's with Dancer
Hi friends these array series presentation gives you clear cut knowledge in array in c++ programming, array in c++ tutorial, array in c++ syntax, array in c++ example
in this presentation i will explain you about Statements & block, If Else, ElseI f, Switch, While Loop, For loop, Do while loop, Break & continue in c++
Hi friends these array series presentation gives you clear cut knowledge in array in c++ programming, array in c++ tutorial, array in c++ syntax, array in c++ example
in this presentation i will explain you about Statements & block, If Else, ElseI f, Switch, While Loop, For loop, Do while loop, Break & continue in c++
El siguiente programa muestra la utilización de los casos (función case) en C++, formando menú dentro de otro menú, en la estructura del programa, cuenta con un menú de 5 funciones:
1: Calculo de un circuito serie.
2: Calculo de un circuito paralelo
3: Calculo de código de colores de resistencias.
4: Calculo de código de valores de los capacitores.
5: Salir
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
3. S. No. To Find Given
1. nth term
When
first term, common
difference,value of n
Is Given
2. Sum of n terms
3. Arithematic
Mean
enter first term,
common
difference,value of n
4. n if nth term is
given
enter first term,
common difference,
Enter nth term
5. n if sum of n
term is given
enter first term,
common difference,
sum of n terms
4. Code#include<iostream.h>
#include<conio.h>
#include<math.h>
int main()
{
clrscr();
int ch;
float a,nth,n,d,s,AM,i,j;
cout<<"n";
cout <<"Choice Menu"<<"n";
cout<<"n";
cout<<"1. nth term"<<"n";
cout<<"2. Sum of n terms"<<"n";
cout<<"3. Arithematic Mean"<<"n";
cout<<"4. n if nth term is given"<<"n";
cout<<"5. n if sum of n term is given"<<"n";
cin>>ch;
switch(ch)
{
case 1 : cout<<"enter first term, common difference,value of n";
cin>>a>>d>>n;
nth = a + (n-1)*d;
cout<<"the nth term is"<<nth<<"n";
break;
case 2 : cout<<"enter first term, common difference,value of
n";
cin>>a>>d>>n;
s = n/2*((a+a) +(n -1))*d;
cout<<"the sum is "<<s;
break;
case 3 : cout<<"enter first term, common diff.,value of n";
cin>>a>>d>>n;
nth = a + (n-1)*d;
AM = (a + nth)/2;
cout<<"the AM is"<<nth<<"n";
break;
case 4 : cout<<"enter first term, common difference, Enter nth
term";
cin>>a>>d>>nth;
n = (nth - a + d)/d;
cout<<"the value of n is " <<n;
break;
case 5 : float b,c,e,f,g,h,i,m;
cout<<"enter first term, common difference, Enter sum of n
term";
cin>>a>>d>>s;
h= (d -(2*a));
b =(-((2*a)- d));
c = pow(h,2.0);
e = (8*d*s);
g =(c+e);
f =sqrt(g);
n =(b + f)/2*d ;
i =(b - f)/2*d ;
if (i < 0)
cout<<"the value of n is " <<n;
else
cout<<"the value of n is " <<n<<"or"<<m;
break;
}
getch ();
return 0;
5. The resultant value when a number is given with
the power to which it has to be raised for any
given number
For Eg :- 5 raise to 3 is 125
8. € Code
#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int IQ, ch1,ch2, ch3, ch4;
int pnt = 0;
cout<<"Qs.1)In how many ways cane we rename a file
"<<"n";
cout<<"1.1 way "<<"n";
cout<<"2.3 ways "<<"n";
cout<<"3.5 ways "<<"n";
cout<<"4.Can't say ";
cin>>ch1;
if (ch1==2)
{
pnt =(pnt + 3);
cout<<"correct Answer.............";
}
else
cout<<"wrong Answer...............";
cout<<"n";
cout<<"Qs. 2) fullstop is a valid character for filename in
Win Xp. What about its validity in Win 7 "<<"n";
cout<<"1.Valid "<<"n";
cout<<"2.Unvalid "<<"n";
cin>>ch2;
if (ch2==2)
{
pnt =(pnt + 3);
cout<<"correct Answer..............";
}
else
cout<<"wrong Answer................";
cout <<pnt;
cout<<"n";
cout<<"Qs.3)The inventing country of supercomputer PACE
is "<<"n";
cout<<"1.India "<<"n";
cout<<"2.China "<<"n";
cout<<"3.Japan "<<"n";
cin>>ch3;
if (ch3==1)
{
pnt =(pnt + 3);
cout<<"correct Answer.............";
}
else
cout<<"wrong Answer...............";
cout<<"n";
9. cout<<"Qs.4)Uninitialized variable will give as outputcout<<"Qs.4)Uninitialized variable will give as output
"<<"n";"<<"n";
cout<<"1.Garbage Value "<<"n";cout<<"1.Garbage Value "<<"n";
cout<<"2.zero "<<"n";cout<<"2.zero "<<"n";
cout<<"3.No output "<<"n";cout<<"3.No output "<<"n";
cin>>ch4;cin>>ch4;
if (ch4==1)if (ch4==1)
{{
pnt =(pnt + 3);pnt =(pnt + 3);
cout<<"correct Answer.............";cout<<"correct Answer.............";
}}
elseelse
cout<<"wrong Answer...............";cout<<"wrong Answer...............";
cout<<"n";cout<<"n";
IQ = pnt/3;IQ = pnt/3;
cout<<"please Wait"<<"n";cout<<"please Wait"<<"n";
cout<<"Generating Result"<<"n";cout<<"Generating Result"<<"n";
cout<< "you Answered "<<IQ<<" question correctly";cout<< "you Answered "<<IQ<<" question correctly";
cout<<" your score is:- "<< pnt;cout<<" your score is:- "<< pnt;
getch();getch();
return 0;return 0;
}}
€ Code continued
10. To determine whether the area of the given
rectangle is greater then it’s perimeter or not
11. Code
#include<iostream.h>#include<iostream.h>
#include<conio.h>#include<conio.h>
int main ()int main ()
{{
clrscr();clrscr();
float l,b, p, a;float l,b, p, a;
cout<<"enter length, bredth of the rectangle";cout<<"enter length, bredth of the rectangle";
cin>>l>>b;cin>>l>>b;
p = 2* (l +b);p = 2* (l +b);
a = l*b;a = l*b;
if (a >p)if (a >p)
cout <<"the area is greater then the permeter"<<"n";cout <<"the area is greater then the permeter"<<"n";
elseelse
cout<<"the area is smaller then the perimeter"<<"n";cout<<"the area is smaller then the perimeter"<<"n";
cout<<"perimeter :-"<<p<<"n";cout<<"perimeter :-"<<p<<"n";
cout<<"area :-"<<a;cout<<"area :-"<<a;
getch();getch();
return 0;return 0;
}}
12. To determine the compound interest on
given amount for a given period and rate
13. Code
#include <iostream.h>#include <iostream.h>
#include<conio.h>#include<conio.h>
#include<math.h>#include<math.h>
int main()int main()
{{
clrscr();clrscr();
float P,R,N,A,H,B;float P,R,N,A,H,B;
cout<<"Enter Principle Amount: ";cout<<"Enter Principle Amount: ";
cin>> P;cin>> P;
cout<<"Enter Rate of Interest: ";cout<<"Enter Rate of Interest: ";
cin>> R;cin>> R;
cout<<"Enter Time Period (in years): ";cout<<"Enter Time Period (in years): ";
cin>>N;cin>>N;
H = (1 + R/100);H = (1 + R/100);
B = pow (H,N);B = pow (H,N);
A = (P*B);A = (P*B);
cout<<"Principle Amout Rs."<<P<<"n";cout<<"Principle Amout Rs."<<P<<"n";
cout<<"Rate of Interest "<<R<<" %"<<"n";cout<<"Rate of Interest "<<R<<" %"<<"n";
cout<<"Time Period "<<N<<" years"<<"n";cout<<"Time Period "<<N<<" years"<<"n";
cout<<"the compoud interest for the given amount is Rs."<<A;cout<<"the compoud interest for the given amount is Rs."<<A;
getch();getch();
return 0;return 0;
}}
14. To determine the Quotient and RemainderTo determine the Quotient and Remainder
when a given number is divided by anotherwhen a given number is divided by another
given numbergiven number
15. σ CodeCode
#include <iostream.h>#include <iostream.h>
#include<conio.h>#include<conio.h>
int main ()int main ()
{{
clrscr();clrscr();
int a,div,b,num;int a,div,b,num;
cout<<"enter the number to be divided";cout<<"enter the number to be divided";
cin>>num;cin>>num;
cout<<"enter the number by which "<<num<<" has to be divided";cout<<"enter the number by which "<<num<<" has to be divided";
cin>>div;cin>>div;
a = num/div;a = num/div;
b = num%div;b = num%div;
cout<<num<<" divided by "<<div<<" gives "<<"n";cout<<num<<" divided by "<<div<<" gives "<<"n";
cout <<"quotient as "<<a<<"n";cout <<"quotient as "<<a<<"n";
cout <<"remainder as "<<b;cout <<"remainder as "<<b;
getch();getch();
return 0;return 0;
}}
16. To determine the result when a givenTo determine the result when a given
number is raised to all numbers from 1 tonumber is raised to all numbers from 1 to
the given valuethe given value
18. To Know the money present in a
customer’s account at the end of specific
time. Given amount deposited and time
period
19. Code
#include<iostream.h>
#include<conio.h>
#include<math.h>
#include<process.h>
int main ()
{
clrscr();
float amt, rt, A, H, B;
int yrs,ch;
cout<<"enter amount deposited";
cin>>amt;
cout<<"number of years";
cin>>yrs;
cout<<"n";
cout<<"choose most appropriate option about your amonut and time
period"<<"n";
cout<<"1. amout less than 2000, yrs more than 1"<<"n";
cout<<"2. amout between 2000 and 6000,yrs more than or equal to 1 "<<"n";
cout<<"3. amout more than 6000, yrs more than or equal to 1"<<"n";
cout<<"4. yrs more than or equal to 5"<<"n";
cout<<"5. none of the above ";
cin>>ch;
switch(ch)
{
case 1:rt =5;
break;
case 2:rt =7;
break;
case 3:rt =8;
break;
case 4:rt =10;
break;
case 5:rt = 3;
break;
}
H = (1 + rt/100);
B = pow( H, yrs);
A = (amt * B);
cout <<" the C. I for the "<<A;
getch();
return 0;
}
20. To find the entered amount’s value in another
country’s currency
Serial no.Serial no. Amount entered inAmount entered in Resulting amount inResulting amount in
11 INRINR US $US $
22 US $US $ INRINR
33 INRINR EuroEuro
44 EuroEuro INRINR
55 INRINR YenYen
66 YenYen INRINR
21. δ Code
#include<iostream.h>
#include<conio.h>
#include<process.h>
int main()
{
clrscr();
int ch;
float inri, inra, usdi, usda,inrie, inrae,euri,
eura,inriy,inray,yeni,yena;
cout<<"Choose from and to (currency)"<<"n";
cout<<"1.INR to US $"<<"n";
cout<<"2.US $ to INR"<<"n";
cout<<"3.INR to Euro"<<"n";
cout<<"4.Euro to INR"<<"n";
cout<<"5.INR to Yen "<<"n";
cout<<"6.Yen to INR "<<"n";
cin>>ch;
switch(ch)
{
case 1:cout<<"Enter amount in INR(Indian National
Rupee) :-";
cin>>inri;
inra = (inri/53);
cout<<inri<<" rupees are equal to "<<inra<<" US $"<<"n";
break;
case 2:cout<<"Enter amount in US $ (US dollars) :-";
cin>>usdi;
usda = (usdi * 53);
cout<<usdi<<" US $ are equal to "<<usda<<"Indian rupees
"<<"n";
break;
case 3:cout<<"Enter amount in INR(Indian National Rupee) :-";
cin>>inrie;
inrae = (inrie/70);
cout<<inrie<<" rupees are equal to "<<inra<<" Euro's"<<"n";
break;
case 4:cout<<"Enter amount in Euro's :-";
cin>>euri;
eura = (euri * 70);
cout<<euri<<" Euor's are equal to "<<eura<<"Indian rupees
"<<"n";
break;
case 5:cout<<"Enter amount in INR(Indian National Rupee) :-";
cin>>inriy;
inray = (inriy*1.4);
cout<<inriy<<" rupees are equal to "<<inra<<" Yen"<<"n";
break;
case 6:cout<<"Enter amount in Yen's :-";
cin>>yeni;
yena = (yeni/1.4);
cout<<inri<<" Yen are equal to "<<inra<<" Indian rupees"<<"n";
break;
}
getch();
return 0;
}
22. To know the amount of solar energy received
in the given area over a given period of time