For each tool, answer the following questions:
In: Computer Science
C++
What Should This Program Do?
Linked List Class
DRIVER – driver.cpp
Write a driver program (driver.cpp) that will do the following:
------------------------------------------------------------------------------
Sample Output
The linked list has been created.
I am appending several strings to the list.
boogeyman
ghost
scarecrow
witch
zombie
I am inserting vampire in the list.
boogeyman
ghost
scarecrow
vampire
witch
zombie
I am deleting ghost from the list.
boogeyman
scarecrow
vampire
witch
zombie
All list nodes have been removed.
---------------------------------------------------------------------------------------------------------------------
What to Turn In
In: Computer Science
You are hired to design a database for a fitness center. As the fitness center is expanding with more than one branch, they want to create a database to keep track of its customers, facilities and employees. Each branch has a unique id and address (building number, street, district, and city). A branch may have more than one facility (e.g. swimming pool, spa, etc.). Each facility must belong to only one branch, and the information for a facility is name and fees. In addition, each fitness branch offers different classes (such as Yoga, Pilates, Zumba, etc.). All classes should be led by at most one trainer, who is an employee.
Employees must work at one and only one branch. Each employee has an id, name, address (building number, street, district, and city) and can have multiple phone numbers. An employee can only be an admin, managing the facility or working as a clerk, or a trainer. An employee cannot be a trainer and an admin because the trainer id compensated an hourly wage while an admin staff paid a monthly salary. Trainers can train individual customers at different time sessions.
A customer must register at one branch. Each customer has a membership number, name (stored as first name and last name), email, and only one phone number. A customer can join more than one class or uses any number of facilities. A customer may also decide to be trained by at most one personal trainer.
Given the above description:
In: Computer Science
Select either OSSTMM, PTES, or ATT&CK and explain the importance of using a formal testing methodology. Clearly define what occurs in each phase of your selection and the significance of each phase.
In: Computer Science
In: Computer Science
C++ code
a program should prompt the user for the name of the output file. The file should be opened for write operations. Values calculated by the program will be written to this file. The program must verify that the file opened correctly. If the file did not open, an error message should be printed and the user should be prompted again. This should continue until the user supplies a valid filename.
In: Computer Science
Q1.Which of the following are propositions?
(a) The Apple Macintosh is a 256-bit computer.
(b) Why are you here?
(c) 8 + 10 = 12
Q2.Construct truth tables for each of the following compound propositions. What do you notice about the results?
(a) p∨(¬p⋏q)
(b) p∨q
Q3.For the following multiple choice question, pick one choice (1. A tautology; 2. A contradiction; 3. Neither) for each compound proposition.
For the following multiple choice question, pick one choice by circling it (you may have to give some explanations.)
Q4. Match the term on the left to the number of the matching expression on the right.
(a) converse of Q ଠS
(b) a tautology
(c) a contradiction 1. ¬Q àS
(d) equivalent to Q àS 2. ¬S v S ^ S
(e) inverse of Q à¬S
(f) contrapositive of QàS
Q5.Is this a valid argument?
Q6. For each of the premise-conclusion pairs below, give a valid step-by-step argument (proof) along with the name of the inference rule used in each step.
Premise: {p v q, q àr, p ^ s àt, ¬r,¬q àu ^ s}, conclusion:t.
Q7.Use the truth table to verify the following statement:
¬ (p ∨¬q) ∨(¬p ∧¬q) ≡ p
Q8.Let Q(n) be the predicate “n2≤ 49.”
Write Q(3), Q(−3), Q(5), Q(−5), Q(8), and Q(−8) and indicate which of these statements are true and which are false.
Q9.In 1–2, write a negation (¬) for each statement.
1.∃x ∈R, if x2≥ 1 then x ≤ 0.
PS: A composite number is a positive integer which is not prime (i.e., which has factors other than 1 and itself).
In: Computer Science
In this Pluralsight Lab, you will continue viewing the course C++ Fundamentals Including C++ 17 by Kate Gregory. Note that in this lab, some concepts are covered that we will cover in class later in the course. However, Having a introduction to these concepts will definitely aid in your understanding later in the course. Also, the application created in this lab will be used in subsequent Pluralsight labs.
You may access the course by following this link: https://app.pluralsight.com/library/courses/cplusplus-fundamentals-c17/table-of-contents
Instructions
Begin this lab by viewing the following modules in the Pluralsight course:
Then complete the following tasks:
C++
You may access the course by following this link: https://app.pluralsight.com/library/courses/cplusplus-fundamentals-c17/table-of-contents
and it have free trial for 4 days I thin you can access
In: Computer Science
DATA STRUCTURE C++ LANGUGAE
Create a notepad that allows the user to write text (char by
char) on the console. For this
purpose, the user should be able to control and track the movement
of the cursor. The user
should be able to navigate to any part of console (cursor control)
in order to perform any
insertion or deletion of words.
Internally, the notepad is composed of two-dimensional linked list
(every node should
comprise of data element (char) and 4 pointers for navigating left,
right, up, and down). Since
text can be written on multiple lines, each row of the 2D linked
list represents one line. Each
line is terminated when a newline is inserted in the ADT.
In: Computer Science
Systems Analysis and Design
Create a Context Diagram for a purchasing system.
Create this first level of a DFD for this system.
Help is much appreciated. Thank you..
In: Computer Science
Write a method with the following header to return an
array of integer values which are the largest values from each row
of a 2D array of integer values
public static int[] largestValues(int[][] num)
For example, if the 2D array passed to the method is:
8 5 5 6 6
3 6 5 4 5
2 5 4 5 2
8 8 5 1 6
The method returns an array of integers which are the largest
values from each row as follows:
8
6
5
8
In the main method, create a 2D array of integer values with the
array size 4 by 5 and invoke the method to find and display the
largest values from each row of the 2D array.
You can generate the values of the 2D array using the Math.random()
method with the range from 0 to 9.
In: Computer Science
JAVA programming
A zoo is developing an educational safari game with various animals. You will write classes representing Elephants, Camels, and Moose.
Part A: Think through common characteristics of animals, and write a class ZooAnimal.
☑ ZooAnimal should have at least two instance variables of different types (protected), representing characteristics that all animals have values for.
☑ It should also have at least two methods for behaviors that all animals do; these can simply print out a String stating what the animal is doing. (accessors and mutators are not behaviors). Include at least one parameterized constructor.
Part B ☑ Create classes Elephant, Camel, and Moose, all of which extend ZooAnimal. In each, include a default constructor that calls the parameterized superclass constructor.
☑ To one class (of Elephant, Camel, and Moose), add another instance variable specific to that type of animal. To another, add another behavior method. In a third, override a behavior from ZooAnimal.
Part C ☑ Create a test harness for the animal classes. In a main create at least one Elephant, Camel, and Moose, and show which behavior methods are usable for each.
☑ [EC+10] Create another animal class inheriting from one of your three types (doesn't have to be zoologically accurate, but should make some sense), and either add an instance variable or add or override a method. This class should also be tested in the harness.
In: Computer Science
What is a geographic information system (GIS)? What purpose does it server? Name the two major elements that are combined to make up a GIS.
In: Computer Science
Download the world.SQL and run it in MySQL. Now based on this database, write query that shows a) the most populated city in each country. b) the second most populated city in each country. c) the most populated city in each continent. d) the most populated country in each continent. e) the most populated continent. f) the number of people speaking each language. g) the most spoken language in each continent. h) number of languages that they are official language of at least one country. i) the most spoken official language based on each continent. (the language that has the highest number of people talking as their mother tongue) j) the country with the most (number of) unofficial languages based on each continent. (no matter how many people talking that language) k) the countries that their capital is not the most populated city in the country. l) the countries with population smaller than Russia but bigger than Denmark.
script is below---
DROP SCHEMA IF EXISTS world;
CREATE SCHEMA world;
USE world;
SET AUTOCOMMIT=0;
--
-- Table structure for table `city`
--
DROP TABLE IF EXISTS `city`;
CREATE TABLE `city` (
`ID` INT(11) NOT NULL AUTO_INCREMENT,
`Name` CHAR(35) NOT NULL DEFAULT '',
`CountryCode` CHAR(3) NOT NULL DEFAULT '',
`District` CHAR(20) NOT NULL DEFAULT '',
`Population` INT(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`));
--
-- Dumping data for table `city`
--
-- ORDER BY: `ID`
INSERT INTO `city` VALUES
(1,'Kabul','AFG','Kabol',1780000);
INSERT INTO `city` VALUES
(2,'Qandahar','AFG','Qandahar',237500);
INSERT INTO `city` VALUES (3,'Herat','AFG','Herat',186800);
INSERT INTO `city` VALUES
(4,'Mazar-e-Sharif','AFG','Balkh',127800);
INSERT INTO `city` VALUES
(5,'Amsterdam','NLD','Noord-Holland',731200);
INSERT INTO `city` VALUES
(6,'Rotterdam','NLD','Zuid-Holland',593321);
INSERT INTO `city` VALUES
(7,'Haag','NLD','Zuid-Holland',440900);
INSERT INTO `city` VALUES
(8,'Utrecht','NLD','Utrecht',234323);
INSERT INTO `city` VALUES
(9,'Eindhoven','NLD','Noord-Brabant',201843);
INSERT INTO `city` VALUES
(10,'Tilburg','NLD','Noord-Brabant',193238);
INSERT INTO `city` VALUES
(11,'Groningen','NLD','Groningen',172701);
INSERT INTO `city` VALUES
(12,'Breda','NLD','Noord-Brabant',160398);
INSERT INTO `city` VALUES
(13,'Apeldoorn','NLD','Gelderland',153491);
INSERT INTO `city` VALUES
(14,'Nijmegen','NLD','Gelderland',152463);
INSERT INTO `city` VALUES
(15,'Enschede','NLD','Overijssel',149544);
INSERT INTO `city` VALUES
(16,'Haarlem','NLD','Noord-Holland',148772);
INSERT INTO `city` VALUES
(17,'Almere','NLD','Flevoland',142465);
INSERT INTO `city` VALUES
(18,'Arnhem','NLD','Gelderland',138020);
INSERT INTO `city` VALUES
(19,'Zaanstad','NLD','Noord-Holland',135621);
INSERT INTO `city` VALUES
(20,'´s-Hertogenbosch','NLD','Noord-Brabant',129170);
INSERT INTO `city` VALUES
(21,'Amersfoort','NLD','Utrecht',126270);
INSERT INTO `city` VALUES
(22,'Maastricht','NLD','Limburg',122087);
INSERT INTO `city` VALUES
(23,'Dordrecht','NLD','Zuid-Holland',119811);
INSERT INTO `city` VALUES
(24,'Leiden','NLD','Zuid-Holland',117196);
INSERT INTO `city` VALUES
(25,'Haarlemmermeer','NLD','Noord-Holland',110722);
INSERT INTO `city` VALUES
(26,'Zoetermeer','NLD','Zuid-Holland',110214);
INSERT INTO `city` VALUES
(27,'Emmen','NLD','Drenthe',105853);
INSERT INTO `city` VALUES
(28,'Zwolle','NLD','Overijssel',105819);
INSERT INTO `city` VALUES
(29,'Ede','NLD','Gelderland',101574);
INSERT INTO `city` VALUES
(30,'Delft','NLD','Zuid-Holland',95268);
INSERT INTO `city` VALUES
(31,'Heerlen','NLD','Limburg',95052);
INSERT INTO `city` VALUES
(32,'Alkmaar','NLD','Noord-Holland',92713);
INSERT INTO `city` VALUES
(33,'Willemstad','ANT','Curaçao',2345);
INSERT INTO `city` VALUES
(34,'Tirana','ALB','Tirana',270000);
INSERT INTO `city` VALUES (35,'Alger','DZA','Alger',2168000);
INSERT INTO `city` VALUES (36,'Oran','DZA','Oran',609823);
INSERT INTO `city` VALUES
(37,'Constantine','DZA','Constantine',443727);
INSERT INTO `city` VALUES
(38,'Annaba','DZA','Annaba',222518);
INSERT INTO `city` VALUES (39,'Batna','DZA','Batna',183377);
INSERT INTO `city` VALUES (40,'Sétif','DZA','Sétif',179055);
INSERT INTO `city` VALUES (41,'Sidi Bel Abbès','DZA','Sidi Bel
Abbès',153106);
INSERT INTO `city` VALUES
(42,'Skikda','DZA','Skikda',128747);
INSERT INTO `city` VALUES
(43,'Biskra','DZA','Biskra',128281);
INSERT INTO `city` VALUES (44,'Blida
(el-Boulaida)','DZA','Blida',127284);
INSERT INTO `city` VALUES
(45,'Béjaïa','DZA','Béjaïa',117162);
INSERT INTO `city` VALUES
(46,'Mostaganem','DZA','Mostaganem',115212);
INSERT INTO `city` VALUES
(47,'Tébessa','DZA','Tébessa',112007);
INSERT INTO `city` VALUES (48,'Tlemcen
(Tilimsen)','DZA','Tlemcen',110242);
INSERT INTO `city` VALUES
(49,'Béchar','DZA','Béchar',107311);
INSERT INTO `city` VALUES
(50,'Tiaret','DZA','Tiaret',100118);
INSERT INTO `city` VALUES (51,'Ech-Chleff
(el-Asnam)','DZA','Chlef',96794);
INSERT INTO `city` VALUES
(52,'Ghardaïa','DZA','Ghardaïa',89415);
INSERT INTO `city` VALUES (53,'Tafuna','ASM','Tutuila',5200);
INSERT INTO `city` VALUES
(54,'Fagatogo','ASM','Tutuila',2323);
INSERT INTO `city` VALUES (55,'Andorra la Vella','AND','Andorra la
Vella',21189);
INSERT INTO `city` VALUES
(56,'Luanda','AGO','Luanda',2022000);
INSERT INTO `city` VALUES
(57,'Huambo','AGO','Huambo',163100);
INSERT INTO `city` VALUES
(58,'Lobito','AGO','Benguela',130000);
INSERT INTO `city` VALUES
(59,'Benguela','AGO','Benguela',128300);
INSERT INTO `city` VALUES
(60,'Namibe','AGO','Namibe',118200);
INSERT INTO `city` VALUES (61,'South Hill','AIA','',961);
INSERT INTO `city` VALUES (62,'The Valley','AIA','',595);
INSERT INTO `city` VALUES (63,'Saint John´s','ATG','St
John',24000);
INSERT INTO `city` VALUES (64,'Dubai','ARE','Dubai',669181);
INSERT INTO `city` VALUES (65,'Abu Dhabi','ARE','Abu
Dhabi',398695);
INSERT INTO `city` VALUES
(66,'Sharja','ARE','Sharja',320095);
INSERT INTO `city` VALUES (67,'al-Ayn','ARE','Abu
Dhabi',225970);
INSERT INTO `city` VALUES (68,'Ajman','ARE','Ajman',114395);
INSERT INTO `city` VALUES (69,'Buenos Aires','ARG','Distrito
Federal',2982146);
INSERT INTO `city` VALUES (70,'La Matanza','ARG','Buenos
Aires',1266461);
INSERT INTO `city` VALUES
(71,'Córdoba','ARG','Córdoba',1157507);
INSERT INTO `city` VALUES (72,'Rosario','ARG','Santa
Fé',907718);
INSERT INTO `city` VALUES (73,'Lomas de Zamora','ARG','Buenos
Aires',622013);
INSERT INTO `city` VALUES (74,'Quilmes','ARG','Buenos
Aires',559249);
INSERT INTO `city` VALUES (75,'Almirante Brown','ARG','Buenos
Aires',538918);
INSERT INTO `city` VALUES (76,'La Plata','ARG','Buenos
Aires',521936);
INSERT INTO `city` VALUES (77,'Mar del Plata','ARG','Buenos
Aires',512880);
INSERT INTO `city` VALUES (78,'San Miguel de
Tucumán','ARG','Tucumán',470809);
INSERT INTO `city` VALUES (79,'Lanús','ARG','Buenos
Aires',469735);
INSERT INTO `city` VALUES (80,'Merlo','ARG','Buenos
Aires',463846);
INSERT INTO `city` VALUES (81,'General San Martín','ARG','Buenos
Aires',422542);
INSERT INTO `city` VALUES (82,'Salta','ARG','Salta',367550);
INSERT INTO `city` VALUES (83,'Moreno','ARG','Buenos
Aires',356993);
INSERT INTO `city` VALUES (84,'Santa Fé','ARG','Santa
Fé',353063);
INSERT INTO `city` VALUES (85,'Avellaneda','ARG','Buenos
Aires',353046);
INSERT INTO `city` VALUES (86,'Tres de Febrero','ARG','Buenos
Aires',352311);
INSERT INTO `city` VALUES (87,'Morón','ARG','Buenos
Aires',349246);
INSERT INTO `city` VALUES (88,'Florencio Varela','ARG','Buenos
Aires',315432);
INSERT INTO `city` VALUES (89,'San Isidro','ARG','Buenos
Aires',306341);
INSERT INTO `city` VALUES (90,'Tigre','ARG','Buenos
Aires',296226);
INSERT INTO `city` VALUES (91,'Malvinas Argentinas','ARG','Buenos
Aires',290335);
INSERT INTO `city` VALUES (92,'Vicente López','ARG','Buenos
Aires',288341);
INSERT INTO `city` VALUES (93,'Berazategui','ARG','Buenos
Aires',276916);
INSERT INTO `city` VALUES
(94,'Corrientes','ARG','Corrientes',258103);
INSERT INTO `city` VALUES (95,'San Miguel','ARG','Buenos
Aires',248700);
INSERT INTO `city` VALUES (96,'Bahía Blanca','ARG','Buenos
Aires',239810);
INSERT INTO `city` VALUES (97,'Esteban Echeverría','ARG','Buenos
Aires',235760);
INSERT INTO `city` VALUES
(98,'Resistencia','ARG','Chaco',229212);
INSERT INTO `city` VALUES (99,'José C. Paz','ARG','Buenos
Aires',221754);
INSERT INTO `city` VALUES (100,'Paraná','ARG','Entre
Rios',207041);
INSERT INTO `city` VALUES (101,'Godoy
Cruz','ARG','Mendoza',206998);
INSERT INTO `city` VALUES
(102,'Posadas','ARG','Misiones',201273);
INSERT INTO `city` VALUES
(103,'Guaymallén','ARG','Mendoza',200595);
INSERT INTO `city` VALUES (104,'Santiago del
Estero','ARG','Santiago del Estero',189947);
INSERT INTO `city` VALUES (105,'San Salvador de
Jujuy','ARG','Jujuy',178748);
INSERT INTO `city` VALUES (106,'Hurlingham','ARG','Buenos
Aires',170028);
INSERT INTO `city` VALUES
(107,'Neuquén','ARG','Neuquén',167296);
INSERT INTO `city` VALUES (108,'Ituzaingó','ARG','Buenos
Aires',158197);
INSERT INTO `city` VALUES (109,'San Fernando','ARG','Buenos
Aires',153036);
INSERT INTO `city` VALUES
(110,'Formosa','ARG','Formosa',147636);
INSERT INTO `city` VALUES (111,'Las
Heras','ARG','Mendoza',145823);
INSERT INTO `city` VALUES (112,'La Rioja','ARG','La
Rioja',138117);
INSERT INTO `city` VALUES (113,'San Fernando del Valle de
Cata','ARG','Catamarca',134935);
INSERT INTO `city` VALUES (114,'Río
Cuarto','ARG','Córdoba',134355);
INSERT INTO `city` VALUES (115,'Comodoro
Rivadavia','ARG','Chubut',124104);
INSERT INTO `city` VALUES
(116,'Mendoza','ARG','Mendoza',123027);
INSERT INTO `city` VALUES (117,'San Nicolás de los
Arroyos','ARG','Buenos Aires',119302);
INSERT INTO `city` VALUES (118,'San Juan','ARG','San
Juan',119152);
INSERT INTO `city` VALUES (119,'Escobar','ARG','Buenos
Aires',116675);
INSERT INTO `city` VALUES (120,'Concordia','ARG','Entre
Rios',116485);
INSERT INTO `city` VALUES (121,'Pilar','ARG','Buenos
Aires',113428);
INSERT INTO `city` VALUES (122,'San Luis','ARG','San
Luis',110136);
INSERT INTO `city` VALUES (123,'Ezeiza','ARG','Buenos
Aires',99578);
INSERT INTO `city` VALUES (124,'San
Rafael','ARG','Mendoza',94651);
INSERT INTO `city` VALUES (125,'Tandil','ARG','Buenos
Aires',91101);
INSERT INTO `city` VALUES
(126,'Yerevan','ARM','Yerevan',1248700);
INSERT INTO `city` VALUES (127,'Gjumri','ARM','irak',211700);
INSERT INTO `city` VALUES
(128,'Vanadzor','ARM','Lori',172700);
INSERT INTO `city` VALUES (129,'Oranjestad','ABW','',29034);
INSERT INTO `city` VALUES (130,'Sydney','AUS','New South
Wales',3276207);
INSERT INTO `city` VALUES
(131,'Melbourne','AUS','Victoria',2865329);
INSERT INTO `city` VALUES
(132,'Brisbane','AUS','Queensland',1291117);
INSERT INTO `city` VALUES (133,'Perth','AUS','West
Australia',1096829);
INSERT INTO `city` VALUES (134,'Adelaide','AUS','South
Australia',978100);
INSERT INTO `city` VALUES (135,'Canberra','AUS','Capital
Region',322723);
INSERT INTO `city` VALUES (136,'Gold
Coast','AUS','Queensland',311932);
INSERT INTO `city` VALUES (137,'Newcastle','AUS','New South
Wales',270324);
INSERT INTO `city` VALUES (138,'Central Coast','AUS','New South
Wales',227657);
INSERT INTO `city` VALUES (139,'Wollongong','AUS','New South
Wales',219761);
INSERT INTO `city` VALUES
(140,'Hobart','AUS','Tasmania',126118);
INSERT INTO `city` VALUES
(141,'Geelong','AUS','Victoria',125382);
INSERT INTO `city` VALUES
(142,'Townsville','AUS','Queensland',109914);
INSERT INTO `city` VALUES
(143,'Cairns','AUS','Queensland',92273);
INSERT INTO `city` VALUES (144,'Baku','AZE','Baki',1787800);
INSERT INTO `city` VALUES (145,'Gäncä','AZE','Gäncä',299300);
INSERT INTO `city` VALUES
(146,'Sumqayit','AZE','Sumqayit',283000);
INSERT INTO `city` VALUES
(147,'Mingäçevir','AZE','Mingäçevir',93900);
INSERT INTO `city` VALUES (148,'Nassau','BHS','New
Providence',172000);
INSERT INTO `city` VALUES
(149,'al-Manama','BHR','al-Manama',148000);
INSERT INTO `city` VALUES
(150,'Dhaka','BGD','Dhaka',3612850);
INSERT INTO `city` VALUES
(151,'Chittagong','BGD','Chittagong',1392860);
INSERT INTO `city` VALUES
(152,'Khulna','BGD','Khulna',663340);
INSERT INTO `city` VALUES
(153,'Rajshahi','BGD','Rajshahi',294056);
INSERT INTO `city` VALUES
(154,'Narayanganj','BGD','Dhaka',202134);
INSERT INTO `city` VALUES
(155,'Rangpur','BGD','Rajshahi',191398);
INSERT INTO `city` VALUES
(156,'Mymensingh','BGD','Dhaka',188713);
INSERT INTO `city` VALUES
(157,'Barisal','BGD','Barisal',170232);
In: Computer Science
Describe how five career areas can benefit from computer systems..
In: Computer Science