Answer:
hi,hi,hi,hi,hi,hi,hi,hi,hi,hi,hi,hi,hi
Assume the size of an integer array is stored in $s0 and the address of the first element of the array in the memory is stored in $s1. Write a program to populate the array with Fibonacci numbers. The Fibonacci sequence begins with 0 and then 1, each following number is the sum of the previous two numbers. Ex: 0, 1, 1, 2, 3, 5, 8, 13. Assume the size of the array is always at least 1.Ex: If $s0 and $s1 are initialized in the simulator as 5 and 5000, the data memory starting at address 5000 will containAddresses Data5000 05004 15008 15012 25016 3
A program to populate the array with Fibonacci numbers. The Fibonacci sequence begins with 0 and then 1, each following number is the sum of the previous two numbers is given below
The Programpublic class Fibonacci
{
public static int fibonacci(int n)
{
if (n == 0)
return 0;
else if (n == 1)
return 1;
else
return fibonacci(n - 1) + fibonacci(n - 2);
}
public static void main(String[] args)
{
System.out.println(fibonacci(11));
}
}
We can also use recursion
// Fibonacci Series using Recursion
#include <bits/stdc++.h>
using namespace std;
int fib(int n)
{
if (n <= 1)
return n;
return fib(n - 1) + fib(n - 2);
}
int main()
{
int n = 9;
cout << fib(n);
getchar();
return 0;
}
The Output is 34.
The original recursion tree is:
fib(5)
/ \
fib(4) fib(3)
/ \ / \
fib(3) fib(2) fib(2) fib(1)
/ \ / \ / \
fib(2) fib(1) fib(1) fib(0) fib(1) fib(0)
/ \
fib(1) fib(0)
Read more about programming here:
https://brainly.com/question/23275071
#SPJ1
27. The device name I dev/ hda3 refers to: a. the third partition on the first IDE hard disk b. the third partition on the first SCSI hard disk c. the third IDE hard disk d. the swap partition stored on a boot disk
c.the third IDE hard disk
Write a program to input two integer values and find out
whether the first or the second number is greater.
it is easy
there is photo ok
How are most gamepads installed on devices?
Answer:
Plug and Play
Explanation:
most modern game pads are you just need to plug into a port and then you are free to use without any setting up.
In a FOR loop, if you declare a variable in the initializer, it exists only inside of the FOR loop.
Question 3 options:
True
False
Answer:
True
Explanation:
If you declare a variable in the initializer, it is local to the loop
In a FOR loop, if you declare a variable in the initializer, it exists only inside of the FOR loop is a true statement.
Can you declare a variable on a for loop?It is often seen that variable which acts in control of a for loop is required only for the aim of the loop and it cannot be used in another.
Conclusively, it is therefore likely to state the variable inside the initialization part of the for loop.
Learn more about loop from
https://brainly.com/question/26568485
Select the correct text in the passage.
Identify the value contrast in the description of the image.
Melissa is designing an image about wildlife. In one of the pictures, she places images of a zebra, a lion, a few deer, and some crawling insects.
She creates a dry, earth-colored background for the image. Lastly, she adds a few birds flying across the sky to complete the wildlife image.
Answer:
a dry, earth colored backround
Explanation:
The definition of value contrast is the the difference between light and dark and the areas in between
Which wireless probe is designed to scan and record wireless signals within its range at regular intervals and report the information to a centralized database
Wireless probe are often referred to as a device that is said to monitor the airwaves for RF traffic. A standard wireless device is designed to scan and record wireless signals within its range at regular intervals and report the information to a centralized database
Wireless device probe consist of a standard wireless device, such as a portable laptop computer which at regular intervals, during the normal course of operation, can scan and record wireless signals.Desktop probe are also known as a standard desktop PC that often uses a universal serial bus (USB) wireless network interface card adapter to monitor the RF frequency.
Dedicated probe are made to monitor the RF frequency for transmissions.
Learn more from
https://brainly.com/question/14329343
Enter the decimal equivalent of the exponent of the following floating point binary number.
0 00000101 1.00100000000000000000000
Decimal exponent:
Answer:
11.125
Explanation:
The binary numeral system uses the number 2 as its base (radix). As a base-2 numeral system, it consists of only two numbers which are 0 and 1. In order to convert binary to decimal, basic knowledge on how to read a binary number might help. As I cannot share links over Brainly I won't be able to give resources, but usually a simple search will bring up videos / websites that will help!
Hopefully this is correct, have a nice day! :D
A trial-and-error method of problem solving used when an algorithmic or mathematical approach is called
A trial-and-error method of problem solving used when an algorithmic or mathematical approach is called: heuristics.
An algorithm can be defined as a standard formula (procedures) which comprises a set of finite steps or instructions, that is typically used for solving a problem on a computer.
The three (3) basic building blocks (constructs) used in an algorithm are:
Iteration.Sequence.Selection.Heuristics can be defined as a trial-and-error method used in solving a problem when an algorithmic or mathematical approach is not feasible or practical.
Hence, heuristics typically involves the use of a functional methodology that is not completely structured as an algorithmic or mathematical approach, when solving a problem.
Read more: https://brainly.com/question/25395113
tên trong pascal gồm những thành phần nào?
Explanation:
Pascal phân biệt ba loại tên: + Tên dành riêng: là tên được ngôn ngữ lập trình quy định dung với ý nghĩa riêng xác định. người lập trình không được sử dụng với ý nghĩa khác. Ví dụ (Trong pascal): program, uses, const, type, var, begin, end.
- JAVA - Okay I have been attempting this for the past hour and I am really stuck and keep getting an error... The error says that I keep missing a main thread but its there... help!
Given a main program that searches for the ID or the name of a student from a text file, complete the findID() and the findName() methods that return the corresponding information of a student. Then, insert a try/catch statement in main() to catch any exceptions thrown by findID() or findName(), and output the exception message. Each line in the text file contains the name and the ID of a student, separated by a space.
Method findID() takes two parameters, a student's name and a Scanner object containing the text file's contents. Method findID() returns the ID associated with the student's name if the name is in the file, otherwise the method throws an Exception object with the message "Student ID not found for studentName", where studentName is the name of the student.
Method findName() takes two parameters, a student's ID and a Scanner object containing the text file's contents. Method findName() returns the name associated with the student's ID if the ID is in the file, otherwise the method throws an Exception object with the message "Student name not found for studentID", where studentID is the ID of the student.
The main program takes three inputs from a user: the name of a text file (String), a user choice of finding the ID or the name of a student (int), and the ID or the name of a student (String). If the user choice is 0, findID() is invoked with the student's name as one of the arguments. If the user choice is 1, findName() is invoked with the student's ID as one of the arguments. The main program finally outputs the result of the search or a message if an exception is caught.
Ex: If the input of the program is:
roster.txt 0 Reagan
and the contents of roster.txt are:
Reagan rebradshaw835
Ryley rbarber894
Peyton pstott885
Tyrese tmayo945
Caius ccharlton329
the output of the program is:
rebradshaw835
Ex: If the input of the program is:
roster.txt 0 Mcauley
the program outputs an exception message:
Student ID not found for Mcauley
Ex: If the input of the program is:
roster.txt 1 rebradshaw835
the output of the program is:
Reagan
Ex: If the input of the program is:
roster.txt 1 mpreston272
the program outputs an exception message:
Student name not found for mpreston272
import java.util.Scanner;
import java.io.FileInputStream;
import java.io.IOException;
public class LabProgram {
public static String findID(String studentName, Scanner infoScnr) throws Exception {
/* Type your code here. */
}
public static String findName(String studentID, Scanner infoScnr) throws Exception {
/* Type your code here. */
}
public static void main(String[] args) throws IOException {
Scanner scnr = new Scanner(System.in);
String studentName;
String studentID;
String studentInfoFileName;
FileInputStream studentInfoStream = null;
Scanner studentInfoScanner = null;
// Read the text file name from user
studentInfoFileName = scnr.next();
// Open the text file
studentInfoStream = new FileInputStream(studentInfoFileName);
studentInfoScanner = new Scanner(studentInfoStream);
// Read search option from user. 0: findID(), 1: findName()
int userChoice = scnr.nextInt();
// FIXME: findID() and findName() may throw an Exception.
// Insert a try/catch statement to catch the exception and output the exception message.
if (userChoice == 0) {
studentName = scnr.next();
studentID = findID(studentName, studentInfoScanner);
System.out.println(studentID);
}
else {
studentID = scnr.next();
studentName = findName(studentID, studentInfoScanner);
System.out.println(studentName);
}
studentInfoStream.close();
}
}
Answer:
import java.util.Scanner;
import java.io.FileInputStream;
import java.io.IOException;
public class LabProgram {
public static String findID(String studentName, Scanner infoScnr) throws Exception {
while (infoScnr.hasNextLine()) {
String[] parts = infoScnr.nextLine().split(" ");
if (parts[0].trim().equals(studentName)) {
return parts[1].trim();
}
}
throw new Exception("Student ID not found for " + studentName);
}
public static String findName(String studentID, Scanner infoScnr) throws Exception {
while (infoScnr.hasNextLine()) {
String[] parts = infoScnr.nextLine().split(" ");
if (parts[1].trim().equals(studentID)) {
return parts[0].trim();
}
}
throw new Exception("Student ID not found for " + studentID);
}
public static void main(String[] args) throws IOException {
Scanner scnr = new Scanner(System.in);
String studentName;
String studentID;
String studentInfoFileName;
FileInputStream studentInfoStream = null;
Scanner studentInfoScanner = null;
// Read the text file name from user
studentInfoFileName = scnr.next();
// Open the text file
studentInfoStream = new FileInputStream(studentInfoFileName);
studentInfoScanner = new Scanner(studentInfoStream);
// Read search option from user. 0: findID(), 1: findName()
int userChoice = scnr.nextInt();
try {
if (userChoice == 0) {
studentName = scnr.next();
studentID = findID(studentName, studentInfoScanner);
System.out.println(studentID);
} else {
studentID = scnr.next();
studentName = findName(studentID, studentInfoScanner);
System.out.println(studentName);
}
} catch (Exception ex) {
System.out.println(ex.getMessage());
}
scnr.close();
studentInfoStream.close();
}
}
Explanation:
- You should call your file the same as your class (i.e., LabProgram.java)
- I added a try/catch to both find calls, to catch the exception
- The find methods are very similar, they loop through the lines of the roster, splitting each line at a space and doing string comparison.
How does the technology affect you daily living? Give situations where you use technology and how it helped you.
Answer:
Technology affects the way individuals communicate, learn, and think. It helps society and determines how people interact with each other on a daily basis. Technology plays an important role in society today. It has positive and negative effects on the world and it impacts daily lives. We are living in an era where technological advances are common. The internet and cell phones are some examples. However, with technological advances, there’s a downside to it all.
some body help me
how is the relationship between employment and education write in short
Answer:
More education leads to better prospects for earnings and employment.
In the space below, explain how the Table Tools can be accessed
Answer:
Click in the cell (or select multiple cells) that contains text you want to align. The Table Tools tab appears. Click the Layout tab under the Table Tools heading. … If you change the alignment of blank cells, any new text you type in those blank cells will appear according to the alignment you choose.
Explanation:
Answer:
Creating a Table
1) Click the Insert tab on the Ribbon
2) Click on Table
3) Highlight the number of columns and rows you’d like
OR
4) Click Insert Table
5) Click the arrows to select the desired number of columns
6) Click the arrows to select the desired number of rows
7) Click OK
Explanation:
4. Suppose you replace the hard disk in the previous question with an optical drive like a DVD drive. The drive you use has an average access time of 185ms and can-do sustained reads at 1600 Kbytes per second. How long will it take, including access time, to read the same 750 Kbytes off this optical disk (again, assuming all the data is in sequential sectors on same track)
The total time it will take to read the same 750 Kbytes off the optical disk is 653.75 ms
Considering the parameters given in the question, the total time taken to read the same drive is the addition of the average access time together with the time to transfer the data.
Mathematically;
Total Time taken = Access time (avg.) + data transfer time
where;
access time(avg.) = 185 msthe data transfer time can be estimated by using the formula:
= required quantity of data transferred/ speed of data transfer
= 750 kbytes ÷ 1600 Kbytes/s
= 0.46875 s
= 468.75 ms
∴
Total Time taken = 185 ms + 468.75 ms
= 653.75 ms
Learn more about data transfer time here:
https://brainly.com/question/9381456?referrer=searchResults
Which term describes the process of training a machine to do simple, repetitive tasks, and adapt or correct its performance based on changing conditions at speed and scale?
The term which describes the process of training a machine to do simple, repetitive tasks, and adapt or correct its performance based on changing conditions at speed and scale is: Intelligent automation.
An intelligent automation is also referred to as cognitive automation and it can be defined as a combination of two automation technologies such as:
Artificial intelligence (AI).Robotic process automation.Basically, intelligent automation involves the use of both artificial intelligence (AI) and robotic process automation to build a smart computer-controlled robot or machine that is capable of performing and handling simple, repetitive tasks, while adapting or correcting its performance based on changing conditions at a particular speed and scale.
Read more: https://brainly.com/question/21656851
Answer:
Don't look at this answer bubble! Give the answer bubble above me the credit he deserves!
Explanation:
4.(L.5.1.A) Select the sentence that includes an interjection,
Did we win the tournament?
ОО
Hurray, we won the tournament!
Although we arrived late to the tournament, we still won.
We arrived late to the tournament, but we still ended up winning
Answer:
Hurray, we won the tournament!
Explanation:
hurray is an interjection just like yikes, uh-oh, and others
A _____ derives its name from the fact that a collection of multiple entries of the same type can exist for any single key attribute occurrence.
..........................................
Answer:
nice
Explanation:
Answer:
*gasp* OBJ?! I'm honored.
What is the stdio.h header file ?
9.1 a. What is a device register? b. What is a device data register? c. What is a device status register?
(a) A device register is a register (or memory location) that is used for data transfer
to/from an input/output device. It provides a means of communication between the
processor and the input/output device. The processor can poll this register to find out
whether it has received an input or it can send an output from/to the specific device that the device register belongs to. In memory mapped I/O device registers are dedicated memory locations for each I/O device. There may be more than one device register (dedicated memory location) for one device.
(b) A device data register is a device register (a dedicated memory location in
memorymapped I/O) that holds the data that is to be input/output.
(c) A device status register is a device register (a dedicated memory location in
memorymapped I/O) that indicates the status of the input/output. It allows for the
processor to know whether or not input/output of the value in the device data register has occurred. Basically it is an important step to achieve synchronization in an asynchronous I/O system.
A ) Registered Devices means the MAC Address of a network interface on a Compatible Device in the name of the Customer registered (in a manner as ASK4 shall from time to time determine) to receive the Service and/or an Additional Service.
b) A device data register is a device register (a dedicated memory location in memorymapped I/O) that holds the data that is to be input/output. (c) A device status register is a device register (a dedicated memory location in memorymapped I/O) that indicates the status of the input/output.
(c) A device status register is a device register (a dedicated memory location in memorymapped I/O) that indicates the status of the input/output. It allows for the processor to know whether or not input/output of the value in the device data register has occurred.
What is the purpose of using status register?The status register lets an instruction take action contingent on the outcome of a previous instruction. Typically, flags in the status register are modified as effects of arithmetic and bit manipulation operations. For example, a Z bit may be set if the result of the operation is zero and cleared if it is nonzero.
To learn more about The status register, refer
https://brainly.com/question/24209220
#SPJ2
Microsoft PowerPoint is an example of a(n) _____ application.
1. utility
2. productivity
3. education
4. entertainment
Microsoft PowerPoint is an example of a utility application. Hence, option A is correct.
What is meant by utility application?Utility apps fulfill the user's functional requirements by doing routine tasks that would otherwise need to be done physically. They can be as simple as paying the bills or updating field workers' employment status.
Utility software is software that aids in analyzing, configuring, optimizing, or managing a computer. It maintains the computer infrastructure, as opposed to application software, which is used to carry out tasks that primarily benefit end users.
Database software is not utility software. Examples of utility software include text editors, disc defragmenters, and antivirus programs.
Thus, option A is correct.
For more details about utility application, click here:
https://brainly.com/question/13014396
#SPJ2
Answer: B: productivity
Explanation: I just finished the assignment "PowerPoint is a productivity application that helps companies and students give presentations."
Trong mạng internet, chúng tôi thay đổi công nghệ mạng LAN sang một công nghệ
mới. Những lớp nào trong bộ giao thức TCP / IP cần được thay đổi?
Answer
ké
Explanation:
Select the correct answer. Nancy has made a small web page with the new features of HTML5. She has to show this web page in school. Which version of Internet Explorer (IE) should her school computer have to support the latest elements of HTML5? ОА. IES OB. IE 10 OC. IE 7 OD. IE 6 hvext Reset
Answer:
IE 10
Explanation:
It is the newest version in the list of options
IBM’s system that is built on the middle ground approach to AI.
Answer:
IBM Watson is AI for business. Watson helps organizations predict future outcomes, automate complex processes, and optimize employees' time.
Explanation:
Does anyone have the answer for the project stem 6.4 code practice
Answer:
#This imports the simplegui module
import simplegui
#This defines the draw_handler function
def draw_handler(canvas):
#The next five lines draws the boundaries of the polygon, in white
canvas.draw_polygon([(300, 400), (550, 400), (550, 550), (300, 550)], 2, "White")
canvas.draw_polygon([(275, 400), (425, 300), (575, 400)], 2, "White")
canvas.draw_polygon([(400, 475), (400, 550), (450, 550), (450, 475)], 2, "White")
canvas.draw_polygon([(325, 450), (325, 500), (375, 500), (375, 450)], 4, "White")
canvas.draw_polygon([(525, 450), (525, 500), (475, 500), (475, 450)], 4, "White")
#The main method begins here
#This creates the frame of the polygon
frame = simplegui.create_frame('House', 600, 600)
#This sets the background as black
frame.set_canvas_background("Black")
#This calls the draw_handler method
frame.set_draw_handler(draw_handler)
#This starts the frame
frame.start()
Explanation:
works for question 1 and 2! your welcome
what is the meaning of s used in 0 and 1 in computer .
Answer:
A switch, unless it's busted, can be either on or off, closed or open. A switch that is “on” or “closed” passes electrical signal through it, while a switch that is “off” or “open” blocks that signal. Computer Scientists represent an “on” switch with a 1 and an “off” switch with a 0.
Explanation:
C++ pleaseProblemIn the IDE to the left, the class MP3 is already defined. Complete the class Podcast that inherits from MP3. This class should do the following things:Inherit the constructor such that Podcast has the following attributes:title - a string that is the title of the episodelength - an integer that has the length of the podcast in secondsgenre - a string that is the genre of the podcastname - a string that is the name of the podcastdate - a string that represents when the podcast was released to the publicDO NOT EDIT the specified code or you might not receive credit for your work!Hint: Connecting the ConstructorsNote that a few of the attributes are present in both the MP3 and Podcast classes. To connect their constructors, you can use the same parameter values for the attributes that are the same, then use different parameter values for the attributes that are different. Finally, set the attributes to the parameters appropriately for the ones that are different. For example:Podcast(string t, int l, string g, string n, string d) : MP3(t, l, g, n, d) { name = n; date = d;}Given Code#include using namespace std;//DO NOT EDIT code below this lineclass MP3 { public: MP3(string t, int l, string g, string al, string ar) { title = t; album = al; length = l; genre = g; artist = ar; } string GetTitle() { return title; } void SetTitle(string new_title) { title = new_title; } int GetLength() { return length; } void SetLength(int new_length) { length = new_length; } string GetGenre() { return genre; } void SetGenre(string new_genre) { genre = new_genre; } string GetAlbum() { return album; } void SetAlbum(string new_album) { album = new_album; } string GetArtist() { return artist; } void SetArtist(string new_artist) { artist = new_artist; } private: string title; int length; string genre; string album; string artist;};
Answer:
brow srri i got no clue
Explanation:
IM GOING TO GO BANKRUPT
Answer:
get some insurance to fix your bankrupt problem
Explanation:
Which term describes the process of training a machine to do simple, repetitive tasks, and adapt or correct its performance based on changing conditions at speed and scale?
The ability to perform a specified task, when needed without needing help each time is called an Automation process.
Automaton process is usually attached with the concept of machine learning and Artifical intelligence. Models are developed by training to learn from data and perform repetive actions , without needing to be reprogrammed each time.These models keeps learning and get better as the operation is repeated.
Learn more : https://brainly.com/question/24036383