Create a script file voting_age that, given the name and age of citizen A, returns a message indicating if citizen A is eligible or not eligible to vote this coming election 2010. a. Test the script file voting_age for the following cases: i. Juan dela Cruz, age 33 ii. Zion Alexander, age 18
Q: What is GAC? What are the steps to create an assembly and add it to the GAC?
A: Global Assembly Cache: A Global Assembly Cache (GAC), which houses congregations, allows a small…
Q: What is portable executable (PE)?
A:
Q: A multi-layer neural network has its weight as below. All neurons use linear activation function.…
A:
Q: Depth-first search (DFS) is an algorithm for traversing or searching a tree, tree structure, or…
A: Solution: Given, Depth-first search (DFS) is an algorithm for traversing or searching a tree,…
Q: What is the Microsoft Intermediate Language (MSIL)?
A:
Q: There are a lot of benefits to having "attachment sites" that let you link your network to others.…
A: Given: What benefits do "attachment points" between various networks offer? Which role do theyplay…
Q: What is the common type system (CTS)?
A: Common Type System (CTS): The Common Type System (CTS), a standard that describes how type…
Q: What is a stack in an 8085 computer system?
A: Introduction: A stack is just a place to put things and adheres to the stack data structure concept.…
Q: First class I have finished Class Landingsport (self, ID, country, city) self.ID= ID…
A: Your python program is given below as you required with an output. #Python Source Code :- class…
Q: Suppose we are building a B-Tree. Pages are 4008 bytes. A key value takes 8 bytes, and a pointer to…
A: A self-balancing tree data structure known as a B-tree in computer science preserves sorted data and…
Q: Create a weighted connected graph with the following characteristics: • The assigned number of…
A: GRAPH_____________ A graph is a picture of dots called vertices and lines called edges. A weighted…
Q: What is the use of pipe?
A:
Q: Define - Signal
A: Introduction In this question we are asked about the Signal
Q: Graph links are given as A-C-3,A-D=8,B-E=2,C-F=6,C-E=1,D-E=2 (A)Give global distance vector table
A: The question is related to graph algorithms. As this is a multiple-type question (As (A) is related…
Q: What is the general process of designing networks?
A: Network planning and design is an iterative process that includes topological design, network…
Q: What is a stack in an 8085 computer system?
A: A stack is a reserved area for temporary storage of data/information is the RAM. the stack is…
Q: What is the purpose of wrapper script?
A:
Q: A multi-layer neural network has its weight as below. All neurons use linear activation function.…
A: Here is the diagram of the problem. See below steps.
Q: What is OLAP?
A: OLAP (On Line Analytical Processing)
Q: What is Covariance and Contravariance ?
A: In programming language type systems support the subtyping.
Q: How does assembly versioning work?
A: The answer to the question is given below:
Q: Are the following True or False. Support your answer with proofs or counter examples. (i) If L₁ (ii)…
A: In this question we have to agree or disagree with the statement and with proof Let's understand
Q: Write a Query to display odd records from student table?
A: Introduction: We must first order the rows by the column whose data we're interested in splitting…
Q: Using MySQL Workbench, create a new schema for this assignment and import assignment2.sql.…
A: ANSWER: Join the customers and shipping_details tables together based on PK/FK. The SQL should…
Q: Briefly discuss the important considerations before converting the drawing to pdf file.
A: PDF stands for Portable Document Format.
Q: Problem 3. Consider the following recurrence. -{r(n) = 37(n/2) + n² - 37(1/2) +-n² T(n) = otherwise…
A: Here is the solution of the above problem. see below steps.
Q: It's important to describe what sets FDM different from TDM. Would you be so kind as to send a…
A: Introduction: The process of combining several signals that are sent via a single carrier is known…
Q: Topic: JAVAFX/GUI) Draw the scene graph for the following code.
A: The question has been answered in step2
Q: What is the Microsoft Intermediate Language (MSIL)?
A: The Microsoft Intermediate Language (MSIL) is a bytecode language used by the .NET Framework. It is…
Q: If the packet size is 1KB and channel capacity is 109 bits/sec, What is the transmission time (In…
A: Given: packet size is : 1KB = 2^10 bits channel capacity = 10^9 bits/sec note : here channel…
Q: What is Multiplexing and what is its advantages?
A: Multiplexing is a communication technique that allows the sending and receiving of multiple data…
Q: bserve correct use of grammar on the possible outcome of the program.
A: We need to define a structure Body with two attributes feet and inches. Then read two elements into…
Q: Suppose the OS makes the following scheduling decisions: At time 0, Job 1 arrives and is placed on…
A: Dear Student, The answer to your question is given below -
Q: Brief the term collective communication?
A: A computer is a digital electronic machine that can be programmed to automatically perform a series…
Q: Suppose that you are a manufacturer of product ABC, which is composed of parts A, B, and C. Each…
A: A) An inventory update for PRODUCT and PART requirestwoor four database requests. One database…
Q: G MON 1 MW 2 HIN 3 وان 10 2 col2 Table B cola 5 4 10 1-9 col3 r -5 20 22 90 (-44) 10% 68 3 Activity…
A: Step-1: StartStep-2: Declare variable row and col, and take input from userStep-3: Declare variable…
Q: Background to the problem: A nutritional app assists users in assessing their dietary habits. For…
A: The correct answer for the above mentioned question is given in the following steps for your…
Q: Brief about MY_avail_tour_count function?
A: Your answer is given below.
Q: How can one tell what is real and what is fake while browsing the web?
A: What techniques can you use to distinguish between authentic and fake content on the internet? While…
Q: 5. Show that the following language is not regular. L = {a^b* : n>k}U {a¹bk : n ‡ k − 1} Hint:…
A: ANSWER:-
Q: a Pseudo code in python when using a BFS algorithm
A: BFS Algorithm: BFS mean breadth first algorithm is utilized to cross graph or tree utilizing…
Q: When surfing the web anonymously, what rules should be followed to ensure a smooth journey?
A: provided details on: traffic flow How to remain anonymous onlineYou may start by using a virtual…
Q: What is the common type system (CTS)?
A: Introduction: CTS defines and uses data types in.NETframework. CTS provides data types used by the…
Q: 4 bit 2’s Complement Multiplier INPUT A: 4 bit 2’s Complement number INPUT B: 4 bit 2’s Complement…
A: PART 1: a 4 bit controlled 2’s Complement Inverter as a subcircuit named 4BitInverter
Q: 10:Compare output Output differs. See highlights below. Special character legend Input 25000 1000 0…
A: The modified code has been given with output screenshot
Q: Can you join the table by itself in sql?
A: A database management system (or DBMS). It is essentially just a computer-based data storage system.…
Q: You have two numbers represented by a linked list, where each node contains a single digit. The…
A: In this question we need to write a program which takes two linked lists where each linked list…
Q: What does the "EnableViewState" property do? Why would I want it on or off?
A:
Q: What is Multiplexing and what is its advantages?
A:
Q: Can you join the table by itself in sql?
A: The solution to the given question is: In SQL you can join a table to itself by creating a named…
Create a script file voting_age that, given the name and age of citizen A, returns a message indicating if citizen A is eligible or not eligible to vote this coming election 2010.
a. Test the script file voting_age for the following cases:
i. Juan dela Cruz, age 33
ii. Zion Alexander, age 18
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- General Output Find Results 6. Filename: TriangleProblem_FamilyName If a, b and e represcent the three sides of a triangle, then the arca of the triangle is: A = /s + (s – a) + (s – b) * (s – c where: s = “tb+c Also the radius of the largest inscribed circle is given by: r_insc = 4 and the radius of the smallest circumscribed circle is: r_circ =- 2.0 a•b•c 4*A circ _inse Inscribed Circle Circumscribed Circle1. The timeclock.txt file contains the hours worked data for every employee as well as the shift they worked. The layout for the file is as follows: EMPLOYEE NUMBER, HOURS WORKED, SHIFT 2. The personnel.txt file contains the names of all employees and their hourly pay rates. The layout for the file is as follows: EMPLOYEE NUMBER, EMPLOYEE NAME, PAY RATE Note: Both the timeclock.txt and payroll.txt files are pre-sorted by EMPLOYEE NUMBER in ascending order. Business Rules 1. For hours <= 40, the employee gross pay is: HOURS WORKED PAY RATE 2. For hours> 40, the employee gross pay is: HOURS WORKED PAY RATE 1.5 3. For shift 3, add $1 per hour to the employee pay rate The program should: 1. Download both input files in the same folder that you will create your .py program. 2. Read both input files together. 3. Match the input files by the EMPLOYEE NUMBER. 4. For each record in the timesheet.txt file, write a record in a new output file named payroll,txt based on the business rules…The file london_weather.csv contains weather data for the years 1979 to 2020. The first five lines of this file are: date,cloud_cover,sunshine,global_radiation,max_temp,mean_temp,min_temp,precipitation,pressure,snow_depth19790101,2,7,52,2.3,-4.1,-7.5,0.4,101900,919790102,6,1.7,27,1.6,-2.6,-7.5,0,102530,819790103,5,0,13,1.3,-2.8,-7.2,0,102050,419790104,8,0,13,-0.3,-2.6,-6.5,0,100840,2 Note, in particular, that the dates are given as eight-digit integers in the format YYYYMMDD. There appears to be some inconsistencies in this data, as there are rows for which the column max_temp contains an entry that is smaller than the corresponding entry in min_temp. Write a Python function wrong_temperature(year) that returns the number of days in a given year for which the column max_temp contains an entry that is smaller than the corresponding entry in the column min_temp.
- PYTHON CODE Using Artists.csv (link below), write a query that returns all lines that are female artists only, with begin date greater than 1950 but no greater than 2000 Write a query that will return all lines of British Male artists, who's first names starts with the letter ‘A’ and has an end date earlier than 1990 Write a query that will write to a file all lines that have Japanese Artists who’s difference of end date and begin date exceeds 100 years. I.e. if artist begins in 1900 and ends in 2005, then they would be included in the output (2005-1900 = 105 years) Write a query that will write and find to a file the artist who’s been at the Museum the longest (the widest gap between Begin Date and End Date) Artists.csv: https://media.githubusercontent.com/media/MuseumofModernArt/collection/master/Artists.csvHW7_3 Ball bearings are hardened through a process known as quenching-submersion of the heated ball bearing in oil or water in order to cool it rapidly. The data below represent the temperature of the ball at various points in the cooling process time (sec) 0 30 Temp (C) 800 457 269 79 46 60 150 240 Plot the data (as discrete points). In the same figure window, also plot a) interpolating polynomial, (use polyfit and polyval) b) piecewise cubic interpolation (not-a-knot) and c) piecewise cubic interpolation (shape-preserving) Include a legend for the three methods used: polynomial interpolation, not-a-knot, shape-preserving. Then looking at the plot, choose the method you believe to be the best and smoothest fit of all these to predict the temperature after 3 minutes of cooling. Print the result using fprintf.Create a data file with 1000 lines. Each line in the file consists of a faculty first name, last name, rank, and salary. Faculty’s first name and last name for the ith line are FirstNamei and LastNamei. The rank is randomly generated as assistant, associate, and full. The salary is randomly generated as a number with two digits after the decimal point. The salary for assistant professor should be in the range from 50,000 to 80,000, for associate professor from 60,000 to 110,000, and for full professor from 75,000 to 130,000. Save the file in salary.txt. Here are some sample data:FirstName1 LastName1 assistant 60055.95FirstName2 LastName2 associate 81112.45……FirstName1000 LastName1000 full 92255.21 I'm using Python.
- Using Python with File Manipulation file name reservation.txt Use Python Programming - restaurant reservation program. The application offers different reservation rate for adults and children. (see sample below) RESTAURANT RESERVATION SYSTEMSystem Menua. View all Reservationsb. Make Reservationc. Delete Reservationd. Generate Reporte. Exit 2. When the VIEW RESERVATIONS is clicked, this will display all the reservations made: # Date Time Name Adults Children 1 Nov 10, 2020 10:00 am John Doe 1 1 2 Nov 25, 202011:00 am Michelle Franks 2 1 3 Dec 10, 2020 9:00 am Ella Flich 1 1 4 Dec 21, 2020 12:00 pmDylan Cloze 2 1 3. If the user selects MAKE RESERVATION, the user needs to input the following: a. Name (String)b. Date (String)c. Time (String)d. No of Adults (Integer)e. No of Children (Integer) Note: Adult is 500 per head and Kids is 300 per head reservation, save the data in a text file. 4. If DELETE RESERVATION is selected, the user needs to input the reservation number to remove the…Create a php file for this task. Depending on whether "Top Scorers" or "Leaders" has been clicked, you need to display the top 10 teams sorted by their total scores or total points earned. You have to read the whole CSV file when calculating total scores and total points. Top Scorers Display a table with two columns: Team and Scores. The team that has the highest number of scores is displayed first. You have to display the top 10 teams only. Note: in the CSV file, for the first row, you will see something like Arsenal FC,4-3,Leicester City FC that means for this particular match, Arsenal FC scored 4 and Leicester City FC scored 3. This rule applies to all other rows as well. For this "Top Scorers" display, you need to calculate the total score of every team and then display the top 10 teams. Leaders Display a table with two columns: Team and Points. The team that has the highest number of points is displayed first. You have to display the top 10 teams only. Note: in the CSV file, for…2. In the attached file, you will find the oil production for all countries that produce more than 1Mbpd, use pie chart and bar chart to show the percentage of production for each of them. country bpd United States 11567000 Russia 10503000 Saudi Arabia 10225000 Canada 4656000 Iraq 4260000 China 3969000 United Arab Emirates 2954000 Brazil 2852000 Kuwait 2610000 Iran 2546000 Kazakhstan 1937000 Norway 1744000 Мexico 1733000 Qatar 1297000 1258000 Nigeria Libya 1220000 Angola 1158000
- 2. In the attached file, you will find the oil production for all countries that produce more than 1Mbpd, use pie chart and bar chart to show the percentage of production for each of them. country bpd United States 11567000 Russia 10503000 Saudi Arabia 10225000 Canada 4656000 Iraq 4260000 China 3969000 United Arab Emirates 2954000 Brazil 2852000 Kuwait 2610000 Iran 2546000 Kazakhstan 1937000 Norway 1744000 Мехico 1733000 Qatar 1297000 Nigeria 1258000 Libya Angola 1220000 1158000 USING MAT LABEL PROGRAM Unted States Mexico Nonway 10 Kazakhatan van Kuwat Rusia Bras 3d Arat Emirates China Saud Arabia rag CanadaFile names: color_square.py, chessboard.py, test_squares.py Positions on a chess board are identified by a letter and a number. The letter identifies the column; the number identifies the row. See the image below. You will provide the functions that allow us to determine: if a chessboard square is either black or white, given its coordinates. If the row/column is valid or not for the standard chessboard For example, if we pass in “d” for the column and 4 for the row, your function that determines color should return the string: “BLACK”. If we pass in "k" for the column to your function that validates columns, that function should return the boolean False. Requirements: Your function for validating the column should be able to accept upper or lowercase strings as parameters. Your functions for validating the row should be able to accept integers or strings as parameters. Your function that determines black-or-white may assume that the input has been validated prior to us calling…An organization has a file named “staff.txt” that has 10 records of staffs having their id, name and salary. Using the concept of structure, you are required to write a program to ask the details of three more staffs and add them in the file. Also, finally you need to display all the records and the total salary paid by the organization.