Free Essay

Computer Science - General Computer Science

In: Other Topics

Submitted By email132adssaf
Words 1648
Pages 7
1. Design a class named Fan to represent a fan. The class contains: an int data field named speed that specifies the speed of the fan. A fan has three speeds indicated with a value 1, 2, 3. A bool data field named on that specifies whether the fan is on. A double data field named radius that specifies the radius of the fan. A no-arg constructor that creates a default fan with speed = 1, and radius = 10 The accessor and mutator functions for all the data fields. NOTE: JUST CREATE fan.h and fan.cpp - no need to create the main.cpp - I just want to see the design of the class. (Points : 18)

1. Create a class called person that can hold a person's name and age - also use dateType from class exercises to hold the person's birthday in the person class. Create the necessary attributes, accessor and mutator methods, a print function, and a constructor WITH arguments Note: Create the class person.h and person.cpp only - you don't need the main.cpp Note: You do not need to include the dateType class in your answer just show me how you would use an object of the dateType class in your person class. (Points : 18)

3. Create a class called Child that inherits from the person class from the previous question.

Aside from entering a child's name, age and bithday using the person class. The Child class should allow for entering what grade the child is in and the child's gender. Create the necessary attributes, accessors, mutators, print function, and a constructor WITH arguments.

1. Create a class called parent that inherits from the person class - aside from setting the adult's name, age and birthday using the person class - you should also be able to set the parent's occupation, spouse's name, whether they are mom or dad, and the number of children they have. Create the necessary attributes, accessors, mutators, print function, and a constructor WITH arguments. Note: Create adult.h and adult.cpp only - not the main.cpp (Points : 18)

1. Create a class called simpleMath - this class should have two int attributes and accessor and mutator methods to set and get those two int attributes - and a calcSum method that returns the sum of the two ints, a calcDifference method that returns the difference of the two ints, a calcProduct method that returns the product of the two ints, and a calcDivision method that returns the division result of the two ints. Also make sure to create a constructor WITH arguments. (The order of a/b or b/2 , a-b, b-a, is up to you) Note: Just need to create the simpleMath.h and simpleMath.cpp files not main.cpp (Points : 18)

6. Create a class called Coin with one string attribute. Create the proper accessor/mutator methods for the attribute. Create a constructor that takes no arguments that sets the string to ""Unknown"" Create a method that returns the numeric value of the coin string name. For example: .25 should be returned if the string attribute holds ""Quarter"" .05 should be returned if the string attribute holds ""Nickel"" etc. Note: Just write out Coin.h and Coin.cpp - no need for main.cpp (Points : 18)

7. Put the person, child, and the parent classes together - keep in mind that person also has a composition with a dateType object. (You don't need dateType.h and dateType.cpp in your answer here - but might need it if you want to compile this in visual studio) Edit your classes - 1) Make the print function in the person class a pure virtual function - which makes person class an abstract class 2) Make the parent class also contain a child object array so that in the parent class you can not only put in how many children the parent has but that many array objects holding each of the child's name, age, birthday, grade, and gender. 3) Edit the parent class print function so that it prints both the parent object information and the child information. Create your void main - In your void main create one dynamic instance of a parent object - and ask a user (assuming they are a parent) for their name, age, birthday, occupation, spouse's name, whether they are mom or dad, number of children. Then for each children ask for the child's name, age, birthday, grade, and gender. Once you set all of this information for the dynamic parent object. Call the print function from the parent object so that it displays all of this information back to the user. Note: Since I can see the classes from your previous answers - just paste in here the editted methods from the classes you made and the void main code. (Points : 22)

