9. Do Programming Exercise 3 from Chapter 5 using a function grade(score) that returns the letter grade for a score.
Q: What is an expert system, and how can a data warehouse help in its creation?
A: Introduction: Expert System is a computer-based decision-making system that uses a combination of fa...
Q: Q1: Consider the following instruction: Instruction1: AND Rd,Rs,Rt Instruction 2: SUB Rd, Rs, Rt
A: a ) ALU Operation is AND,BSrc will look to register,OpSel will tell ALU to perform AND. MemW is fal...
Q: Q1) Determine the output (in frequency domain) of a LTI System having impulse response of h(n) = {-1...
A: Solution: h(n) = { -1, 3, 1} and x(n) = {1, 0, 2} By using the convolution formula y(n) = x(n)*h(n) ...
Q: Question 4 a) Demonstrate with the use of simple python line codes on how to: (i) encrypt and (ii) ...
A: According to company guidelines I am able to anser first question only since other two questions are...
Q: following (make sure to number your answers): 1. Assign a value of 3.141 to the constant PI 2. Pr...
A: Ans: Code: pi = 3.141radius = float(input("Enter radius: "))VolumeOfSphere = (4*pi*radius*radius*ra...
Q: For the Boolean functions F(X,Y,Z) and E(X,Y,Z), as given in the following truth table: (a) List the...
A: Given: Given the Boolean functions F(X,Y,Z) and E(X,Y,Z), as given in the following truth table we...
Q: Question 1 a) A computer virus is a potentially damaging computer program that affects, or infects,...
A: Lets protect our Authorization lists or computer from the viruses, trojan, spyware and malwares. The...
Q: Write a C Program that ask the user to choose from 2 categories, then ask the user to enter two numb...
A: ANSWER:-
Q: QUESTION 1 To specify the location of an image we use: O the caddress> tag O the href attribute of t...
A: Answer is given as follows 1) We use src property to send our page to specific location. 2) As we c...
Q: ormation about each player. The UML diagram is given below. Player -name: string -symbol :char P...
A: given - Write a program with C# to Simulate a game of tic tac toe. A game of tic tac toe has two pla...
Q: KNN, decision tree: (Machine learning) Please ans question B and C specifically- 6. Consider a bi...
A: Writing it below
Q: This kind of data transmission allows data to be delivered in both directions on a signal carrier at...
A: As we know that the full duplex as mentioned is a data transmisssion which can transmit data in both...
Q: Why is it important to establish a relation between a UI prototype (or even UI sketches) and use-cas...
A: use case is a formal or simple way to represent how an information system interact with the environm...
Q: Controls and Methods What controls are possible as parameters for fade, hide, and toggle?
A: The above methods which are in the question are from jQuery(which is basically a javascript library)...
Q: Define software engineering and explore why it's important to use it in software development .
A: Introduction: Software engineering is a discipline of computer science that focuses on the design an...
Q: Given a string, write a method that returns the number of occurrences of substrings "baba" or "mama"...
A: Since no programming language is mentioned, I am using python. Algorithm: Start Implement a method ...
Q: Refresh your C++ skill Using function with 2D array 1. Create a global variable 2 dimensional array ...
A: Step-1: StartStep-2: Declare a global variable of 2-D array of size [3][5]Step-3: Call function init...
Q: purpose in making the Three Level ANSI SPARC Architecture ma
A: In 1971, the Database Task Force (DBTG) recognized the need for a two-tiered approach with views and...
Q: Which of the following can be considered as a piece of information? a. An email b. All of th...
A: A piece of information is just the data which required some space in computer and provide the inform...
Q: Implement a method with signature transfer(S, T) that transfers all elements from stack S onto stack...
A: Here,Implement a method with signature transfer(S, T) that transfers all elements fromstack S onto s...
Q: Is it correct to say that stub isn't a network topology? explain?
A:
Q: F H J M R S V 1 3 4 5 7 8. 9 10 11 12 low, middle, and high indices for each pass when using binary ...
A: Pass 1 Low : 0 Mid : 0+13/2 =6 High: 13 ----------------------------------- Pass 2 Low : 7 Mid : 7...
Q: "warni
A: given - How does canary work? What is the "warning" it will give you and when it will give you such ...
Q: fe O(g) g e N) fe o(g) e Duality ge m(f)
A:
Q: = ax+b is
A: 1) f(x) = ax+b is O(x2) 2) explain a condition where the code isn't O(x). also prove witness and gra...
Q: Given an input string, a non-empty substring subs, and a non-negative number n, compute recursively ...
A: Code works perfectly. I am providing code in java. Please use proper indentation for no error. Follo...
Q: In this Algorithm and Flowchart, create a manual sulotion then explain. Please Algorithm of Fibonacc...
A: ANS: Fibonacci series: if you ask the Nth term of Fibonacci series then it would be the sum of (N-1)...
Q: Look for an example of a cost overrun in an information systems development project by browsing the ...
A: He supplied information on an example of an information systems development project with cost overru...
Q: (a) Using a true table
A: A b a⇎b ¬(a⇎b) a ⊕ b 0 0 1 0 0 0 1 0 1 1 1 0 0 1 1 1 1 1 0 0
Q: Write a program that creates an array of 10 names. Display the names in reverse order. Reverse order...
A: Code: #include <iostream>#include <string> int main(){ std::string colour[10] = { "Blue...
Q: echnically
A: given - Attacks on cybersecurity that aren't technically basedNon-technical threats have their own s...
Q: probability that merge sort for array of length 8 makes exactly 12 comparisions
A: Answer is given below
Q: Instruction : SUB Rd, Rs, Rt a. What are the values of control signals generated by the control in F...
A: ALU: ALU stands for Arithmetic Logic Unit. It performs arithmetic and logic operations such as addit...
Q: Make a C program to input n numbers and will output (a) the sum of all positive odd integers, (b) th...
A: Here is the approach:- First take input from the user for the number of integers and then create th...
Q: Briefly discuss one (1) frequent issue that might arise as a consequence of ongoing usage of input d...
A: Input devices: Those devices which are used to give instruction to the computer is called an input d...
Q: Write a SQL query to retrieve the First_name of employees having any of the following SSN_NUMBER 123...
A: We have to fetch the record with the SSN number 123456789, 987654321.
Q: When the shell creates a new process to run a command, how does it know that a file is executable? I...
A: Introduction: The access rights of a file may help decide whether or not it can be utilised. On the ...
Q: When a child process utilises unnamed pipes to read the parent's message buffer, what happens normal...
A: Step 1 Introduction A traditional pipe is "unnamed" and only lasts as long as the making process it...
Q: Write a program that gets 2 or more command-line arguments. The last argument is a file that the pro...
A: Code: lis=list(input("Enter filenams: ").split())p=lis[-1]+".txt"file1 = open(p,"w") for i in rang...
Q: What are the implications of a distributed cloud for "Systems Analysis and Design"
A: What is distributed cloud? A distributed cloud is an architecture where multiple clouds are used to ...
Q: Using C# create a console app doing the following Write a method that takes two integers and displa...
A: Kindly Note: As per our company guidelines we are supposed to answer first 3 sub-parts. Kindly repos...
Q: Sequential and direct access are two methods for locating data in memory. Discuss why direct access ...
A: Answer the above questions are as follows:
Q: and carry out binary instructions. What exactly is binary's purpos
A: Binary can refer to any of the following:Binary 0 and 11. Binary is a binary system invented by Gott...
Q: 2. (a) Is it possible to have a forest with 13 vertices and 10 edges? (b) Is it possible to have an ...
A: INTRODUCTION: We need to tell that forest with 13 vertices and 10 edges.
Q: CPU Scheduling Please provide the following: Gantt Chart CPU Utilization Average Waiting Time ...
A:
Q: One of the disadvantages of the Bus topology that you should mention is the difficulty in reconnecti...
A: Introduction: Electrical connections between several points may be established via coaxial cable, UT...
Q: Convert the following two's complement binary number to decimal: 101001 (2) A) -23 B) 41 C) 9 D...
A: In two's complement representation, if the most significant bit (first from left, MSB) is 1, that me...
Q: Please provide a detailed explanation of how hybrid cloud systems like Dropbox work.
A: Hybrid cloud isn't a different type of cloud at all. Rather, it's a hybrid of private and public clo...
Q: What do you believe were the technological and political implications of the Soviets copy of the B-2...
A: In questions with many questions, we must answer the first.
Q: What is the distinction between SLA and HDD?
A: Introduction: Understanding SLA SLA is known as Service level agreement. It is a document agreement...
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- (Conversion) Write an assignment statement to convert temperature in degrees Fahrenheit to degrees Celsius. The formula for this conversion is Celsius=5/9(Fahrenheit32).# Question 4def costume_rating(costume_color, bling_value): """ Returns a function that calculates the number of candies to return based on the costume color, bling value, and phrase length. Args: costume_color (str): The color of your costume. Must be one of 'blue', 'red', 'green', 'yellow', 'purple', or 'orange'. bling_value (int): Represents how shiny your costume is. Must be a positive integer. Returns: A function that takes in one parameter: phrase (str): The phrase said by the trick-or-treater. >>> costume_rater = costume_rating('blue', 5) >>> costume_rater('19 Character Phrase') 85 >>> costume_rater('e') 0 >>> costume_rater('seven c') 1 >>> costume_rater = costume_rating('orange', 8) >>> costume_rater('hello i want candy') 14 >>> costume_rater = costume_rating('yellow', 5) >>> costume_rater('please give me…user_tickets = int(input())if user_tickets< 5:num_tickets=1else:num_tickets= user_ticketsprint('Value of num_tickets:', num_tickets)
- Subscripted variable is any type such as (A) Int (B) Float (C) Int, float or char (D) Char/* Program Name: BadDate.cpp Function: This program determines if a date entered by the user is valid. Input: Interactive Output: Valid date is printed or user is alerted that an invalid date was entered */ #include <iostream> bool validateDate(int, int, int); using namespace std; int main() { // Declare variables int year; int month; int day; const int MIN_YEAR = 0, MIN_MONTH = 1, MAX_MONTH = 12, MIN_DAY = 1, MAX_DAY = 31; bool validDate = true; // This is the work of the housekeeping() method // Get the year, then the month, then the day // This is the work of the detailLoop() method // Check to be sure date is valid if(year <= MIN_YEAR) // invalid year validDate = false; else if (month < MIN_MONTH || month > MAX_MONTH) // invalid month validDate = false; else if (day < MIN_DAY || day > MAX_DAY) // invalid day validDate = false; // This is the work of the endOfJob()…Practice -1-• Write a code to find the area and parameter of a square.• Requirements: – User enter the side of the square (S)– Calculate the area=SxS– Calculate the perimeter=4XS– Display the area and perimeter– Datatype is int. Practice -2-• Write a code to ask the user to enter his first name initial and last name initial the display. Below is a sample output.
- int main() { int i, salary[10], range[9]={0, 0, 0, 0, 0, 0, 0, 0, 0}; double gross[10], total[10]; string amount[9]={"$200 - $299", "$300 - $399", "$400 - $499", "$500 - $599", "$600 - $699", "$700 - $799", "$800 - $899", "$900 - $999", "$1000 and over"}; for (i=0; i<10; i++){ cout<<"Please enter gross sales of salespeople "<<i+1<<": "; cin>>gross[i]; total[i]=200+(gross[i]*0.09); salary[i]=total[i]; if (salary[i]>=200 && salary[i]<=299) range[0]=range[0]+1; else if (salary[i]>=300 && salary[i]<=399) range[1]=range[1]+1; else if (salary[i]>=400 && salary[i]<=499) range[2]=range[2]+1; else if (salary[i]>=500 && salary[i]<=599) range[3]=range[3]+1; else if (salary[i]>=600 && salary[i]<=699) range[4]=range[4]+1; else if (salary[i]>=700 && salary[i]<=799) range[5]=range[5]+1; else if (salary[i]>=800 && salary[i]<=899) range[6]=range[6]+1; else if (salary[i]>=900…Using Figure 3, c) write a piece of code in C# that calculates the area of a triangle displaying the area in the area textbox. [5] d) write a piece of code in C# that changes the colour of the form to Red when the form is loading. [5] e) write a piece of code in C# that changes the colour of the colour of the Height textbox to lime when the mouse hoovers over the Base textbox.Design an application that accepts 10 numbers and displays them in descending order.
- change normal body temperature to 36.5–37.5 °C #include<iostream>using namespace std;int main(){ float temp;cout<<"Enter the body temperature in Celsius\n";cin>>temp;if (temp>=37){cout<<"The quarantine of the patient is required\n";cout<<"Enter the name of the patient\n";string patient;cin>>patient;cout<<"Where the passenger is from\n";string place;cin>>place;cout<<patient<<" from "<<place<<"is to be quarantined at Hospital"; }cout<<"Normal temperature\n";}(Rounding Numbers) Function floor can be used to round a number to a specific decimal place. The statementy = floor(x * 10 + 0.5) / 10;rounds x to the tenths position (the first position to the right of the decimal point). The statementy = floor(x * 100 + 0.5) / 100;rounds x to the hundredths position (the second position to the right of the decimal point). Write a program that defines fourfunctions to round a number x in various ways:A. roundToInteger(number)B. roundToTenths(number)C. roundToHundredths(number)D. roundToThousandths(number)For each value read, your program should print the original value, the number rounded to the nearest integer, the number rounded to the nearest tenth, the number rounded to the nearest hundredth and the number rounded to the nearest thousandth.""" MovieGuide.py This program allows each theater patron to enter a value from 0 to 4 indicating the number of stars that the patron awards to the Guide's featured movie of the week. The program executes continuously until the theater manager enters a negative number to quit. At the end of the program, the average star rating for the movie is displayed. """ # Initialize variables. totalStars = 0 # total of star ratings. numPatrons = 0 # keep track of number of patrons averageStars = 0 numStars = 0 # Get input. numStarsString = input("Enter rating for featured movie: ") # Convert to double. numStars = float(numStarsString) # Write while loop here while numStars >= 0 and numStars <= 4: numPatrons = numPatrons + 1 # incrementor totalStars = totalStars + numStars # Get input. numStarsString = input("Enter rating for featured movie: ") # Convert to double. numStars = float(numStarsString) # Calculate average star rating averageStars - totalStars / numPatrons print("Average…