Friday, August 26, 2022

The roots of a quadratic equation ax² + bx + c = 0

 #include <iostream>

#include <math.h>

using namespace std;


int main()

{   double a,b,c,d;

    cout <<"The roots of a quadratic equation ax² + bx + c = 0\n";

    cout <<"Input a, b, and c\n";

    cin >> a >> b >> c;

    cout <<"The roots of a quadratic equation: " <<a<<"x² + "<<b<<"x + "<<c<<" = 0\n";

  d=b*b-4*a*c;

  if (d<0) cout <<"No solutions\n";

  else if (d==0) cout << "x= "<< -b/(2*a);

  else cout <<"x₁=" << (-b+sqrt(d))/(2*a)<<"\n" <<"x₂=" << (-b - sqrt(d))/(2*a)<<"\n"; 

  return 0;

}

Syllabus: SCI 120, BMCC

 BOROUGH OF MANHATTAN COMMUNITY COLLEGE 

The City University of New York 

Department of Science 


Title of Course: COMPUTER METHODS IN SCIENCE 

SCI 120 Section 135 B/L

Credits 4

Semester: Fall 2022


Class hours 3

Lab hours 2 

Instructor Information 

Name: Vasiliy Znamenskiy

Office: 

Room: N672

Email: vznamenskiy@bmcc.cuny.edu




Course Description 


This course teaches a programming and emphasizes application of programming methods for the sciences and engineering. Numerical methods will be applied to examples gleaned from physics, chemistry and biology, and engineering. 


Prerequisites/Co-requisites 

MAT 206 


Student Learning Outcomes 

1. Students will be able to acquaint the capabilities of computers and the types of problems that computers can solve. 

2. Students will be able to learn the fundamentals of programming so that they can use the computer to solve problems that are encountered in both academic and nonacademic environments. 

3. Students will be able to establish good problem-solving techniques that can applied to any problem, whether computer related or not. 

4. Students will be able to use practical, real-word engineering and science problems while accomplishing the first three objectives. 


Required Text & Readings 

Author: Tony Gaddis 

Title: Brief Edition of Starting Out with C++, 4th Edition 

Publisher: Scott Jones Inc. 


Other Resources 

Facebook Group: https://www.facebook.com/groups/ComputerMethodsInScience

Facebook Page: https://www.facebook.com/heyclickny


Use of Technology (if applicable) 


Evaluation & Requirements of Students 

Written Examination 50% 

Programming Projects (10-12) 50% 


This syllabus is provided as a general informational guide. Some of the information may vary depending on the specific course section and instructor. Different sections of the same course may require different textbooks. Verify the section specific textbook information in the CUNY’s Academic Course Schedule Web Page. Modifications of the grading system presented here will be communicated by the instructors of the sections when they meet the class. 2 


Outline of Topics 

WEEK TOPIC CHAPTER (S) 

1 Introduction to computer architecture and languages; 1, 

2 Flowcharting fundamentals; IPO Input, Processing, Output) sequence 2 Linear programs; Variable, Arithmetic operations; 2, 

3 Math functions, and Input/Output 3 File handling, keyboard input; Relational operators; 3, 

4 Simple IF and IF-ELSE structure 4 Looping structures (simple, nested) 5 

5 Switch statement; Functions 6 

6 Functions 6 

7 Applications; Method of Least Squares; 6, 11 Numerical Integration, File Operations 

8 Numeric Arrays; Random Numbers 7 

9 Multidimensional Arrays 7 

10 Matrix Manipulations (Addition, Multiplication); 7 Gaussian Elimination, Sorting; Monte Carlo Method 

11 Pointers 8 

12 Characters, Strings, and the string Class 9 

13 Structured Data 10 

14 Introduction to Classes 12 

15 Final Examination 


Class Participation 

Participation in the academic activity of each course is a significant component of the learning process and plays a major role in determining overall student academic achievement. Academic activities may include, but are not limited to, attending class, submitting assignments, engaging in in-class or online activities, taking exams, and/or participating in group work. Each instructor has the right to establish their own class participation policy, and it is each student’s responsibility to be familiar with and follow the participation policies for each course. 