1. Design a class named Fan to represent a fan. The class contains: an int data field named speed that specifies the speed of the fan. A fan has three speeds indicated with a value 1, 2, 3. A bool data field named on that specifies whether the fan is on.A double data field named radius that specifies the radius of the fan.A no-arg constructor that creates a default fan with speed = 1, and radius = 10The accessor and mutator functions for all the data fields.NOTE: JUST CREATE fan.h and fan.cpp - no need to create the main.cpp - I just want to see the design of the class. (Points : 18)1. Create a class called person that can hold a person's name and age - also use dateType from class exercises to hold the person's birthday in the person class. Create the necessary attributes, accessor and mutator methods, a print function, and a constructor WITH argumentsNote: Create the class person.h and person.cpp only - you don't need the main.cppNote: You do not need to include the dateType class in your answer just show me how you would use an object of the dateType class in your person class. (Points : 18)3. Create a class called Child that inherits from the person class from the previous question.Aside from entering a child's name, age and bithday using the person class.The Child class should allow for entering what grade the child is in and the child's gender.Create the necessary attributes, accessors, mutators, print function, and a constructor WITH arguments.1. Create a class called parent that inherits from the person class - aside from setting the adult's name, age and birthday using the person class - you should also be able to set the parent's occupation, spouse's name, whether they are mom or dad, and the number of children they have.Create the necessary attributes, accessors, mutators, print function, and a constructor WITH arguments.Note: Create adult.h and adult.cpp only - not the main.cpp (Points : 18)1. Create a class called simpleMath - this class should have two int attributes and accessor and mutator methods to set and get those two int attributes - and a calcSum method that returns the sum of the two ints, a calcDifference method that returns the difference of the two ints, a calcProduct method that returns the product of the two ints, and a calcDivision method that returns the division result of the two ints. Also make sure to create a constructor WITH arguments.(The order of a/b or b/2 , a-b, b-a, is up to you)Note: Just need to create the simpleMath.h and simpleMath.cpp files not main.cpp (Points : 18)6. Create a class called Coin with one string attribute.Create the proper accessor/mutator methods for the attribute.Create a constructor that takes no arguments that sets the string to ""Unknown""Create a method that returns the numeric value of the coin string name.For example: .25 should be returned if the string attribute holds ""Quarter"".05 should be returned if the string attribute holds ""Nickel""etc. Note: Just write out Coin.h and Coin.cpp - no need for main.cpp (Points : 18)7. Put the person, child, and the parent classes together - keep in mind that person also has a composition with a dateType object. (You don't need dateType.h and dateType.cpp in your answer here - but might need it if you want to compile this in visual studio)Edit your classes - 1) Make the print function in the person class a pure virtual function - which makes person class an abstract class 2) Make the parent class also contain a child object array so that in the parent class you can not only put in how many children the parent has but that many array objects holding each of the child's name, age, birthday, grade, and gender. 3) Edit the parent class print function so that it prints both the parent object information and the child information.Create your void main - In your void main create one dynamic instance of a parent object - and ask a user (assuming they are a parent) for their name, age, birthday, occupation, spouse's name, whether they are mom or dad, number of children. Then for each children ask for the child's name, age, birthday, grade, and gender. Once you set all of this information for the dynamic parent object. Call the print function from the parent object so that it displays all of this information back to the user.Note: Since I can see the classes from your previous answers - just paste in here the editted methods from the classes you made and the void main code. (Points : 22)
Your children must have a proper education to be successful in life. They may have low paying jobs or even live at home for an extended time. What can a parent do to stop this from happening? Homeschooling may be the answer you seek. Read on for some useful advice on how to homeschool.

Similar Documents

Premium Essay

Pert

...Computer science From Wikipedia, the free encyclopedia Jump to: navigation, search Computer science or computing science (abbreviated CS) is the study of the theoretical foundations of information and computation and of practical techniques for their implementation and application in computer systems.[1][2] Computer scientists invent algorithmic processes that create, describe, and transform information and formulate suitable abstractions to model complex systems. Computer science has many sub-fields; some, such as computational complexity theory, study the fundamental properties of computational problems, while others, such as computer graphics, emphasize the computation of specific results. Still others focus on the challenges in implementing computations. For example, programming language theory studies approaches to describe computations, while computer programming applies specific programming languages to solve specific computational problems, and human-computer interaction focuses on the challenges in making computers and computations useful, usable, and universally accessible to humans. The general public sometimes confuses computer science with careers that deal with computers (such as information technology), or think that it relates to their own experience of computers, which typically involves activities such as gaming, web-browsing, and word-processing. However, the focus of computer science is more on understanding the properties of the programs used to implement...

Words: 5655 - Pages: 23

Premium Essay

The Fluidity of Computer Science

...The Fluidity of Computer Science. Gender Norms & Racial Bias in the Study of the Modern "Computer Science" Computer science or computing science designates the scientific and mathematical approach in computing. A computer scientist is a scientist who specialises in the theory of computation and the design of computers. Its subfields can be divided into practical techniques for its implementation and application in computer systems and purely theoretical areas. Some, such as computational complexity theory, which studies fundamental properties of computational problems, are highly abstract, while others, such as computer graphics, emphasize real-world applications. Still others focus on the challenges in implementing computations. For example, programming language theory studies approaches to description of computations, while the study of computer programming itself investigates various aspects of the use of programming languages and complex systems, and human-computer interaction focuses on the challenges in making computers and computations useful, usable, and universally accessible to humans. Computer science deals with the theoretical foundations of information, computation, and with practical techniques for their implementation and application. History The earliest foundations of what would become computer science predate the invention of the modern digital computer. Machines for calculating fixed numerical tasks such as the abacus have existed since antiquity...

