This document provides documentation and instructions for running the Acuchem and Acuplot computer programs for modeling chemical reaction systems. It describes:
- The Acuchem and Acuplot programs, with Acuchem modeling chemical reactions and generating an output file, and Acuplot reading that file and displaying the results.
- Hardware requirements including at least 250k of memory, a math coprocessor, and supported graphics adapters.
- How to set up the Acuchem input file including required headings, options, listing the chemical reactions, specifying species and concentrations, and ending the mechanism. Comments can also be included.
Here are the answers to the quiz questions:
1. A flowchart represents an algorithm in graphical symbols. It shows the steps as boxes of various kinds, and their order by connecting them with arrows.
2. On-page connector
3. Sequence - Steps executed in order one after the other.
4. Selection (Binary) - Used to represent operations where there are two possible selections based on a condition being true or false.
5. Repetition - Allows a portion of the algorithm to be repeated as long as a condition is met. It has two variants: pre-test and post-test.
This document provides information on PL/SQL programming language concepts including:
- PL/SQL allows defining logic using variables, conditional statements, loops, and object-oriented programming.
- Code is organized into blocks with declaration, executable, and exception sections.
- Variables can be declared and assigned values. Data types include numbers, strings, records, and collections.
- Conditional statements like IF-THEN-ELSE and CASE support different execution paths.
- Loops like simple, while, and for are used to iterate.
- Cursors access and process multiple database records in PL/SQL blocks.
1. Students are instructed to complete a lab assignment involving template functions and classes. They are to generalize an existing trapezoidal rule function to work with any user-defined function, and generalize a matrix class to work with any arithmetic type as a template parameter.
2. For the trapezoidal rule function, students are asked to add a fourth argument to pass a function object, then make the function a template to accept any function type. They must test it by defining object functions for unit circle, line, trigonometric, and bilinear functions.
3. For the matrix class, students are to make it a template class that accepts any number type by modifying the class declaration and implementation files. They
This document discusses buffer overflow attacks and how they work at exploiting vulnerabilities in programs. It begins by providing background on buffer overflow attacks and their significance in computer security history. It then describes how a program's memory is laid out, including the stack, heap, and other segments. The key aspect of buffer overflows discussed is how overflowing buffers stored on the stack can overwrite adjacent memory areas like return addresses, allowing an attacker to hijack program execution by supplying malicious input that overwrites a return address with the memory address of attacker-supplied exploit code.
The document discusses MATLAB files and functions. It describes that:
1) Functions and scripts are stored in .m files. The MATLAB workspace can be saved in .mat files for easy loading and efficient access. Plots can be saved in .fig files.
2) Scripts contain commands that run when the file is run. Functions have their own variables, accept inputs, and return outputs.
3) Comments start with % and help document code. Control flow includes conditional (if/else) and loop (for/while) statements. Functions terminate with return.
A parser breaks down input into smaller elements for translation into another language. It takes a sequence of tokens as input and builds a parse tree or abstract syntax tree. In the compiler model, the parser verifies that the token string can be generated by the grammar and returns any syntax errors. There are two main types of parsers: top-down parsers start at the root and fill in the tree, while bottom-up parsers start at the leaves and work upwards. Syntax directed definitions associate attributes with grammar symbols and specify attribute values with semantic rules for each production.
College for women department of information science AMMY30
This document provides instructions for Assignment 1 in the COMP1231 Web Programming course. It outlines 10 functions that students must implement in a JavaScript file. Each function solves a unique problem, like calculating change, converting between miles and kilometers, or reversing an array. Students will create a functions.js file with the 10 functions and a main.html file that includes and calls the functions.js file. Students must submit both files to the specified folder before the due date. Plagiarism detection software will be used to check for copied code.
"SkyPat" is a C++ performance analyzing and testing framework on Android and Linux platforms. It combines perf_events and unit tests together and gives programmers the power of fine-grained performance analysis via writing typical test cases.
by Peter Chang
Here are the answers to the quiz questions:
1. A flowchart represents an algorithm in graphical symbols. It shows the steps as boxes of various kinds, and their order by connecting them with arrows.
2. On-page connector
3. Sequence - Steps executed in order one after the other.
4. Selection (Binary) - Used to represent operations where there are two possible selections based on a condition being true or false.
5. Repetition - Allows a portion of the algorithm to be repeated as long as a condition is met. It has two variants: pre-test and post-test.
This document provides information on PL/SQL programming language concepts including:
- PL/SQL allows defining logic using variables, conditional statements, loops, and object-oriented programming.
- Code is organized into blocks with declaration, executable, and exception sections.
- Variables can be declared and assigned values. Data types include numbers, strings, records, and collections.
- Conditional statements like IF-THEN-ELSE and CASE support different execution paths.
- Loops like simple, while, and for are used to iterate.
- Cursors access and process multiple database records in PL/SQL blocks.
1. Students are instructed to complete a lab assignment involving template functions and classes. They are to generalize an existing trapezoidal rule function to work with any user-defined function, and generalize a matrix class to work with any arithmetic type as a template parameter.
2. For the trapezoidal rule function, students are asked to add a fourth argument to pass a function object, then make the function a template to accept any function type. They must test it by defining object functions for unit circle, line, trigonometric, and bilinear functions.
3. For the matrix class, students are to make it a template class that accepts any number type by modifying the class declaration and implementation files. They
This document discusses buffer overflow attacks and how they work at exploiting vulnerabilities in programs. It begins by providing background on buffer overflow attacks and their significance in computer security history. It then describes how a program's memory is laid out, including the stack, heap, and other segments. The key aspect of buffer overflows discussed is how overflowing buffers stored on the stack can overwrite adjacent memory areas like return addresses, allowing an attacker to hijack program execution by supplying malicious input that overwrites a return address with the memory address of attacker-supplied exploit code.
The document discusses MATLAB files and functions. It describes that:
1) Functions and scripts are stored in .m files. The MATLAB workspace can be saved in .mat files for easy loading and efficient access. Plots can be saved in .fig files.
2) Scripts contain commands that run when the file is run. Functions have their own variables, accept inputs, and return outputs.
3) Comments start with % and help document code. Control flow includes conditional (if/else) and loop (for/while) statements. Functions terminate with return.
A parser breaks down input into smaller elements for translation into another language. It takes a sequence of tokens as input and builds a parse tree or abstract syntax tree. In the compiler model, the parser verifies that the token string can be generated by the grammar and returns any syntax errors. There are two main types of parsers: top-down parsers start at the root and fill in the tree, while bottom-up parsers start at the leaves and work upwards. Syntax directed definitions associate attributes with grammar symbols and specify attribute values with semantic rules for each production.
College for women department of information science AMMY30
This document provides instructions for Assignment 1 in the COMP1231 Web Programming course. It outlines 10 functions that students must implement in a JavaScript file. Each function solves a unique problem, like calculating change, converting between miles and kilometers, or reversing an array. Students will create a functions.js file with the 10 functions and a main.html file that includes and calls the functions.js file. Students must submit both files to the specified folder before the due date. Plagiarism detection software will be used to check for copied code.
"SkyPat" is a C++ performance analyzing and testing framework on Android and Linux platforms. It combines perf_events and unit tests together and gives programmers the power of fine-grained performance analysis via writing typical test cases.
by Peter Chang
This document outlines various email notifications that will be sent from the TEE website. It includes 4 types of emails:
1. A registration confirmation email sent after user signs up to verify their account.
2. A welcome email sent after account verification with login details and instructions to complete their profile.
3. A password reset request email sent when a user clicks the forgot password link.
4. A password reset confirmation email sent after a user successfully changes their password.
The emails provide information about account activation, login credentials, profile completion instructions, and notifications about password resets.
The document provides suggestions for improving the visual design and color scheme of a website. It suggests adjusting the colors used for menus, buttons, backgrounds, headings, and other elements to make the site more visually appealing and consistent. Specific alternative color codes are proposed for many elements. It also recommends reviewing the formatting and layout of sections like forums, events, and member invites. The goal is to enhance the user experience and readability of the site through better color combinations and interface organization.
The document discusses suggestions for improving the user interface and design of a website. Some key points addressed include:
- Changing the primary blue color to be less bright
- Adjusting menu hover styles and using lighter colors for headers and backgrounds
- Differentiating buttons and login options with varied colors
- Standardizing formatting for things like page headers, footers, and popular content blocks
- Enhancing forms and pages for events, forums, messaging, and more to have clearer layouts
The responses indicate openness to the ideas but also provide alternative options or considerations in some cases to refine the recommendations. Overall, the goal is to create a more visually cohesive, readable, and user-friendly design across
The document discusses various business management systems like HRMS, SDMS, MPPC, and ABS. It then provides two case studies and outlines approaches to analyze the case studies. The first case study is about a cosmetics company expanding sales through telemarketing. The document suggests CRM and SDMS business processes and lists input documents and reports. The second case discusses a distillation plant procuring supplies and suggests order processing under SDMS and MPPC with relevant inputs and outputs.
PayPal was founded in 1998 as Confinity and launched its payments system in 1999 before being acquired by eBay in 2002. It has since grown to become a global leader in digital payments, processing over $200 billion in payments in 2020. PayPal allows for payments and money transfers online or via a mobile app. It has over 400 million active accounts globally and continues to expand its services for merchants and consumers.
The document discusses problems facing engineering colleges in India, including low enrollment, high numbers of vacant seats, and poor skills and ineffective communication. It proposes solutions like implementing feedback mechanisms, developing online study materials and placement management systems, and providing counseling to help students. The document calls on the engineering community to come together and help empower colleges through operational efficiency, transparency, collaboration, and developing students into 21st century professionals.
PowerPoint can be used to create fun and effective presentations. It offers design templates, formatting options, and multimedia functions to enhance creativity. Additionally, PowerPoint allows users to build spreadsheets, create graphs, draw or import graphics, demonstrating that it is not just a fun program but a powerful tool for visual communication and data presentation. The document encourages readers to start using PowerPoint's features to design their own presentations.
This admission form collects information about a child applying for pre-school. It requests details such as the child's name, address, date of birth, medical information, and adults responsible for the child. The form also collects emergency contact information, details about siblings, ethnic and language background, and a declaration authorizing the pre-school to use the information.
The document provides an overview of human resource management systems (HRMS) and their importance for growing companies. It discusses various HR functions like recruitment, employee appraisal, training, and leave/payroll management. It presents a case study of a company that expands and needs to recruit more employees, highlighting the recruitment process and documents required. Key topics covered include the recruitment cycle and sources, performance appraisal methods, training objectives and approaches, and using an HRMS to manage employee data and skills for internal transfers.
Here are the key points about how neural networks compute:
- Each unit receives weighted inputs from other units plus a bias value
- The weighted inputs and bias are summed to produce the net input
- The net input passes through an activation function to produce the unit's final activation value
- This process is repeated for each unit in the network to compute the overall output
- Networks learn by adjusting the weights and biases to minimize error on training examples
So in summary, neural networks perform computations by propagating inputs through weighted connections and nonlinear activation functions across interconnected units. The weights and biases are tuned during training to solve problems.
1) The document details the various email notifications that will be sent to users from the TEE site based on different user activities and events.
2) It provides examples of the content and wording of 13 different types of emails that would be triggered, such as notifications for new user registration, password resets, new private messages, moderated content, and more.
3) The emails are designed to keep users informed of account activity and engaged with the TEE platform through links back to the site for things like verifying accounts, viewing updates, and exploring new features.
CollEDGE is a SaaS based Student Relationship & Placement Management system. It streamlines processes, tracks progress, saves time & increases effectiveness in employability.
It's a roadmap for colleges, corporates & students towards efficient processes & simpler academic life.
This document provides an overview of a presentation on writing effective policies and procedures. The presentation will cover principles of writing policies and procedures, qualifying as a policies and procedures writer, and an 18-step action plan for creating an effective framework. It will also discuss elements of a policies and procedures system, selecting writers, and methods for quickly developing content. The presenter has over 34 years of experience in project management and has authored several books on policies and procedures.
The document discusses various topics related to banking, including:
1) The basics of saving bank accounts, including how to open one and required documents like photos and proof of address.
2) Common transactions like deposits and withdrawals that can be done on saving accounts.
3) Other banking services like cheques, ATMs, internet banking, and biometric security devices.
4) The advantages of these technologies like convenient 24/7 access to funds for ATMs and increased security for biometrics.
This document introduces ExtraAEdge.com, an integrated academic platform established with the mission to empower Indian students and guide them in making career decisions. The platform aims to build an online learning community through discussion forums, sharing of academic resources, and facilitating networking between students, alumni, faculty, colleges and corporations. It proposes tracking students' online and offline performances to generate an "ExtraAEdge score" that can help recruiters understand a student's complete potential. The platform seeks to benefit all stakeholders in the education ecosystem by facilitating communication, industry collaboration, placement activities and sharing of information.
This document provides documentation and a sample input file for running the Acuchem and Acuplot computer programs. Acuchem models chemical reaction systems and outputs a file that can be read by Acuplot to display the results. The input file format and requirements are described, including specifying reactions, species, concentrations, and run options. Comments can be added to the input file using semicolons. The programs run on IBM PC computers and require a math coprocessor.
This document provides documentation and a sample input file for running the Acuchem and Acuplot computer programs. Acuchem models chemical reaction systems and outputs a file that can be read by Acuplot to display the results. The input file specifies the reaction mechanisms, species concentrations, run options, and other parameters required by Acuchem. Comments are indicated with semicolons and the file provides details on setting up the various sections of a valid input file, including reaction mechanisms, species identification, and run options.
This document provides documentation and instructions for running the Acuchem and Acuplot computer programs, which model complex chemical reaction systems. It summarizes that Acuchem reads an input file describing reaction mechanisms and generates an output file of species concentrations over time. Acuplot then reads this output file and displays the results in either tabular or graphical form. The document provides details on setting up the Acuchem input file with identification lines, options, and specifying the reaction mechanisms and rates.
The document describes two computer programs, Acuchem and Acuplot, that model chemical reaction systems. Acuchem reads an input file specifying a reaction mechanism and initial species concentrations. It then solves the system of differential equations and outputs species concentrations over time. Acuplot takes Acuchem's output file and displays the results in tabular or graphical form. The document provides details on setting up the Acuchem input file, including the required file structure and formatting of reaction and species data.
The document describes two computer programs, Acuchem and Acuplot, that model chemical reaction systems. Acuchem solves systems of differential equations to model chemical reactions over time. It outputs a file that can be read by Acuplot, which displays the concentration data graphically or in tables. The document provides instructions on setting up an input file for Acuchem, including how to specify reaction mechanisms, options, and other required data fields. It also lists hardware requirements to run the programs.
The document discusses procedures and recursion in machine level programming. It describes how procedures use stack frames to pass arguments, save registers, and allocate local variables. Stack frames contain saved registers, arguments, local variables, and return addresses. Calling a procedure involves pushing this information onto the stack. Returning involves popping this information off the stack. Recursive procedures work because each call has its own private stack frame that does not interfere with other calls.
This document outlines various email notifications that will be sent from the TEE website. It includes 4 types of emails:
1. A registration confirmation email sent after user signs up to verify their account.
2. A welcome email sent after account verification with login details and instructions to complete their profile.
3. A password reset request email sent when a user clicks the forgot password link.
4. A password reset confirmation email sent after a user successfully changes their password.
The emails provide information about account activation, login credentials, profile completion instructions, and notifications about password resets.
The document provides suggestions for improving the visual design and color scheme of a website. It suggests adjusting the colors used for menus, buttons, backgrounds, headings, and other elements to make the site more visually appealing and consistent. Specific alternative color codes are proposed for many elements. It also recommends reviewing the formatting and layout of sections like forums, events, and member invites. The goal is to enhance the user experience and readability of the site through better color combinations and interface organization.
The document discusses suggestions for improving the user interface and design of a website. Some key points addressed include:
- Changing the primary blue color to be less bright
- Adjusting menu hover styles and using lighter colors for headers and backgrounds
- Differentiating buttons and login options with varied colors
- Standardizing formatting for things like page headers, footers, and popular content blocks
- Enhancing forms and pages for events, forums, messaging, and more to have clearer layouts
The responses indicate openness to the ideas but also provide alternative options or considerations in some cases to refine the recommendations. Overall, the goal is to create a more visually cohesive, readable, and user-friendly design across
The document discusses various business management systems like HRMS, SDMS, MPPC, and ABS. It then provides two case studies and outlines approaches to analyze the case studies. The first case study is about a cosmetics company expanding sales through telemarketing. The document suggests CRM and SDMS business processes and lists input documents and reports. The second case discusses a distillation plant procuring supplies and suggests order processing under SDMS and MPPC with relevant inputs and outputs.
PayPal was founded in 1998 as Confinity and launched its payments system in 1999 before being acquired by eBay in 2002. It has since grown to become a global leader in digital payments, processing over $200 billion in payments in 2020. PayPal allows for payments and money transfers online or via a mobile app. It has over 400 million active accounts globally and continues to expand its services for merchants and consumers.
The document discusses problems facing engineering colleges in India, including low enrollment, high numbers of vacant seats, and poor skills and ineffective communication. It proposes solutions like implementing feedback mechanisms, developing online study materials and placement management systems, and providing counseling to help students. The document calls on the engineering community to come together and help empower colleges through operational efficiency, transparency, collaboration, and developing students into 21st century professionals.
PowerPoint can be used to create fun and effective presentations. It offers design templates, formatting options, and multimedia functions to enhance creativity. Additionally, PowerPoint allows users to build spreadsheets, create graphs, draw or import graphics, demonstrating that it is not just a fun program but a powerful tool for visual communication and data presentation. The document encourages readers to start using PowerPoint's features to design their own presentations.
This admission form collects information about a child applying for pre-school. It requests details such as the child's name, address, date of birth, medical information, and adults responsible for the child. The form also collects emergency contact information, details about siblings, ethnic and language background, and a declaration authorizing the pre-school to use the information.
The document provides an overview of human resource management systems (HRMS) and their importance for growing companies. It discusses various HR functions like recruitment, employee appraisal, training, and leave/payroll management. It presents a case study of a company that expands and needs to recruit more employees, highlighting the recruitment process and documents required. Key topics covered include the recruitment cycle and sources, performance appraisal methods, training objectives and approaches, and using an HRMS to manage employee data and skills for internal transfers.
Here are the key points about how neural networks compute:
- Each unit receives weighted inputs from other units plus a bias value
- The weighted inputs and bias are summed to produce the net input
- The net input passes through an activation function to produce the unit's final activation value
- This process is repeated for each unit in the network to compute the overall output
- Networks learn by adjusting the weights and biases to minimize error on training examples
So in summary, neural networks perform computations by propagating inputs through weighted connections and nonlinear activation functions across interconnected units. The weights and biases are tuned during training to solve problems.
1) The document details the various email notifications that will be sent to users from the TEE site based on different user activities and events.
2) It provides examples of the content and wording of 13 different types of emails that would be triggered, such as notifications for new user registration, password resets, new private messages, moderated content, and more.
3) The emails are designed to keep users informed of account activity and engaged with the TEE platform through links back to the site for things like verifying accounts, viewing updates, and exploring new features.
CollEDGE is a SaaS based Student Relationship & Placement Management system. It streamlines processes, tracks progress, saves time & increases effectiveness in employability.
It's a roadmap for colleges, corporates & students towards efficient processes & simpler academic life.
This document provides an overview of a presentation on writing effective policies and procedures. The presentation will cover principles of writing policies and procedures, qualifying as a policies and procedures writer, and an 18-step action plan for creating an effective framework. It will also discuss elements of a policies and procedures system, selecting writers, and methods for quickly developing content. The presenter has over 34 years of experience in project management and has authored several books on policies and procedures.
The document discusses various topics related to banking, including:
1) The basics of saving bank accounts, including how to open one and required documents like photos and proof of address.
2) Common transactions like deposits and withdrawals that can be done on saving accounts.
3) Other banking services like cheques, ATMs, internet banking, and biometric security devices.
4) The advantages of these technologies like convenient 24/7 access to funds for ATMs and increased security for biometrics.
This document introduces ExtraAEdge.com, an integrated academic platform established with the mission to empower Indian students and guide them in making career decisions. The platform aims to build an online learning community through discussion forums, sharing of academic resources, and facilitating networking between students, alumni, faculty, colleges and corporations. It proposes tracking students' online and offline performances to generate an "ExtraAEdge score" that can help recruiters understand a student's complete potential. The platform seeks to benefit all stakeholders in the education ecosystem by facilitating communication, industry collaboration, placement activities and sharing of information.
This document provides documentation and a sample input file for running the Acuchem and Acuplot computer programs. Acuchem models chemical reaction systems and outputs a file that can be read by Acuplot to display the results. The input file format and requirements are described, including specifying reactions, species, concentrations, and run options. Comments can be added to the input file using semicolons. The programs run on IBM PC computers and require a math coprocessor.
This document provides documentation and a sample input file for running the Acuchem and Acuplot computer programs. Acuchem models chemical reaction systems and outputs a file that can be read by Acuplot to display the results. The input file specifies the reaction mechanisms, species concentrations, run options, and other parameters required by Acuchem. Comments are indicated with semicolons and the file provides details on setting up the various sections of a valid input file, including reaction mechanisms, species identification, and run options.
This document provides documentation and instructions for running the Acuchem and Acuplot computer programs, which model complex chemical reaction systems. It summarizes that Acuchem reads an input file describing reaction mechanisms and generates an output file of species concentrations over time. Acuplot then reads this output file and displays the results in either tabular or graphical form. The document provides details on setting up the Acuchem input file with identification lines, options, and specifying the reaction mechanisms and rates.
The document describes two computer programs, Acuchem and Acuplot, that model chemical reaction systems. Acuchem reads an input file specifying a reaction mechanism and initial species concentrations. It then solves the system of differential equations and outputs species concentrations over time. Acuplot takes Acuchem's output file and displays the results in tabular or graphical form. The document provides details on setting up the Acuchem input file, including the required file structure and formatting of reaction and species data.
The document describes two computer programs, Acuchem and Acuplot, that model chemical reaction systems. Acuchem solves systems of differential equations to model chemical reactions over time. It outputs a file that can be read by Acuplot, which displays the concentration data graphically or in tables. The document provides instructions on setting up an input file for Acuchem, including how to specify reaction mechanisms, options, and other required data fields. It also lists hardware requirements to run the programs.
The document discusses procedures and recursion in machine level programming. It describes how procedures use stack frames to pass arguments, save registers, and allocate local variables. Stack frames contain saved registers, arguments, local variables, and return addresses. Calling a procedure involves pushing this information onto the stack. Returning involves popping this information off the stack. Recursive procedures work because each call has its own private stack frame that does not interfere with other calls.
This document provides an overview and instructions for using Emu8086, an integrated development environment for assembly language. Emu8086 combines an editor, assembler, emulator, debugger and tutorials. It allows users to write, compile and step through 8086 assembly code on a virtual machine. The document outlines where to start using Emu8086 and provides links to its tutorials and reference materials, including information on the 8086 instruction set.
This document provides an introduction to 8086 assembly language programming. It discusses key concepts like variables, assignment, input/output, control flow, and subprograms. It then describes specific 8086 instructions like MOV for assignment, ADD, INC, DEC, and SUB for arithmetic operations, and INT for input/output. The document gives examples of writing simple programs that display or read characters using these instructions.
This document provides an introduction to 8086 assembly language programming. It discusses key concepts like variables, assignment, input/output, control flow, and subprograms. It then describes specific 8086 instructions like MOV for assignment, ADD, INC, DEC, and SUB for arithmetic operations, and INT for input/output. Examples are provided to demonstrate reading and writing characters from the keyboard and display. The document concludes with an example of a complete 8086 assembly language program that displays the letter 'a' on the screen.
This document provides a disassembly and analysis of the 16K monitor program used in the Sinclair ZX Spectrum home computer. It is divided into several main parts, including input/output routines, the BASIC interpreter, and an expression handling component. The disassembly details the purpose and function of the various routines that make up these parts, such as routines for keyboard input, sound output, cassette handling, screen handling, and BASIC command interpretation. It also describes the mathematical functions and floating point arithmetic used in the system.
data.txtInternational Business Management l2 Cons.docxtheodorelove43763
data.txt
International Business Management l2 Consulatation fee // error
Imperial Chemical 234 Pest control chemicals
National Home Appliances 34S6 Coffee machines // error
MicroHeart Software Consultancy 45678 Security audit
University of Silver Quartet 5678 Facility management
Telstar Satellite Communication 67O Disconnection fee // error
data_c.txt
Imperial Chemical 234 Pest control chemicals
MicroHeart Software Consultancy 45678 Security audit
University of Silver Quartet 5678 Facility management
sample_isdigit.cpp
#include <iostream>
#include <cctype>
using namespace std;
int main(){
char a = 'A';
char b = '3';
char c = ' ';
if (isdigit(a)){
cout << a << " is a digit!" << endl;
} else {
cout << a << " is not a digit!" << endl;
}
if (isdigit(b)){
cout << b << " is a digit!" << endl;
} else {
cout << b << " is not a digit!" << endl;
}
if (isdigit(c)){
cout << c << " is a digit!" << endl;
} else {
cout << c << " is not a digit!" << endl;
}
return 0;
}
CSC2402 A3_2015_updated.pdf
CSC2402 Assignment 3
This assignment is marked out of 100 marks. It is worth 10 % of your overall course mark.
Submit your assignment on‐line using the link to Assignment 3 on the course web page.
Assignment 3 consists of one task. For Assignment 3 you must submit all four files listed below in a single ZIP
file (not RAR). All four files must be in pure text format. No PDF, HTML, Word files, Open Office files, RTF
etc. and no compression or archiving such as zip, rar, tar etc. Please name your files to match the names
listed.
task_3.cpp – holds main() function,
exception.cpp – class file for exception handler functions,
exception.h – class definition file for exception handler functions, and
task_3.txt – copy of compilation messages and sample runs.
The steps to copy the compilation messages and sample runs for the task_3.txt file are software dependent:
If you are using Codelite, the compilation messages can be copied and pasted with the usual crtl‐c
and crtl‐v. For output of sample runs, right click the title bar of the command window, select
EDIT/MARK and then highlight the output. With the output selected, right click the title bar of the
command window, select EDIT/COPY. Position your cursor to a (new) text file opened in a text editor
such as Notepad, and crtl‐v will paste the copied output to the text file.
If you are using MinGW, right click the title bar of the command window; select EDIT/MARK and
then high light the output. With the output selected, right click the title bar of the command
window, select EDIT/COPY. Position your cursor to a (new) text .
The document discusses basic elements of the C programming language including flow charts, algorithms, constants, variables, data types, and the structure of a C program. It provides definitions and examples of key concepts such as:
- Flow charts depict the sequence of instructions in an algorithm using standard symbols like rectangles, diamonds, and arrows.
- An algorithm is a precise set of instructions to solve a problem with inputs, unambiguous processing rules, basic instructions, and finite time and outputs.
- Constants in C include integers, characters, strings, and floating-point numbers. Variables are named values that can change.
- C has primary data types like int, char, float, and void, and derived types are built from the
This document discusses algorithms and their analysis. It defines an algorithm as a set of unambiguous instructions to solve a problem with inputs and outputs. Good algorithms have well-defined steps, inputs, outputs, and terminate in a finite number of steps. Common algorithm analysis methods include calculating time and space complexity using asymptotic notations like Big-O. Pseudocode and flowcharts are commonly used to represent algorithms. Asymptotic analysis determines an algorithm's best, average, and worst case running times.
I am Jayson L. I am a C++ Homework Expert at cpphomeworkhelp.com. I hold a Masters in Programming from The University of Sheffield, UK. I have been helping students with their homework for the past 8 years. I solve homework related to C++.
Visit cpphomeworkhelp.com or email info@cpphomeworkhelp.com. You can also call on +1 678 648 4277 for any assistance with C++ Homework.
Fundamental of Information Technology - UNIT 6Shipra Swati
Computer Programming and Languages : algorithm, Flow Chart, Pseudo Code, Program
Control Structures, Programming Languages, Generation of Programming Languages and
etc.
This document provides an overview of key concepts in ABAP including:
1) Input parameters, changing variables through copy and initialization, and performing calculations and conversions.
2) Using control statements like IF/ELSE and loops like DO/WHILE as well as logical expressions and operators.
3) The CASE statement for evaluating field contents and differences from IF/ENDIF.
4) Debugging techniques in ABAP like setting breakpoints and using the debugging mode.
This document describes an assignment to implement bitstuffing and unstuffing using C programs. Students are asked to write two programs: a sender program that frames ASCII data using a start/end flag and inserts stuffed bits, and a receiver program that detects the flags, removes stuffed bits, and outputs the framed data. The programs must be commented and demonstrated to the TA, showing they correctly implement bitstuffing and unstuffing on sample input/output files provided. A report is also required describing the program logic and operation, and how correctness was verified.
Programming C Language Tutorial. Its an Learning document for base programming. Its an copied data from some websites and books. I tried to make more easier through this documents.
The document provides tips and tricks for optimizing C code size and execution time for 8-bit AVR microcontrollers. It discusses using smaller data types to reduce code size, declaring variables locally instead of globally, and using decrement loops instead of increment loops which can reduce the need for comparison instructions. The document introduces the AVR architecture, AVR GCC compiler and optimization levels. Examples are provided to demonstrate the effect of different coding techniques on code size.
This document provides a demonstration of the capabilities of the Slideshare platform. Slideshare allows users to upload and share presentations, documents, PDFs and videos. It also enables others to view uploaded files and provides analytics on how many people have viewed or downloaded each file.
This document provides a demonstration of how to use Slideshare to create and share presentations online. Slideshare allows users to upload PowerPoint, Keynote, and PDF files to host online and embed on websites and blogs. The service also provides analytics on views and downloads that help users understand how their presentations are being accessed and shared.
The document discusses CollEDGE, a student relationship and placement management system. It begins by outlining top challenges for educational institutions related to admissions, placements, communication and measuring progress. It then positions educational institutions as customer-centric companies with students as customers and faculty/admin as employees. CollEDGE is presented as a solution to help track students from their first year through placements. It provides features like online placement management, communication tools, learning management, analytics and connecting students/alumni. The benefits to educational institutions are outlined along with screenshots of the system's interface and features. Pricing options and the company's journey and future plans are also summarized.
Lean startup simplified for learners, entrepreneurs & practitionerstheextraaedge
The document discusses the Lean Startup movement pioneered by Eric Ries, Steve Blank, and others. It advocates for an iterative, customer-focused approach to starting businesses through techniques like building Minimum Viable Products and validating hypotheses through customer feedback. The Lean Startup process emphasizes continual learning by testing assumptions quickly and pivoting if needed based on what customers actually want.
CollEDGE is a roadmap for colleges, corporates & students towards efficient processes & simpler academic life. It saves time, increases effectiveness in employability & streamlines processes.
This document discusses engineering as a career choice for students. It outlines the agenda which includes discussing why engineering, which college and branch to choose, and addressing common myths about branch and scope. Engineering is described as adding value to human lives by designing and producing useful products and services. Despite economic volatility, the demand for engineering graduates is growing due to growth in various sectors like manufacturing, industry, and services. Students are encouraged to consider their interests and strengths when choosing a branch, and to research colleges by speaking to current students and considering location and employability. While opportunities in engineering are immense, the number of aspirants is increasing rapidly so students need to work hard to stand out. An informed decision about engineering as a career is important.
The document discusses a new website called Extraaedge.com that was created by engineering graduates Sushil Mundada and Abhishek Ballabh to help students select the best engineering colleges based on their marks. The website provides a college branch predictor and cut-off analysis to guide students on where they can apply. It also offers online and offline counseling. The website aims to not only help students get into their college of choice but also help them with internships, projects, and campus placements. The website's predictions are based on an algorithm that uses results from previous years.
The document defines data warehousing and its key concepts according to Bill Inmon and Ralph Kimball's paradigms. It discusses the components of a dimensional data model including dimensions, attributes, hierarchies, and fact tables. It also covers ETL processes, schema types like star and snowflake, and OLAP tools.
The document discusses accounting concepts like debits, credits, assets, liabilities, capital, and provides examples of journal entries, ledger accounts, and a trial balance. It also explains the purpose and components of key financial statements like the trading account, profit and loss account, and balance sheet.
The document is a test paper for business applications that contains 10 short answer questions, 2 long answer questions worth 5 marks each, and 2 long answer questions worth 10 marks each. The questions cover topics like price current, EOQ formula, production planning, biometric devices, quality, recruitment, objectives of production planning, MRP-I, performance appraisal process, sales analysis, purchase cycle, business processes for telemarketing, input documents, supporting reports, six sigma quality management, and differences between ERP and CRM systems.
This document provides an overview and summary of key topics from Peter Thiel's CS183: Startup class at Stanford. Some of the main points discussed include:
- Technological progress has slowed significantly since the 1960s, except in the computer industry. Computer science is thus a logical starting place to drive new progress.
- Going from 0 to 1 (innovation) is qualitatively harder than going from 1 to n (copying and scaling existing ideas). Starting a successful company requires solving the difficult problem of 0 to 1 innovation.
- Startups are important because their small size allows them to have lower coordination costs and more flexibility than larger companies or governments. However, starting a startup also carries significant financial
The letter is from ExtraAEdge.com promoting free Android and web applications to help students with MT-CET 2013 exam preparation. The applications provide cut-off analysis from previous years and help predict the best college-branch combinations based on a student's marks and ranking. The letter requests the institute share information about the applications with its students and display a poster, in exchange for which ExtraAEdge.com will feature the institute's banner ad on its website for 10 days.
This letter introduces ExtraAEdge.com, an academic platform providing resources and services to students. It announces the launch of two free Android and web applications that would be useful for students taking the MT-CET 2013 exam: 1) an MT-CET cut-off analysis tool to find cut-offs from the last 3 years, and 2) an MT-CET college and branch predictor to help students choose the best college-branch combination based on their marks and ranking compared to last year's closings. The letter requests the institute to post an enclosed poster on its notice board to inform students about these applications and offers to display the institute's banner ad on the ExtraAEdge website for 5 days in return
A search was conducted for "Class XII Science Tutorials" in Pune, India. The results were clicked to open and then edited to access contact information including the contact person and email address.
This letter introduces ExtraAEdge.com, an academic platform providing resources and services to students. It announces the launch of two free Android and web applications that would be useful for students taking the MT-CET 2013 exam: 1) an MT-CET cut-off analysis tool to find cut-offs from the last 3 years, and 2) an MT-CET college and branch predictor to help students choose the best college-branch combination based on their marks and ranking compared to last year's closings. The letter requests the institute to post an enclosed poster on its notice board to inform students about these applications and offers to display the institute's banner ad on the ExtraAEdge website for 5 days in return
The document provides the rate card for advertising banners on TheExtrAEdge.com, effective April 2013. It lists the specifications and pricing for various banner options on the main page and sectional pages of the site. The main page banner rates range from Rs. 20-50 per 1000 views or Rs. 2,000-5,000 per month. Sectional page banner rates are lower, ranging from Rs. 10-20 per 1000 views or Rs. 1,000-2,000 per month. The rate card also provides contact information for any queries.
Competitor analysis involves three main steps:
1) Identifying competitors and grouping them into strategic groups based on similarities.
2) Gathering intelligence on competitors' performance, strategies, capabilities by examining public sources.
3) Analyzing competitors' objectives, assumptions, strategies, and resources to understand their strengths/weaknesses and how they may respond to strategic actions. Conducting a thorough competitor analysis helps firms make strategic decisions and predict competitive dynamics in their industry.
Allchem Suppliers is a partnership firm between Yashraj and Govind Mundada that sells housekeeping, catering, and disposable materials. The business plan outlines the roles and responsibilities of the partners and employees. It provides financial details on the initial investment of Rs. 90000 for registration, VAT, electrical, furniture, computers etc. and an initial stock of Rs. 200000. Expected monthly expenses include salaries, rent, and advertising totaling Rs. 210000. The partners expect to generate Rs. 3 lakh in revenue per month at a 10% profit with an initial credit of Rs. 1000000 over 2 months. The nature of the partnership splits profits and losses equally at 50% each between the partners.
1. ; DOCUMENTATION AND SAMPLE RUN FILE
; for
; ACUCHEM/ACUPLOT
; a
; Computer Program for Modeling Complex Reaction Systems
;
; Walter Braun and John T. Herron
; Chemical Kinetics Division
; and
; David Kahaner
; Scientific Computing Division
;
; National Bureau of Standards, Gaithersburg, Md 20899
;
;11/2/1986
;
; I. The Programs.
;There are two executable programs on this disk, Acuchem and Acuplot. Acuchem
;models spacially homogeneous, isothermal, multicomponent chemical reaction
;systems, prepares an output file which can be read using the program
;Acuplot. There are two versions of Acuchem/Acuplot available. One handles
;40 species and 80 reactions, the other 99 species and 200 reactions.
;The version on this disk is the 40 species/80 reactions one.
;
; A. Acuchem.
;This program reads an input file containing one or more reaction mechanisms,
;processes this file, then solves the resulting system of differential
;equations. Acuchem then generates an output file, containing species con-
;centrations vs. reaction time for user chosen reaction times, or print-times.
;
; B. Acuplot.
;The Acuchem output file can then be read by executing the program Acuplot,
;which displays the file data, in either tabular or graphical form.
;
; II. Hardware Requirements.
;These programs will run on IBM Personal Computer Family Models, or PC
;compatible microcomputers which operate on MS-DOS or equivalent operating
;systems. At least 250k of memory and a math co-processor, either a 8087 or
;80287 is required. The graphics routines within Acuplot require one of the
;following display adapters:
; a) IBM Color Graphics Adapter (CGA)
; b) IBM Enhanced Graphics Adapter (EGA)
; c) IBM Professional Graphics Adapter (CGA emulation mode only)
; d) Hercules Monochrome Graphics Adapter (HMGC)
; e) Video-7 Enhanced Graphics Adapter (CGA, EGA, or HMGC mode)
;Hard-copy of a graphical display can be achieved by using any one of many
;dot matrix printers. At least the following are supported:
; a) IBM Personal Computer Graphics Printer (Model 5152)
; b) IBM Propinter (Model 4201)
; c) Epson MX-80 Printer
; d) Epson MX-100 Printer
; e) Epson MX-III Printer
; f) Epson FX-80 Printer
; g) Epson FX-100 Printer
; h) Epson FX-80+ Printer
; j) Epson FX-100+ Printer
; k) Epson RX-80 Printer
; l) Epson RX-100 Printer
; m) Epson JX-80 Printer
;
;
; III: Set-up of the Acuchem input file.
;
;The documentation in this section describes how to set up an Acuchem input
2. ;data file and how to execute the Acuchem/Acuplot programs. Additional
;details, which may be helpful to the user, are also included.
;
;This documentation file is also an Acuchem input file.
;Up to this point all lines in this documentation contain leading semicolons.
;The reason for this is that an Acuchem input file can contain comment or
;documentation lines, which are not read by the program, if prefaced by a
;semicolon. The semicolon need not be left justified, but must be the first
;non-(blank or horizontal tab) character on the line.
;
; A: Heading or Identification Line is the first line read by Acuchem.
;
Example.doc, an example mechanism file which can be run by Acuchem.
;
;Line above, without a leading semicolon, is the first line read by Acuchem.
;It is reserved as an identification line and must appear even if it is left
;blank!! It is copied directly to the Acuchem output file and serves as
;a heading line on the final hard-copy.
;
;Additional comment lines, such as the present lines of text, can be
;interspersed within the file but must also contain a leading semicolon.
;Comments can also directly follow input data on the same line if also
;preceeded by a semicolon.
;
;In data lines which follow, in all cases, the data must be present in the
;correct order, the correct number and the correct data type or else a file
;read error will occur.
;
;No input line can be longer than 79 characters.
;
; B: Option Line is second line read by Acuchem.
;
;
;There are four consecutive single digit options which are either 0 or 1,
;(0=no, 1=yes), representing answers to the questions below.
;
; computer Printer 50 equi- display
; supports supports spaced print- print-time
; graphics? graphics? times to out- to monitor
; put file? screen?
;
; no no no yes
;
;
0 0 0 1
;
;The above option line, without a semicolon, is the second line read by
;Acuchem! A blank (space) or horizontal tab can be the only character
;separating these single digit numbers. No space, however, is required.
;The above line could have been written as:
;0001
;omitting the leading semicolon. Option explanations appear in sections below.
;
;
; C: Beginning of Reaction Mechanism, the third line read by Acuchem.
;
1,a+b=c,1
;The line above, without a semicolon, is the third line read by Acuchem.
;
;Leading number is for user's convenience in numbering reactions. It can be a
;number or characters or both. Only 4 alphanumeric characters are allowed.
;This identification sequence is not actually used by the program. If
;it is used it must be followed by a comma; if it is not used, a comma must
;still preceed the reaction mechanism.
3. ;
;The comma following species, c, is also required! The number
;following the comma is the reaction rate constant and can be an integer,
;a decimal, or in E format.
;
;also note that the use of blanks is allowed within the line, and the line
;need not be left justified provided that there are only leading blanks or
;horizontal tabs. For example reaction 1, can also be written as:
; 1, a + b = c , 1.0E00
;without the leading semicolon.
;
;Species names can be 12 characters long, not counting embedded spaces.
;
;only zero order, first order and second order reactions are allowed!
;
;An example of a first order reaction is:
; 77,sam=aBb,7.0e-14
;which is interpreted as aBb is formed from sam at a rate 7.0e-14 in
;units of per time. Species sam is lost at the same rate. The mechanism
;equations need not be stoichiometric but a species balance is always
;maintained, e.g. the loss of 1 molecule of Sam results in the gain of
;one molecule of aBb.
;
;Note that species characters are ordered and cased e.g. aBb is distinct
;from AbB and AB is distinct from BA etc.
;
;An example of a zero order rate equation is:
; 78,=aBb,8.0e-12
;which is interpreted as aBb is formed from (nothing) at the constant rate
;of 8.0e-12 in units of concentration/time.
;
;An example of a second order rate equation is:
; 79,CH3+C2H5=CH4+C2H4,7.0E-12
;This line is interpreted as, CH3 reacts with C2H5 to yield one CH4 and one
;C2H4 with a rate constant of 7.0E-12 in units of 1/(concentration*time).
;
;Reactions are interpreted as proceeding only in the forward direction,
;left to right. In order to represent a reversible reaction, such as
; a + b = c + d, it must be entered as two separate (forward) rate processes,
;for example:
; 80,a+b=c+d,3.4e-14
; 81,c+d=a+b,6.25678e-15
;replacing 81,with
; 82,a+b=c+d,-6.2567e-15
;will not give the same result as 81 and should be avoided!!
;
;Termolecular rates, with rate constants in units of
;1/(time*concentration*concentration) cannot be explicitely handled by
;this program (that is, not in one reaction step).
;Such a rate process as, for example,
; 83,a+b+c=ab+c,4.5e-37
;can be treated in one of two possible ways:
;The first way is quite simple; it is the preferred method, if it can be
;used. If one of the species concentrations is quasi-constant it can be
;incorporated into the rate constant. Assume that the species c has a
;concentration of 1.0e17 which is at least two orders of magnitude larger
;than that of either a or b. We can then write reaction 83 as:
; 84,a+b=ab,4.5e-20
;that is, the rate constant for reaction 83, 4.5e-37 is multiplied by 1.0e17
;and the product, 4.5e-20 is used as an effective second order rate constant.
;It is very usual, in termolecular reactions, that one species is in large
;excess and can legitimately be taken as quasi-constant!
;
;The second method (which is the way most termolecular reactions actually
4. ;proceed) involves the use of the reversible reaction represented
;by 85 and 86 below, followed by the second order reaction, 87:
; 85,a+b=ab*,k(85)
; 86,ab*=a+b,k(86)
; 87,ab*+c=ab+c,k(87)
;where,
; k(83)=k(85)*k(87)/(k(86)+k(87)*c).
;If k(86) is chosen much larger than k(87)*c(0), where c(0) is the initial
;concentration of species c, then the following expression applies:
; k(83)=k(85)*k(87)/k(86).
;Having chosen the ratio of k(86) to k(87) so that the latter approximation
;is valid, the ratio of k(85) to k(86) should be chosen so that the con-
;centration of ab* is always much less than a, b, or c.
;
;If two species react to form three, such as:
; 88,a+b=c+d+e,5.345e-14
;This should be entered into the file as,
; 88a,a+b=c+dummy,5.34e-14
; 88b,dummy=e,1.0e14
;The first order rate constant for the decay of dummy should be fast
;enough that its concentration is small compared with the other major species.
;
;More complex schemes can be composed of simpler reversible bimolecular
;and unimolecular reactions involving hypothetical intermediates. Complex
;reactions always proceed by simpler steps so that such an excercise, while
;necessary to the use of the program, is usually also instructive.
;An example of a complex reaction is the equilibrium reaction between NO2
;and water to yield nitric acid and NO:
;
; 992, 3NO2 + H2O = 2 HNO3 + NO , K(992)
;
;The following four reversible reactions, added together will result
;in the overall stoichiometry of reaction 992:
;
; 993, NO2 + NO = N2O3 , K(993)
; 994, N2O3 + H2O = HONO + HONO , K(994)
; 995, HONO + NO2 = HNO3 + NO , K(995)
; 996, HONO + NO2 = HNO3 + NO , K(996)
;
;Here the K's are not rate constants, but equilibrium constants. The
;equilibrium constant, K(992) can be calculated from tabulated Free
;Energies, since all of the reactants are stable molecules. The Free
;Energies of some of the intermediates in the reaction sequence 993-
;996 have been estimated, and thus even for these, the equilibrium constants
;can be determined. The following relationship must be adhered to:
; K(992)=K(993)*K(994)*K(995)*K(996).
;Further, each of the reversible reactions 993-996 must be presented
;as two separate reactions, as expained above; and as well, rate constants,
;not equilibrium constants should be used. That poses no particullar problem
;once it is understood that the Equilibrium constant is equal to the ratio of
;the forward rate constant divided by the reverse rate constant. As an
;example reaction 993 is written as 993a, and 993b:
;
; 993a, NO2 + NO = N2O3 , k(993a)
; 993b, N2O3 = NO2 + NO , k(993b)
;
;and K(993)=k(993a)/k(993b), where the small k's are rate constants in
;correct units. If the individual rate constants for steps 994,995 and
;996 are chosen much larger than those for reaction 993, these steps will
;always be in equilibrium and reaction 993 will be the rate controlling step.
;Under these conditions K(992)=k(993a)*k(994a)*k(995a)*k(996a)/(k(993b)*
;k(994b)*k(995b)*k(996b)). This relationship must be strictly adhered to
;even if the ratios of the individual rate constants are arbitrarily chosen
;(because the equilibrium constants for the reactions 993-996 are either not
5. ;known or the decision not to use them has been made).
;
;Duplicate reaction mechanisms can be run simultaneously. For example,
; 100,a1+b1=c1+d1,k(1,1)
; 101,a2+b2=c2+d2,k(2,1)
; 102,a1+c1=e1,k(1,2)
; 103,a2+c2=e2,k(2,2)
;essentially duplicates a mechanism and allows a change in one or more rate
;constants or concentrations. The effects of the changes in the mechanism
;parameters can thus be probed in the same run file. Of course the duplicate
;species names must be identified differently. The use of matrix notation,
;for example A(1), A(2), B(1), B(2) is an alternative notation.
;
;Entering the same reaction line twice, for example,
; 87,h+i=j+k,4.0e-12
; 97,h+i=j+k,4.0e-12
;has the effect of doubling the rate constant. The net effect is:
; 98,h+i=j+k,8.0e-12
;
;Also note that the main use of the comment (semicolon) option is to
;allow the user to remove certain mechanism lines and later re-activate them
;by simply placing and removing a semicolon. This saves typing time and
;provides the user with a record of previous iterations.
;
;The user can use any choice of concentration units, either molecular or
;molar. The Acuchem program actually scales the concentrations and rate
;constants and runs identically irrespective of the units. Outputs are then
;re-scalled to the user's units. Rate constants must be in units consistent
;with the concentration and time units.
;
;
;the remainder of this mechanism file continues
;
2, c=a+b,.001; a comment can be added here if the user desires!!
3,a+b=d,1.
4,d=a+b,1.0E-03
;
; D: End of Reaction Mechanism Statement:
;
end; This line is required!
;It is essential that the end statement be added to close the mechanism
;sequence. Upper case END is also allowed. Blanks between the E and the N
;and the N and the D and the use of leading blanks is allowed.
;
; E: Species Identification and Concentration:
;
;the following line(s) specify the species and their concentrations. If a
;species and its concentration is not listed the program will assume that
;it is 0.0000.
;
a,1.0
b,2.10789
;
;This information must be entered in in the order: species name, a comma,
;the concentration, then a blank or a semicolon.
;Only one species and its concentration per line!!
;
; F: End of Species, Concentration Sequence:
;
end; This line is required!
;
;An end statement specifies that all non-zero concentrations have been
;logged in. This also must be present or else a file read error will
;be generated!!
6. ;
; G: Integration Tolerance:
;
0.001
;
;The above line specifies the integration tolerance. It must be positive.
;Small values cause the program to run longer, larger values can result in
;inaccurate results. The usual range for this parameter is from about 0.0001
;to 0.1 but values outside of this range are possible.
;
;
; H: Print-times, for which Reaction time & Concentrations are
; Written to the Acuchem Output File.
;
1.E-4,1.E-3,1.E-2,1.E-1,1.,
2.,3.0,4.0,10.
The lines above specify the reaction times for which each species
concentration is written to the Acuchem output file.
If a line in this section ends with a comma, Acuchem expects additional
Print-time lines. If a line in this section ends with a blank or semicolon,
Acuchem does not expect any additional information and assumes that the
input file is complete. For that reason, all of the lines of text following
the entry 10., above are written without leading semicolons!
Note that there are 9 print-times specified above. These will determine
the print-time entries that will be written to the Acuchem out-put file
unless the third option in the option line is set to 1. In that case there
will be 50 equispaced print-times written to the Acuchem output file up
to the largest time value in the print-time sequence above,
which is 10. in the present case. There is no need to log in print-times in
the order of increasing time since the program sorts (and then orders) them.
IV. How to Run Acuchem/Acuplot.
This documentation represents an unusual input file, but it will run and the
user can try this file as a trial run. Execute Acuchem by typing Acuchem.
Acuchem then requests the name of the input file and this file, called
EXAMPLE.DOC, should be entered. Acuchem further requests the name of an
output file and some suitably chosen name such as EXAMPLE.OUT should be
entered. Alternatively, all or part of this file information can be included
directly on the command line, and the file information will not be requested
by the program, unless a file duplication condition is detected.
Standard MS-DOS file specifiers can be used. For example the following
command lines are illustrative:
Acuchem A:kinexample.doc B:resultsexample.out
also,
Acuplot B:resultsexample.out
That is, the input and output file names, here included on the command line,
can be entered in the form, disk:directoryfilename.ext. In general,
results should be kept separate from the Acuchem/acuplot programs since space
limitations, if a floppy disk is used, will eventually require such action.
Acuchem will take several seconds to run this file. Note, when running much
more complex mechanism files, the user can terminate execution by typing in
a control c at any time. If option 4 on the option line is set to 1, the
print-times are writted to the monitor which shows the number of
time-concentration entries that have been written to the Acuchem output
file. On premature termination of Acuchem, these data entries exist on the
output file and can be scanned. That is, an acuchem output file will be
7. produced which has fewer print-times than the number specified in the
Acuchem input file.
After running Acuchem the user should type Acuplot, with or without the
Acuchem output file specified. If it is not specified, Acuplot will request
the output file name which must then be entered. Acuplot will display the
results to either the monitor screen or to the printer with the further
option of graphically displaying the results (if option 1 on line 2 is set
to 1). Also, if option 2 on file line 2 is set to 1 the program will assume
that the user has a printer which is supported by the graphics package and
the option of generating a hard-copy on the printer is requested by the
program.
Acuplot reads the Acuchem output file and if requested, the user can scan the
the reaction time, species concentrations in the Acuchem output file in a
convenient way, either to the monitor screen or to a printer. The display to
the monitor occurs one page at a time. Using the z or Z key, scans the file
forward; using the a or A key scans the file backwards (towards the
beginning). Once the end of the data file is reached, the user is notified,
and another chance of scanning the file towards the beginning is possible
by typing in the a or A key. At this point typing in z or Z will exit this
file display mode.
The graphics routines, within Acuplot, can display the Acuchem results on the
monitor screen-up to 5 species at a time. If a graphics printer is attached,
a hard-copy of the screen display can be obtained. A heading line can also be
included. Concentrations are automatically scaled. The species are
distinguished on the graph using different plotting symbols and further
identified in the figure legend by name and symbol with the appropriate
concentration scale factors. To convert species concentrations to their
real (unscaled) values the value on the graph must be multiplied by the
displayed scale factor. This can be done virtually by inspection to an
accuracy of better than 2% (at the ordinate midscale). Scale factors are
integer and result in sensible displays. The abscissa, time, is not scaled
and a maximum time value should be chosen which is divisible by 2 or 5 to
allow for a sensible time axis display.
V. Run time Errors.
Certain safety features are included in Acuchem: 1) If a specified input
file is not found a message to that effect is written to the monitor and
the program is terminated. 2) The same is true if an output file is
designated as an Acuchem input file. 3) If an output file is specified
which already exists Acuchem will flag this condition and allow the option
of overwriting the file or substituting another file name. 4) Certain
input file errors are detected as such and are flagged with a relatively
friendly message followed by program termination. However, out of sequence
numeric input data will generally result in a compiler generated error message
as will insufficient disk space for the output file. These will also result
in run termination. 5) The differential equation solver flags certain errors
which are displayed to the monitor screen such as an unreasonable integration
tolerance or too many internal integration steps.
Most errors are the result of typograhical errors in the input file, missing
end statements, data entered out of proper sequence or insufficient disk
space for the output file.
VI. Additional Comments.
We suggest that the user make backup copies of the Acuchem/Acuplot programs.
At that time the user can use the standard MS-DOS Rename command and change
the names of these programs to AC.exe and AP.exe to simplify typing.
The present executable programs, Acuchem and Acuplot were compiled using
8. the F77L Fortran77 Compiler, Ver 2.0, written by Lahey Computer Systems,
Inc., 31244 Palos Verdes Drive West, Suite #243,
Rancho Palos Verdes, Ca 90274.
VII. Description of Acuchem Output File.
The following details will only be of interest to users who are interested
in programming and wish to interact with the current programs through
their own routines.
The following describes the format in which the Acuchem output file is
written. The user can write individualized programs to read this
output file, to use other graphics, to insert laboratory data
into the Acuchem output file to compare calculated and experimental
results.
A possible algorithm to do this is the following:
1) read the Acuchem output file,
2) add additional species entries to accomodate actual laboratory data,
3) add laboratory data entries,
4) finally, generate a merged file.
This new file can then by read by Acuplot and the calculated and experimental
results can be compared directly through the graphics mode.
The Reaction Mechanism matrix is used to write the output reaction mechanism
in shorthand form. It is not necessary for the user to know this is done,
but for the sake of completeness the following describes how the Reaction
Matrix is defined.
The Reaction Matrix, defined as JS(A,B), is a shorthand way of describing
the reaction mechanism, where A is the species position index within the the
mechanism line and B is the reaction number.
Each mechanism line is of the form, one equal sign with 0, 1 or 2 species
entries on either side of it. The JS( ) matrix notation always assumes that
there are exactly 4 species entries per reaction mechanism line, two to the
left of the equal sign, two to the right, whether they are present or not.
If a species entry is missing, the JS( ) index for that entry is set to zero.
Acuchem numbers species consecutively as it scans the reaction mechanism
sequence and then generates the JS( ) shorthand for each mechanism line.
An example best shows how this is done. Consider the following three line
mechanism,
001, A+B=C,k(001)
002, C=D+E,k(002)
003, =F,k(003)
etc.
The JS( ) matrix is:
JS(i=1,k) + JS(i=2,k) = JS(i=3,k) + JS(i=4,k)
JS((i=1,4),k=1) : 1 + 2 = 0 + 3
JS((i=1,4),k=2) : 0 + 3 = 4 + 5
JS((i=1,4),k=3) : 0 + 0 = 0 + 6
etc.
Note the indexing and that the value of JS( ) = 0 when an entry does
not appear on the reaction mechanism line. Once a species is identified
by a number e.g. C is number 3, every time species C appears in the reaction
mechanism it is specified as number 3, and that number must appear in the
JS( ) matrix for that line with i=1 or 2 if it is on the left side of
equal sign or i=3 or 4 if it appears to the right of the equal sign. There
9. is no significance to the particullar ordering of i=1 and i=2 nor to the
ordering, of i=3 and i=4. That is, JS(i=1,k)=0 and JS(i=2,k)=3 is entirely
equivalent to JS(i=2,k)=0 and JS(i=1,k)=3.
Format of Acuchem output file follows:
Line1: format(79A1), contains the entry O*TPUT, identifying this as
an output file.
Line2: format(79A1), line copied directly from Acuchem input file, contains
identification line information.
Line3: format(5I1), contains 5 options, without leading or imbedded blanks.
line4: format(E10.4), contains the Integration Tolerance parameter in the
specified format.
line5: format(2(1x,I4)), contains total number of species, N; and total number
of mechanism lines, L, in the format specified.
line6
thru
line(6+L/9):
format(8(1x,4I2), contains 4*L, JS( ) matrix entries, up to 32/line.
line(6+L/9+1)
thru
line(6+L/9+1+N/7):
format(6(1x,A12)), contains N species names up to 6/line.
line(6+L/9+N/7+2)
thru
line(6+L/9+N/7+2+L/7):
format(6(1x,E12.6)), contains L rate constants, up to 6/line.
line(6+L/9+L/7+N/7+3)
to
end of file:
format(1x,I3,2x,E12.6), contains print #, 1 for first, 2 for second,
etc., and print-time, on one line,
followed by,
format(6(1x,E12.6)), a total of N concentrations, as many as 6/line.
then, this sequence is repeated for each successive print-time.
e.g.
next print #, and print-time, if it is there!
again followed by a total of N concentrations, etc.