BMCC Policy on Plagiarism and Academic Integrity Statement 

Plagiarism is the presentation of someone else’s ideas, words or artistic, scientific, or technical work as one’s own creation. Using the idea or work of another is permissible only when the original author is identified. Paraphrasing and summarizing, as well as direct quotations, require citations to the original source. Plagiarism may be intentional or unintentional. Lack of dishonest intent does not necessarily absolve a student of responsibility for plagiarism. Students who are unsure how and when to provide documentation are advised to consult with their instructors. The library has guides designed to help students to appropriately identify a cited work. The full policy can be found on BMCC’s Web site, www.bmcc.cuny.edu. For further information on integrity and behavior, please consult the college bulletin (also available online).


 Gender-Inclusivity 

BMCC community members have the right to use and be referred to according to their preferred name, title, and/or personal pronouns. Everyone also has the right to use all spaces according to their self-identification, including restrooms and locker rooms. To learn more about how to change your preferred name and affirm your gender identity at CUNY (including requesting a new ID card and/or email address), go here: https://www.bmcc.cuny.edu/student-affairs/lgbtq/ Anyone who has experienced harassment related to gender or sexual identification, who needs assistance, or who wishes to file a complaint, can contact the Office of Compliance and Diversity: https://www.bmcc.cuny.edu/about-bmcc/compliance-diversity/. 


FREE BMCC STUDENT SUPPORT SERVICES 

BMCC is committed to the health and well‐being of all students. It is common for everyone to seek assistance at some point in their life, and there are free and confidential services on campus that can help. 

Advocacy and Resource Center (ARC) https://www.bmcc.cuny.edu/student-affairs/arc/ room S230, 212‐220‐8195, arc@bmcc.cuny.edu. If you are having problems with food or housing insecurity, finances, health insurance or anything else that might get in the way of your studies at BMCC, contact the Advocacy and Resource Center (formerly Single Stop) for assistance. Please contact us at arc@bmcc.cuny.edu, call 212-220-8195, or come by the office at room S230. You may also contact the Office of Student Affairs, S350, 212‐220‐8130, studentaffairs@bmcc.cuny.edu, for assistance. 


Counseling Center 

www.bmcc.cuny.edu/counseling, room S343, 212‐220‐8140, counselingcenter@bmcc.cuny.edu. Counselors assist students in addressing psychological and adjustment issues (i.e., depression, anxiety, and relationships) and can help with stress, time management and more. Counselors are available for walk‐in visits. 


Office of Compliance and Diversity https://www.bmcc.cuny.edu/about-bmcc/compliancediversity, room S701, 212-220-1236. BMCC is committed to promoting a diverse and inclusive learning environment free of unlawful discrimination/harassment, including sexual harassment, where all students are treated fairly. For information about BMCC's policies and resources, or to request additional assistance in this area, please visit or call the office, or email olevy@bmcc.cuny.edu, or twade@bmcc.cuny.edu. If you need immediate assistance, please contact BMCC Public safety at 212-220-8080. Office of Accessibility www.bmcc.cuny.edu/accessibility, Students who need academic accommodations in connection with a disability must initiate the request with BMCC’s 


Office of Accessibility (OA). Students need to register with the Office of Accessibility in order to officially disclose their disability status to the College and to determine eligibility for appropriate reasonable accommodations (including any prior IEPs or 504s). Please contact the OA at the start of the semester (or as soon as possible) to coordinate any accommodation request/s: www.bmcc.cuny.edu/accessibility, Room N360 (accessible entrance: 77 Harrison Street), 212- 220-8180, accessibility@bmcc.cuny.edu. 


Tuesday, August 2, 2022

Ohm, Electric Current, Electricity, Electrical Resistance, Conductance, Electrician, Ampere, Electrical Network 🔭

Available Products

NaCl.xyz Generator with Interactive 3D Visualization

NaCl.xyz Generator with Interactive 3D Visualization NaCl.xyz Generator with Interactive 3D Visualization ...