Words: 2298 - Pages: 10

Free Essay

Career as Computer Scientist

...Environmental Education Standout Annotated Bibliography Abrea, Alma. “Computer Scientist Job Description, Education Requirements and Career Outlook.” USnewsuniversitydirectory.com U.S News University Directory. 2012 web. 24 Mar. 2016 Alma considers a master degree is required or PhD in Computer Science is required for the job. She also says that it takes four years for a bachelor’s degree and five years for a PhD. She also argues that “most occupations in the field require a graduate degree.” Abrea writes for usnewsdirectory.com which is a university directory web site. Abrea doesn’t have a bias. This editorial contradicts come of my other sources, which claim that a college degree is needed for computer science. Hoffman, Micheal. “A Guide to Computer Science Careers.” Computerscienceonline.org Computer Science Online. 2016 web. 24 Mar. 2016 Hoffman is a graduate of the University of California at Santa Barbara and the Santa Barbara College of Law, Hoffman began his professional career as an attorney in Los Angeles. After a brief period in the Hollywood film production business, Huffman now works as a freelance writer while he pursues his dream of becoming a published fiction author and screenwriter. Hoffman considers that a software developers get paid more than a User Interface Design. He argues that “User Interface Design annually makes $61,000 per year according to payscale.com and a Software Developer makes slightly over $100,000 in May 2013.” Huffman bias is that...

Words: 3203 - Pages: 13

Premium Essay

Interview With Dr Azalov Interview Paper

...State faculty member, I chose to meet with Dr. Pavel Azalov. My intended major is computer science, so Dr. Azalov seemed to be the best option for myself. When I was coming up with questions to ask during the interview, I wanted to focus on my future at Penn State and what I should expect when it comes time for me to take courses related to computer science. By doing this, I hoped to gain a better understanding of the process of getting a degree in computer science. My first question I asked was to see if I was personally ready to begin taking college level computer science courses. I was not sure of the level of experience with computer programming was recommended for entry level classes in the field of study. As I would come to learn, there is no experience required for basic programming classes, and this came to me as sort of a surprise. Almost every major subject, whether it is math, writing, history, or science, usually requires some sort of background knowledge of the subject. Some people may not think of it that way, though. These...

Words: 519 - Pages: 3

Premium Essay

Computer Since

...بسم الله الرحمن الرحيم Computer Science Made by: Ahad Mohammad Aljebreen Directed by: Dr. Maram Computer science Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information. An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems. Its fields can be divided into a variety of theoretical and practical disciplines. Some fields, such as computational complexity theory (which explores the fundamental properties of computational and intractable problems), are highly abstract, while fields such as computer graphics emphasize real-world visual applications. Still other fields focus on challenges in implementing computation. For example, programming language theory considers various approaches to the description of computation, while the study of computer programming itself investigates various aspects of the use of programming language and complex systems. Human–computer interaction considers the challenges in making computers and computations useful, usable, and universally accessible to humans. History The earliest foundations...

Words: 1033 - Pages: 5

Premium Essay

What Sparked Your Interest In Computer Science

...1) What sparked your interest in computer science? How did this lead you to major in computer science and what do you hope to accomplish with your degree? In your answer, please describe how your experiences have influenced the goals you have for yourself. My interest in computer science started when I was a young child. I’ve always been interested in using the computer, and I’ve been fortunate enough to be born at the precipice of the technological age. This has allowed me to grow up alongside technology, getting bigger while technology helped the world get smaller. I am completely comfortable with technology and have an aptitude for figuring my way around any piece of technology. Using the computer feels natural to me; it feels like where I should be centering my hard work, ambition, and focus. When deciding a major for college, I...

Words: 1836 - Pages: 8

Premium Essay

A Survey of Career Opportunities in Computer and Information Sciences

...A Survey of Career Opportunities in Computer and Information Sciences Kazim ATASOY SUNY Fredonia Computer Science Author Note This paper was prepared for CSIT 490: Seminar on Selected Topics, Section 01, and Taught by Professor Zubairi. Abstract Computer and information science jobs are becoming to worlds’ biggest job opportunities. Most of the companies already integrated their system with technology and there are still some country side companies that haven’t integrated with technology but day by day this companies will be integrated too. Because, technology is more than being just a machine, it is being our life. Therefore, somebody should invent, produce and adapt our desires to this technology. In this research paper, I am going to find answers to some questions about career opportunities in computer and information sciences that creates all of this technologies. Question List 1. What are the major activities assigned to people employed in the CIS field? 2. What technical skills are necessary in order to be successful in CIS? 3. What educational preparation is required? 4. What kinds of organizations hire people in this occupation? 5. What kind of work would an entry-level bachelor's degree person would likely do? 6. What are the opportunities for advancement? What positions might someone hold as he or she advances? Give a sequence of positions starting from entry level position and also show expected salary in each position. 7. Are the opportunities...

