3. Create a sequence that generates integers starting with the value 5. Each value should be three less than the previous value generated. The lowest possible value should be 0, and the sequence shouldn’t be allowed to cycle. Name the sequence MY_FIRST_SEQ.
Q: 5. Write a script that will print the following multiplicat 1 24 369 4 8 12 16 5 10 15 20 25
A: MATLAB: Here we we will use logic that for each i=1 to 5, print i, i*2, i*3,.... till i*i.…
Q: question 13 true or false please quickly thanks ! Essential attributes of good software include…
A: This question comes from Software Engineering which is a paper of Computer Science. Let's discuss it…
Q: Consider the relational schema below: Students(sid: integer, sname: string, degree: string, gpa:…
A: Solution- The relational schema is given as-Students(sid: integer, sname: string, degree: string,…
Q: The wind chill factor (WCF) measures how cold it feels with a given air temperature T (in degrees…
A: function wcf = calculateWCF(t, windSpeed) wcf = 35.7 + (0.6)*t - 35.7*(windSpeed^0.16) +…
Q: What is used to indicate a weak relationship in an ERD in Crow’s Foot notation? Dashed line…
A: Crow's Foot notation:- It uses different type of unique shapes and symbols to represent the elements…
Q: The _____suggests splits interfaces that are very large into smaller and more specific interface so…
A: SOLID Principles These are five principles of Object-Oriented class design. They are a bunch of…
Q: In addition to providing a standard for public-key certificate formats, X.509 specifies an…
A: Encryption Data is scrambled or enciphered throughout the encryption process so that only those with…
Q: The program should only use one loop, not two. It can be either a while loop or a for loop, but…
A: The given C++ program is as follows: #include<iostream> using namespace std; int main() {…
Q: Objectives: Construct and use 1D and 2D arrays Send arrays to methods Iterate through an array to…
A: Description: The following program is written in Java. It has three methods: winnerIndex,…
Q: How do people find opportunities for networking?
A: The answer is given below.
Q: Consider two different implementations of the same instruction set architecture. The instructions…
A: Instructions count = 106 10% class A = 0.1 20% class B = 0.2 50% class C = 0.5 20% class D = 0.2…
Q: Output differs. See highlights below. Your output 10 5 2 1 0 Expected output 10.0 5.0 2.5 1.25 0.625…
A: To get the decimal point in the output, the input user_num must be float. That means instead of int…
Q: Create a small script to use raw_input() built-in function to take a string input from the user,…
A: raw_input function: The raw_input method in Python is used to get user-provided data. To instruct…
Q: functional
A: Introduction The functional database is a kind of database that is demonstrated on the MySQL pattern…
Q: ... Engineering P6.15 You are given a two-dimensional array of values that give the height of a…
A: HISTORY OF C++:- C++ was invented in 1979 by Bjarne Stroustrup while working on his PhD thesis at…
Q: HTTPS is increasing in popularity and is rapidly replacing HTTP as a security protocol for web…
A: HTTPS is increasing in popularity and is rapidly replacing HTTP as a security protocol for web…
Q: Write a java program that ask user to input number of bits, apply formula of calculating range in…
A: Below I have provided a program for the given question. Also, I have attached a screenshot of the…
Q: Using the SELECT statement, query the invoice table to find the average total cost for all orders…
A: The question has been answered in step2
Q: b) Implement a stored PL/SQL function that finds a supplier who supplies the cheapest (lowest supply…
A: Solution: Given, Implement a stored PL/SQL function that finds a supplier who supplies the…
Q: Question 3 Students are required to create 5-character long passwords to access the library. The…
A: Q:: 3)
Q: What is Unified Modeling Language (UML).
A:
Q: What is a criterion of a table being in first normal form? All transitive functional…
A: The answer to the question is given below:
Q: ab ab ab 94 Figure 3.39. A model M. 2. Consider the system of Figure 3.39. For each of the formulas…
A: Given that, Set of states= {q1, q2, q3, q4} Start state= q3 Set of input alphabets= {a, b} q1=a'b'…
Q: What would need to be done to fix an issue with a chasm trap? Create a direct link…
A: What would need to be done to fix an issue with a chasm trap? Answer: Remove the middle table and…
Q: 0% class A, 20% class B, 50% class C, and 20% class D. What is the CPI for P2?
A: The formula to calculate CPI is : Summation(CPI * IC) Here CPI = Clocks Per Instruction IC =…
Q: answer the questions the best you can. go by what you would to to create a web server on aws! How…
A: Answer: To answer these questions first we need to understand what is web server Web server : A web…
Q: w a Collaboration Diagram for Railway Reservation Syste
A: Description: 1- A collaboration diagram, also called a communique diagram, is an illustration of…
Q: What is a key feature of fifth normal form? A key step in this normal form has every…
A: Database Management System (or DBMS) Essentially nothing more than a computer-based data storage…
Q: Write regular expressions for the following languages, then construct DFAs for each of the…
A: Here it is given that;
Q: You are to write a program, in $ ./Rainbow Passwords.txt Implementing a rainbow table where the file…
A: HISTORY OF THE JAVA:- Java is a Machin Understanding programming language and computing platform…
Q: What is software model?
A:
Q: 1) Say we want to create a 5-32 decoder with inputs A4--Ao. There would be 32 unique output circuits…
A: For X6 the input combination will be A4¯ A3¯ A2¯ A1¯ A0¯ For X10 ⇒A4¯ A3 A2¯ A1 A0¯ For X19 ⇒A4 A3¯…
Q: Code in Java using Do-while Loop Write a program that accepts an integer input. If the integer…
A: Code in Java using Do-while Loop
Q: QUESTION 1 Provide the code that will print the odd integers between 3000 and 3999 (inclusive)
A: Since the programming language is not mentioned, I have done the Code using Python 3.
Q: The CVSS vector of an Internet Key Exchange (IKE) Aggressive Mode with Pre-Shared Key vulnerability…
A: CVSS CVSS stands for Common Vulnerability Scoring System. This is used for capturing the principal…
Q: Try and answer the following about load balncers HAProxy configuration & documentation requirements…
A: The question has been answered in step2
Q: What is formal specification language?
A: Solution: Given, What is formal specification language.
Q: Based on the Entity-Relationship Diagram. Show the Relational Algebra AND Domain Relational…
A: Solution: Given,
Q: In Machine Learning and with reference to Recurrent Neural Network how does the vanishing gradient…
A: Machine learning is a subset of artificial intelligence and is broadly defined as the ability of…
Q: • This program inserts 10 floating point values into an array using for loop, the start value for…
A: In this question we have to solve this problem statement using C Let's code
Q: How are Trojan horses and drive-by downloads similar?
A: Please refer below for your reference: Trojan horses and drive-by downloads are similar in following…
Q: No, there is an issue with the functional dependency. No, it is not yet in 2NF. No, there are…
A: (d) yes, it is in 3 NF.
Q: Provide the code that will print the odd integers between 3000 and 3999 (inclusive)
A: As per question, we are asked to print the odd numbers between the range of 3000 and 399 inclusive…
Q: Consider the following disk characteristics: Average seek time = 8 msec Average rotational delay = 3…
A: Given data : Average seek time = 8 msec Average rotational delay = 3 msec maximum rotational delay =…
Q: 1. Identify the six hardware categories and place each product listed in the case in its appro-…
A: 1.Input devices: For raw data input. 2.Motherboard:All components of a computer communicate through…
Q: Database – Descriptions and explanations of • Indexes and the database architecture of your…
A: Indexing in the database is defined based on its indexing attributes. Two main types of indexing…
Q: I don't understand why CEO is an entity? For me, we link company to employee by the relation…
A: Yes, below i explain Why CEO not an entity,…
Q: what is the total number of maximal independent domi sets ? and find the total number of maximal…
A: Lets see the solution.
Q: 2. Generate a BLP lattice-structured system where the objects and subjects are appropriately…
A: Answer I recall correctly, BLP is an example of a Mac (mandatory access control) system, while the…
Q: Discuss in detail the application of internet on the following fields; mention popular systems that…
A: Internet:- Internet in transportation now incorporates a wide network using IoT to make embedded…
3. Create a sequence that generates integers starting with the value 5. Each value should be
three less than the previous value generated. The lowest possible value should be 0, and
the sequence shouldn’t be allowed to cycle. Name the sequence MY_FIRST_SEQ.
Step by step
Solved in 3 steps
- Transcribed Image Text A summer camp offers a morning session and an afternoon session. The list morningList contains the names of all children attending the morning session, and the list afternoonList contains the names of all children attending the afternoon session. Only children who attend both sessions eat lunch at the camp. The camp director wants to create lunchList, which will contain the names of children attending both sessions. The following code segment is intended to create lunchList, which is initially empty. It uses the procedure IsFound (list, name), which returns true if name is found in list and returns false otherwise. FOR EACH child IN morningList { <MISSING CODE> Which of the following could replace <MISSING CODE> so that the code segment works as intended? IF (IsFound (afternoonList, child)) { A APPEND (lunchList, child)#Data is given in the order: Serial Number | Item Name | Quantity | Priceprice_list = [["01","Keyboard",4,200.0],["02","Mouse",4,150.0],["03","Printer",2,300.0]] #Write Code to increase the price of all the items by 50 taka #Code1 #Write code to add a new item to the list using user input #Code2 print()#Print the list using nested loops #Code3 #Sample output given below: Enter Serial: 05Enter Item Name: MonitorEnter Quantity: 200Enter Price: 50 01Keyboard4250.0-----------------02Mouse4200.0-----------------03Printer2350.0-----------------05Monitor20050-----------------Q29:A teacher stores the most recent quiz scores for her class in the list scores. The first element in the list holds the maximum possible number of points that can be awarded on the quiz, and each remaining element holds one student’s quiz score. Assume that scores contains at least two elements. Which of the following code segments will set the variable found to true if at least one student scored the maximum possible number of points on the quiz and will set found to false otherwise?
- A list named parking_tickets has been defined to be the number of parking tickets given out by the city police each day since the beginning of the current year. (Thus, the first element of the list contains the number of tickets given on January 1; the last element contains the number of tickets g iven today.) Write some code that assigns the largest value found in parking_tickets to the variable most_ tickets. You may, if you wish, use one additional variable, k. Submit History: x - (9 of 9) - 02/28/21 6:19pmPYTHON 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.csvkeys = ['name', 'last', 'job_title', 'email']Faculty2 = Faculty = dict.fromkeys(keys)print(Faculty2) Use the dictionaries that you created for faculty members. Be sure that all the dictionaries have the same keys: name, last name, etc. If there are keys or values missing, add them. If you do not have the value, you can use 'n/a' or 'TBD'. Make a list of the dictionaries. Loop the list to print all the information available to each faculty member. In Python lang please.
- b. ID: A Name: 0. A summer camp offers a morning session and an afternoon session. The list morningList contains the names of all children attending the morning session, and the list afternoonList contains the names of all children attending the afternoon session. Only children who attend both sessions eat lunch at the camp. The camp director wants to create lunchList, which will contain the names of children attending both sessions. The following code segment is intended to create lunchList, which is initially empty. It uses the procedure IsFound (list, name), which returns true if name is found in list and returns false otherwise. FOR EACH child IN morningList 11 Which of the following could replace so that the code segment works as intended? IF ((IsFound (morningList, child)) OR (IsFound (afternoonList, child))) IF (ISFound (afternoonList, child)) APPEND (lunchList, child) APPEND (lunchList, child) a. { C. IF (IsFound (lunchList, child) ) IF (IsFound (morningList, child)) APPEND…Python program named "YourMuseumID_Exhibits.py" focusing on museum exhibit data: You have a list of dictionaries representing exhibits in a museum. Each dictionary contains the exhibit name, the number of artifacts on display, and the historical era it covers. Perform the following tasks: (a) Calculate and display the total number of artifacts on display for all exhibits in the museum. (b) Identify and display the exhibit with the highest number of artifacts on display. (c) Implement a function that takes a user-input exhibit name and searches for it in the list. If found, display the number of artifacts on display and the historical era it covers; if not found, print a message indicating that the exhibit is not in the museum. (d) Implement a sorting algorithm of your choice to sort the exhibits based on the number of artifacts on display in descending order and display the sorted list. Make sure to incorporate functions for each task and display the results in the main function with…4: In the Department of Mathematics and Computer Science (MACS), undergraduate course codes begin with either M (for Mathematics courses) or CS (for Computer Science courses). Thereafter, the code has four (4) digits. The first digit is the year of study, which is 1 to 6. The second digit is the credit hours, which is again 1 to 5. For Mathematics courses, the third and the fourth digits is just a running index to differentiate the course from the others. For Computer Science courses, the third digit is the area of specialisation, which is from 0 to 4. The fourth and the last digit is just a running index to differentiate the course from the others. a) Draw a finite state machine (FSM) accepting/generating course codes in MACS. b) As the result of a) above, write the corresponding C++ function int is_MACS_course(char * str) { I/ C++ code which will determine whether or not the given string, str, represents the correct code for MACS courses.
- Generate a table of conversions from inches to centimeters. Start the inches column at 0.0 and increment by 0.5 in. The last line should contain the value 20.0 in. (Recall that 1 in = 2.54 cm.) Include a table heading and column headings for the tables.When removing the string "G" form the following skip list, how many references within this skip list MUST be assigned a new value to reflect this change? E H K M N O 2 4List items have an index number. In the following list, which item has the index number of 3? ["John", "Harry", "Jesse", "John", "Harry", "Harry"] Select one: a. None O b. "John" O c. "Jesse" O d. "Harry"