Words: 4626 - Pages: 19

Free Essay

My Career Plan

...Right out of community college, I would like to move on to a New Jersey Institute of Technology, to further my studies in Computer Science and acquire a Bachelors degree. From there, I will go on with my studies for a master’s degree in the same institution as soon as I can. My long-term goal is to establish a computing institute wherever around the world, especially in Africa. I want to be able to plant a seed that grows to give the generation delight in exploring computers, devices, machines and to be able to manipulate its operations. With a strong passion for computers, I have managed to take computer based class during various vacations to better my skills and build on them. I managed to earn a diploma in Desktop Publishing and Graphic Design, and a General Certificate Course in Information and Communication Technology, and I went to serve as an intern for those who also took part in the course. In high school, I was an officer for the Computer club for my school and helped with my basic computer experience. As I moved to United States, I joined the First Robotics Team in my high school. I want to earn a Doctorate of Philosophy in Computer Science to help others with understanding of advance computer science and its principles. Self motivation is an important character trait and one I deem in a high esteem. I have learnt from everyday situations hearings and experiences that self motivation is the drive that proves success in any area of life. It’s a seed that breeds...

Words: 422 - Pages: 2

Premium Essay

Live Project

...The information technology course module has been designed with more of software part in the course whereas Computer Science includes more of computer hardware part like networking, chip level knowledge etc. Although some of the subjects are same in both the streams.  Answer Information Technology is the business side of computers - usually dealing with databases, business, and accounting. The cs engineering degree usually deals with how to build micro processors, how to write a compiler, and is usually more math intensive than IT. One way to think of it is one is dealing with information - data which would be the IT and the other is dealing with the "science" or "how to make it" of computers.   Answer    The exact answer depends heavily on the college or university in question, as each tends to split things slightly differently. As a generalization, there are actually three fields commonly associated with computers:  Information Technology - this sometimes also goes by the names "Information Systems", "Systems Administration", or "Business Systems Information/Administration". This is a practical engineering field, concerned primarily with taking existing hardware and software components and designing a larger system to solve a particular business function. Here you learn about some basic information theory, applied mathematics theory, and things like network topology/design, database design, and the like. IT concerns itself with taking building blocks such...

Words: 490 - Pages: 2

Premium Essay

Wou Computer Survey Lab#4

...Q1: Computer science I believe is more of a general overview of computers / computing. Software engineering on the other hand focuses on the coding / design of software. Computer Engineering focusses on the design and construction of computer hardware. Information Technology is more of a computer science class that caters to the person that wants to work for a business and design their computer systems for them. Whereas Information Systems, is close to Information Technology however focuses more on the business optimization and knowledge of that. Q2: Computer science involves a lot more and is not limited to just computers. If a new invention that came out tomorrow called the Teschescope would astronomy be called Teschescopy? No it wouldn’t. Computers is more of a tool used by computer science. Computer science is really a way to process information, and if one day a better idea rises to perform that task and replace computers I believe the name of the field would not change. Q3: #1: Job Details If you are a Director of Engineering or Senior Manager with PHP application development experience, please read on. Top Reasons to Work with Us This is an exciting opportunity with a growing SaaS company in San Francisco who helps solve innovation challenges that have never been solved before. We use PHP, Node, MySQL, Linux, cloud, and big data to support millions of users. What You Will Be Doing - Lead the Engineering and QA teams through technical application design...

Words: 594 - Pages: 3

Free Essay

Subjects Information

...Academic assistance is the defined as an activity for teaching available for students in all subjects including science, mathematics, management, business studies, business and law and information technology. In the academic assistance, all subject related helps is being provided to the students to meet specific subject related queries. It is defined as a tutoring practice, which provides support to the students in solving particular subject related queries. Apart from this, this makes the learning process easy for the students through providing ready to learn or tailor made notes and helps in solving specific subject problems. Basically, academic assistance is the new method of tutoring by a large number of institutions to facilitate the students in their studies. Academic assistance encompasses all types of subjects from English to Management. In the academic content development, a number of subjects such as business studies, marketing, accounting and financial management, operations management, qualitative techniques, history, science, statistics, dissertation and its proposal development, human resources and organizational behaviour are covered. In pertinent to the given subjects, academic assistance is a kind of help provided to the students in developing particular topic related subjects content. Academic assistance is not only limited to provide a notes specific to subjects, but also it covers a full helps in completing the project steps such as authentic data collection...

Words: 5329 - Pages: 22

Premium Essay

System Administrator

...Career Choice: Network and Computer Systems Administrator Business and Writing for the IT Professional July 26, 2009 Abstract A network and systems administrator is responsible for network security, installing new applications, implementing software updates, monitoring the integrity of the system, developing management programs, and performing routine backups. As has been noted throughout my research, there has been a decline in technology majors throughout the past couple of years, thus affecting the job market. The survey that was conducted on high school seniors, as well as research done by some universities, has proven that lack of information and interest affects this type of career choice. By properly informing potential technology students and offering them resources, we can better equip our future system and network administrators to perform to their potential. Topic Proposal Author Background An interest in computers came to my attention shortly after graduating from high school. I first involved myself in working with cameras and fixing them for several customers. The satisfying knowledge that I gained came from realizing that I could take apart, fix a piece of technology and do it well. Computers as a hobby came only after my brother gave me one to fix and keep for my use. Although I was daunted at first, I took apart and drew diagrams, to remember where the components where located. I had no previous experience from computers that I had learned at my...

Words: 1945 - Pages: 8

Premium Essay

Vocational Essay

...corporations as well as small businesses. Where there are business strategies to increase profit and efficiency, computers are almost always involved. I would like to introduce myself as a computer science major with a high interest in the intricacies of the business world. I have a passion for developing software and working with computer systems and because the business world is so vast and complicated a mixture of the two would create the fun, challenging, and satisfying work environment that I crave. I had such a great experience acquiring my undergraduate computer science degree at the University of Delaware that I know I will be receiving a similarly professional and interesting experience if I am welcomed back as a graduate student. In general, given my personality and work habits, I would like to be the employee in my future endeavors that is absolutely valuable to the organization I work for. Whether I am developing software or managing an entire IT system, having a business mindset and approach to the problems I will face will be useful and helpful aspect. It will be important as I think of solutions for my clients to realize they are doing business and if I can relate to and understand what they want, it will go a long way. Graduating with my MBA, I plan to use my hybrid education of computer science and business to enter the work force as a computer scientist with a high awareness in how the business world runs. Short term I would be very interested in working...

Words: 871 - Pages: 4

Free Essay

Gendered Subjects

...is it that women make up such a small percentage compared to men in this field? Is it because they are not capable? Or that they do not want to be associated with the “geek” culture of science technology? Women make up more than half of the college population in America,and today women are beginning to major in majors such as math and science in impressive numbers, but with computer science and technology it is a whole different story. On top of the small numbers of women entering the field, the typicality of a women to enter the field only to leave it after a few short years is extremely common. The number of women in computer science and technology who enter and remain in these fields is very low because of underlining cultural stereotypes and the higher demand on women to be in the home juggling with multiple responsibilities. Men compromise a whopping eighty to eighty-five percent of people who enroll in computer science related fields in the university level. Carnegie Mellon University in particular has a ten to one ratio of men compared to women in the field. In 2004-2005, the number of women pursuing Bachelor's degrees in Computer Science was a mere twenty percent (Fry, 2001). Ellen Spurtus, one of the few women in the technology field, remembers as a girl when she attended a computer camp with boy to girl ratio of six to one (Stross, 2008). After having a small look at some of the figures dealing with women in this industry, it is not hard to see that the women...

Words: 1621 - Pages: 7

Free Essay

Krishi Sahyog

...process of acquiring knowledge and understanding through thought, experience, and the senses. Image based cognitive e-learning is exactly the need of the hour, because, not all the farmers are educated enough to read through the website. This is exactly where images and videos solve the problem. Abstract— Krishi Sahyog is a web-based solution developed to provide basic education about farming techniques and usage of tools. The uniqueness of this project lies in the fact that it takes into account the present day farming scenario. Krishi Sahyog will help the farmers to understand various farming techniques and will acquaint them with the latest tools and technologies by means of video tutorials in regional languages. This Human Computer Interaction project, an e-learning website, is to help them get a hang of the latest technologies and the latest tools albeit not having any basic technical education, which will also make them aware of the market rate, owing to which they will be aware of the current rate of their product as compared to current market scenario. Also, the weather forecast feature will help them plan their crop accordingly. III. PREVIOUS WORK Today, 75% of our population is somehow related to the agriculture and allied activities but still contribution of agriculture to our economy is just 21%. We have attained overall growth of 8% but the growth in agricultural sector is not even 3.5%. One major reason for the poor condition of farmers is...

Words: 1649 - Pages: 7