Answer:
The Raptor program for this question is given in the attachment below.
Explanation:
Run a loop until user decides to quit the program.Get the number of miles and gallons from user as an input.Use the formula to calculate miles per gallon.Display the calculated value of miles per gallon.Ask the user if they would like to continue using this program.What is the relationship between a method and a function
Answer:
Method and a function are the same,whit the different terms. A method is a procedure or function in object - oriented programming. A function is a group of reusable code which can be called anywhere in your program. This eliminates the need for writing the some code again and again.
What will be the value of discountRate after the following statements are executed? double discountRate = 0.0; int purchase = 100; if (purchase > 1000) discountRate = 0.05; else if (purchase > 750) discountRate = 0.03; else if (purchase > 500) discountRate = 0.01;
The value of discountRate after the following statements are executed
double discountRate = 0.0;
int purchase = 100;
if (purchase > 1000) discountRate = 0.05;
else if (purchase > 750) discountRate = 0.03;
else if (purchase > 500) discountRate = 0.01;
is 0.0
Explanation:
The discount rate is declared as a double; double discountRate = 0.0;
The purchase is declared as integer; int purchase = 100;
The first if statement shows if purchase > 1000 then the discountRate is 0.05
The second if statement shows if purchase > 750then the discountRate is 0.03
The third if statement shows if purchase > 500 then the discountRate is 0.01
Since none of these statements are true, the original discountRate is printed.
Final answer:
After executing the statements, the value of discountRate will remain 0.0 because the purchase amount does not meet any of the specified conditions to receive a discount.
Explanation:
The value of discountRate after executing the given statements will be 0.0. The code snippet provided is a series of conditional statements that assign a value to the variable discountRate based on the value of the variable purchase.
The initial value of purchase is 100, which does not satisfy any of the given conditions for increasing the discountRate (i.e., purchase must be greater than 500, 750, or 1000 to get a discount). Therefore, the discountRate remains at its initial value of 0.0 since no conditions are met.
The use of public wireless connections can increase a user's vulnerability to monitoring and compromise. ____________ software can be used to encrypt transmissions over public networks, making it more difficult for a user's PC to be penetrated. DDos CAPTCHa VPN Rootkit Keylogging
The use of public wireless connections can increase a user's vulnerability to monitoring and compromise. VPN software can be used to encrypt transmissions over public networks, making it more difficult for a user's PC to be penetrated.
Explanation:
A VPN, or Virtual Private Network, allows you to create a secure connection to another network over the Internet. VPNs can be used to access region-restricted websites, shield your browsing activity from prying eyes on public Wi-Fi, and more. .Virtual Private Network, is a private network that encrypts and transmits data while it travels from one place to another on the internet. VPNs aren't just for desktops or laptops, you can set up a VPN on your iPhone, iPad or Android phone.A VPN encrypts the traffic from your machine to the exit point of the VPN network. A VPN isn't therefore likely to protect you from an adversary like Anonymous. VPNs add another layer of encryption to your internet traffic, your latency will go up and speeds will go down.100 Base-T: Group of answer choices
can run at either full- or half-duplex
is one of the oldest forms of Ethernet
is one of the slowest forms of Ethernet
can only be used over coaxial cables
has only one version, 100Base-SLCX
Answer:
can run at either full- or half-duplex
Explanation:
In Computer Networking, 100Base-T also known as fast ethernet is an ethernet standard that operates at 100Mbps and can run at either full- or half-duplex.
It uses Shielded Twisted Pair (STP) cabling system.
The Variations of 100BaseT are;
- 100BaseTX
- 100BaseFX.
An experimenter discovers that the time for people to detect a string of letters on a computer screen is 400 milliseconds, and that the time to push one of two buttons as to whether that string of letters is a legitimate word (e.g., travel) versus a nonword (e.g., terhil) is 575 milliseconds. Which technique would be most useful in figuring out the time for word recognition, independent of letter-string detection?
a. Introspectionsb. Operant conditioningc. Neuropyshologyd. Subtractive method
Answer:
The correct answer to the following question will be Option D (Subtractive method ).
Explanation:
This approach essentially requests a participant to construct two activities that are already in almost every way similar, except for a mental process that is assumed to also be included in any of the activities although omitted in another.This method will be much more valuable when deciding the period for phonemic awareness, despite text-string identification.The other three options are not related to the given scenario. So that Option D is the right answer.
I am wasting 20 points
Answer:
Sure????
Explanation:
Technician A says that a J1939 connector may be used to access Cummins ISB eletronics when the engine is installed in a Dodge application. Technician B says that a J1962 ALDL may be used to access ISB electronics in some chassis applications. Who is right?
Answer:
Technician b is right
Explanation:
It can be used to access isb electronics in some chasis applications because of the OEM.
2 Which statement best explains how computers are used to analyze information?
A Computers are used to write reports.
B Computers are used to do calculations.
C Computers are used to measure objects.
D Computers are used to share conclusions.
nts the mass of the object in the
Answer:
The answer is B
Explanation:
Computers are used to do calculations in investigations. And they help get the bad guy.
1. Define a C++ function with the name evaluateBook. The function receives as one argument the name of the file to be processed (i.e., the book's file). So that if you pass the English version, we will see the results only for that language.
2. Function evaluateBook opens the file, reads it, analyzes it, and prints the answer to the following questions:
a. What it the total number of text lines in the file?
b. What it the number of text lines without any lower-case letter? To answer this question, write and call the function testLowerCase.
c. What it the number of text lines without any number? To answer this question, write and call the function testNumber.
d. What is the total number of visible characters (so, excluding invisible codes such as '\n') ? To answer this question, write and call the function countCharacters.
e. What is the total number of letters (i.e., excluding symbols, numbers, etc.)? To answer this question, write and call the function countLetters.
f. How many times each of the following punctuation symbols appear: comma, period, double quotes, single quotes ?
g. What is the most popular letter (regardless of its case) ? (update: assume it is a vowel)
h. The word "et" in French means "and". How many times does this word appear? The function should search for both words, so that if you pass the English version, the count for "et" will be likely zero. Also, ignore the case, but do not count a matching if part of another word, such as "Andrew".
Answer:
#include <iostream>
#include<string>
#include<fstream>
using namespace std;
void evaluateBook(string bookName);
int countCharacters(string bookLine);
int countLetters(string bookLine);
int totalPunctuations(string bookLine);
int main()
{
evaluateBook("demo-book.txt");
return 0;
}
int countCharacters(string bookLine) {
return bookLine.length();
}
int countLetters(string bookLine) {
int counter = 0;
for (int i = 0; i < bookLine.length(); i++) {
if ((bookLine[i] >= 'a' && bookLine[i] <= 'z') || (bookLine[i] >= 'A' && bookLine[i] <= 'Z')) {
counter++;
}
}
return counter;
}
int totalPunctuations(string bookLine) {
int counter = 0;
for (int i = 0; i < bookLine.length(); i++) {
if (bookLine[i]=='\.' || bookLine[i]=='\,' || bookLine[i]=='\"' || bookLine[i]=='\'') {
counter++;
}
}
return counter;
}
void evaluateBook(string bookName) {
ifstream in(bookName);
int totalVisibleCharacters = 0,totalLetters=0,numberOfPunctuations=0;
if (!in) {
cout << "File not found!!\n";
exit(0);
}
string bookLine;
while (getline(in, bookLine)) {
totalVisibleCharacters += countCharacters(bookLine);
totalLetters += countLetters(bookLine);
numberOfPunctuations += totalPunctuations(bookLine);
}
cout << "Total Visible charcters count: "<<totalVisibleCharacters << endl;
cout << "Total letters count: " << totalLetters << endl;
cout << "Total punctuations count: " << numberOfPunctuations<< endl;
}
Explanation:
Create a function that takes a bookLine string as a parameter and returns total number of visible character.Create a function that takes a bookLine string as a parameter and returns total number of letters.Create a function that takes a bookLine string as a parameter and returns total number of punctuation.Inside the evaluateBook function, read the file line by line and track all the information by calling all the above created functions.Lastly, display the results.Disrupting a business's ability to conduct electronic commerce is cönsidered an act of
Answer:
Digital Restrictions
Explanation:
This is the process that arises as a result of not meeting specific ethical standards and procedures for operating an online business on the form of electronic commerce. Such situation could be as a result of important factors like:
1. Unduly registered or incorporated businesses
2. Lack of patent or trademark to shown authenticity of product or services
3. Inability to provide certified prove of ownership to avoid fraudulent acts and others.
A technician is using a network-attached desktop computer with a Type 2 hypervisor to run two VMs. One of the VMs is infected with multiple worms and other forms of known malware. The second VM is a clean installation of Windows. The technician has been tasked with logging the impact on the clean Windows VM when the infected VM attempts to infiltrate the clean VM through the network. What should the technician do to best protect the company LAN while performing these tests?
Answer:
Place both VMs on virtual NICs that are isolated from the company LAN.
Explanation:
From the scenario above, for the technician to best protect the company's LAN while performing the above mentioned tests, it us best to place both VMs on virtual NICs that are isolated from the company LAN.
Cheers
The technician do to best protect the company LAN while performing tests is Place both VM on virtual NICs that are isolated from the company LAN.
How does a VM work?
virtual computer
A virtual machine, sometimes abbreviated as just VM, is an actual computer just like a laptop, smartphone, or server. It is equipped with a CPU, RAM, disks for file storage, and an internet connection in case that is required.
What does VM in servers stand for?
On a physical hardware system, a virtualization (VM) is a graphical interface that performs as both a simulated software system featuring its own CPU, memories, network switch, and storage .
To know more about VM visit:
https://brainly.com/question/15517774
#SPJ4
For the following C code, variables a, b, c, and n correspond to the registers $s0, $s1, $s2 and $a0 respectively and i corresponds to $t0. The callee doesn’t have to preserve registers $t1-$t9, if used. int iterFib(int n) { int a = 0, b = 1, c, i; for(i=2; i<=n; i++) { c = a + b; a = b; b = c; } return b; } What are the missing MIPS instructions? Please record only the letter in lower case. iterFib: addi $sp, $sp, -12 sw $s0, 8($sp) sw $s1, 4($sp) ---Instruction 1--- add $s0, $zero, $zero addi $s1, $zero, 1 add $t0, $zero, $zero addi $t1, $a0, 1 forFib: slt $t2, $t0, $t1 ---Instruction 2--- add $s2, $s1, $s2 add $s0, $zero, $s1 add $s1, $zero, $s2 addi $t0, $t0, 1 j forFib exitFib: add $v0, $zero, $s1 jr $ra Instruction 1 is a. No instruction b. addi $sp, $sp, 4 c. add $sp, $sp, -4 d. lw $s2, 0($sp) e. sw $s2, 0($sp) f. bne $t2, $zero, exitFib g. beq $t2, $zero, exitFib h. None of the above Instruction 2 is a. j iterFib b. addi $sp, $sp, 4 c. add $sp, $sp, -4 d. lw $s0, 0($sp) e. addi $sp, $sp, -4 f. bne $t2, $zero, exitFib g. beq $t2, $zero, exitFib h. None of the above
Answer:
a)
Instruction 1 will be: sw $s2,0($s0)
Answer is option e.
b)
Instruction 2 will be: beq $t2,$zero,exitFib
Answer is option g.
Explanation:
At the point of instruction 1, It should store the content of s2 into the stack.
At the point of instruction 2, It will check if the value of t2 is one or not. If it is zero it should exit.
What are the characteristics of OneDrive and the browser version of Outlook? Check all that apply.
1.If you have an Office 365 account, you have cloud storage space on OneDrive.
2.You can access OneDrive by using a browser, an app, or Outlook.
3.OneDrive can be used to save items from the Outlook program.
4.Exchange is Microsoft’s version of Outlook on the web.
5.Both the Outlook program and Outlook web clients use the Exchange server.
6.Outlook on the web provides more features than the desktop client.
Answer:
If you have an Office 365 account, you have cloud storage space on OneDrive.
You can access OneDrive by using a browser, an app, or Outlook.
OneDrive can be used to save items from the Outlook program.
Both the Outlook program and Outlook web clients use the Exchange server.
Explanation: Got it wrong but it showed me the correct answer.
Statements that gives the characteristics of OneDrive and the browser version of Outlook are;
If you have an Office 365 account, you have cloud storage space on OneDrive.You can access OneDrive by using a browser, an app, or Outlook.OneDrive can be used to save items from the Outlook program.Both the Outlook program and Outlook web clients use the Exchange server.When using an outlook, it is possible to access OneDrive, and it uses the Exchange server, If you have an Office 365 account, you have cloud storage space on OneDrive.
Therefore, OneDrive can be used to save items from the Outlook program.
Learn more about Outlook program at;
https://brainly.com/question/1538272
Molly, an end-user, connects an external monitor, external keyboard and mouse, and a wired network cable to her laptop while working in the office. She
leaves the office frequently to meet with customers and takes the laptop with her. Disconnecting and reconnecting these external connections has become
inconvenient. Which of the following devices will allow the user to disconnect and reconnect the laptop to the external connections with the least amount
of effort?
Port Replicator
Docking Station
Answer:
A Port Replicator
Explanation:
Port Replicators are universal and do not require that your computer (laptop) be docked (Placed) on them to function. All you need is the devices connected to the port replicator and whenever you need to move the laptop, you disconnect the port replicator from it. It generally is connected via a type of USB port.
A Docking station on the other hand can be a drag in the sense that you might have a challenge always having to dock and undock your laptop from the station anytime you need to move. This can be annoying if you are in a rush. Also the Docking stations use expansion ports which are a lot of times not universal (Not just any type of laptop can connect to the dock stations, just your model or specified models).
Answer:
Port Replicator
Explanation:
While you may be able to use a docking station for this purpose, a port replicator is designed specifically for this kind of use.
On your Windows server, you’re planning to install a new database application that uses an enormous amount of disk space. You need this application to be highly available, so you need a disk system with the capability to auto-correct from disk errors and data corruption. You also want a flexible storage solution that makes it easy to add space and supports deduplication. Describe your best option.
1. MBR disk with chkdsk
2. NTFS format with EFS
3. ReFS format and storage spaces
4. GPT disc with shadow copies
Answer:
3. ReFS
Explanation:
Only in ReFS include and others do not have all of the below features
1. Automatic integrity checking and data scrubbing
2. Removal of the need for running chkdsk
3. Protection against data degradation
4. Built-in handling of hard disk drive failure and redundancy
5. Integration of RAID functionality
6. A switch to copy/allocate on write for data and metadata updates
7. Handling of very long paths and filenames
8. Storage virtualization and pooling
Use the drop-down menus to complete the steps necessary for adding a conditional formatting rule.
On the Home tab, click the
group.
On the drop-down list, click
and click the rule you wish to use.
Use the dialog box to complete the rule,
Conditional formatting are used to assign specific formatting options to cells based on a specified set of rules. Hence, cells which meets the set rules are given the formatted based on the formatting conditions.
To use conditional formatting, navigate to the styles group which is on the home tab. A drop down list appears with various options, click conditional formatting The rule to be used should be clicked in the dialog box and the rules can be tweaked by clicking manage rules.Learn more :https://brainly.com/question/22654163
Answer:
styles, conditional formatting
Explanation:
got it right :))
Ch. 6 Agile Modeling & Prototyping SDLC vs. Prototyping "I’ve got the idea of the century!" proclaims Bea Kwicke, a new systems analyst with your systems group. "Let’s skip all this SDLC garbage and just prototype everything. Our projects will go a lot more quickly, we’ll save time and money, and all the users will feel as if we’re paying attention to them instead of going away for months on end and not talking to them." A) List the reasons and conditions , you, as a member of the same team as Bea, would give her to utilize an SDLC and not just prototype every project. That is, tell Bea when you would use an SDLC. B) Bea is pretty disappointed with what you have said. To encourage her, use a paragraph to explain the situations you think would lend themselves to prototyping.
Answer:
Refer below.
Explanation:
A.The SDLC ought not be rejected for each venture since certain frameworks might be rashly molded before the issue or opportunity being tended to is altogether comprehended. Additionally, utilizing prototype as an option may bring about utilizing a framework that is acknowledged by explicit gathering of clients yet which is insufficient for in general framework needs. In numerous framework prototyping can be effectively incorporated with SDLC approach. For surely knew frameworks, a straight SDLC approach has demonstrated its value.
B.In epic or complex circumstance, prototyping is a perfect mechansim for better understanding client prerequisites, and for getting client input for improving framework viability. What's more, prototyping has demonstrated valuable when fused into SDLC. This combination is especially helpful in better learning client needs.
Which of the following is the correct order of the SDLC?
a. analysis, investigation, design, implementation, programming/testing.
b. operation/maintenance analysis,
c. investigation, design, programming/testing, implementation, operation/maintenance
d. investigation, analysis, design, implementation, programming/testing, operation/maintenance
e. investigation, analysis, design, programming/testing, implementation, operation/maintenance
The correct order of the SDLC is (d) investigation, analysis, design, implementation, programming/testing, operation/maintenance
SDLC represents the software development life cycle, and one of its purposes is to allow the software development team to function optimally when creating a product.
There are several stages of the software development life cycle, all of these stages are structured and must be followed in a sequential order.
The first of the stages is preliminary stages, where investigations and feasibility studies are carried out.
After then, the software is analyzed and then designed.
Of the given options, option (d) represents the correct order of the software development life cycle
Read more about software development life cycle at:
https://brainly.com/question/15172408
Which of the following is considered a part of due diligence? a. The scope of the Plan-Do-Check-Act (PDCA) model b. Metrics and best practices of information technology (IT) related processes c. A written and tested business continuity plan d. Information security management e. None of the other answers is correct
Answer:
C
Explanation:
A written and tested business continuity plan is considered as a part of due diligence.
Cheers
Pamela is asked to use a data visualization tool and show the relative frequency of the 50 most-used terms in survey responses. this information is to be posted on the company website. for this pamela should use __________.
a. tag clouds
b. clustering
c. lists
d. linkage maps
e. calendar motifs
Answer:
a. tag clouds
Explanation:
Tag clouds or word cloud is a form of data visualization that shows the most occurring word or words in an edited text input.
Clustering is a technique in data analytics that categorizes data based on data types, separating them into clusters.
List is a data types in data analysis programming languages
The theme color scheme of the slide can be changed by clicking on the _______ next to the color button, located in the _____ group. (Microsoft Excel 2013)
A) drop-down arrow, Animation
B) drop-down arrow, Themes
C) drop-down arrow, Background
D) drag and drop menu, Themes
Answer:
B) drop-down arrow, Themes
Explanation:
An Excel theme consists of a collection of colors, fonts, and effects that can be applied to a slide to add beauty. Themes make work to be professional, consistent and make adhering to design guidelines easy.
To change theme color, first open a Blank Workbook. Secondly, On the Page Layout tab, in the Themes group, click Themes drop down arrow beside the color button.
The theme color scheme of the slide can be changed by clicking on the drop-down arrow, next to the color button, located in the Themes group. (Microsoft Excel 2013)
The theme color scheme of the slide in Microsoft Excel 2013 can be changed by clicking on the drop-down arrow, located in the Themes group.
To change the theme, you would select a theme from the Themes group on the Design tab. You can find more themes by clicking the More button, which allows for further customization of the themes, such as modifying theme colors, fonts, effects, or background styles. When customizing the presentation's background, you can click the Format Background button in the Customize group of the Design tab to adjust various parameters such as color, gradient fill, and transparency.
Terry came into work and turned on his computer. During the boot process, the computer shut down. When he tried again, the computer showed the error message, OS not found. Terry called the help desk and explained the computer issue. The help desk technician asked Terry to open the computer. As a help desk technician, what would you have Terry check on his computer with the case cover removed?
A. SATA cable connection
B. Properly seated RAM
C. CMOS battery
D. P1 Power connection
el cable SATA porque sirve para la transferencia de datos entre la placa base y algunos dispositivos de almacenamiento como la unidad de disco duro (donde generalmente se instala el sistema operativo)
What is a restricted network that relies on Internet technologies to provide an Internet-like environment within the company for information sharing, communications, collaboration, web publishing, and the support of business processes
Answer:
Deep Web (Tor Browser)
Explanation:
The legal deeper internet that allows the transfer of sensitive information.
A developer logged into a client machine has recently completed designing a new TaskBot and needs to evaluate the Bot outcome for purpose of meeting the project requirement. If the evaluation is successful, the TaskBot will then be uploaded to the control room. Which three actions could the developer take, to execute the TaskBot for the evaluation
Answer
Evaluation of the Task bot should completed and successful if the following mentioned three steps works.
1. Open the Task Bot in the workbench and execute it
2. Execute the bot from the administration login at the Control Room
3. Provide the complete path of the Task Bot ATMX file in the CLI window
Explanation:
Task bot are the bots that used to processes the data and repeat the tasks automatically. The developer who designed a new task bot, needs to evaluate the performance and working of this task bot. The performance could be evaluated by completing the following steps.
First of all, the task bot will be opened in workbench to execute it. If the task bot will opened on work bench without any error then developer will execute the bot as administrator to run the task bot. After successful start of the execution, the path of task bot file will be provided in command line interface (CLI) to start the task bot working.
If the above mentioned steps completed successfully, the developer can upload the task bot program to the control room.
The format for the UPDATE command is the word UPDATE, followed by the name of the table to be updated. The next portion of the command consists of the word ____________________, followed by the name of the column to be updated, an equals sign, and the new value.
The format for the UPDATE command is the word UPDATE, followed by the name of the table to be updated. The next portion of the command consists of the word SET, followed by the name of the column to be updated, an equals sign, and the new value.
Explanation:
An Update Query is an action query (SQL statement) that changes a set of records according to criteria you specify.The SQL UPDATE Query is used to modify the existing records in a table. You can use the WHERE clause with the UPDATE query to update the selected rows, otherwise all the rows would be affected. Update Queries let you modify the values of a field or fields in a table.UPDATE Syntax
UPDATE table_name SET column1 = value1, column2 = value2, ... WHERE condition;UPDATE table_name SET column1 = value1, column2 = value2, etc WHERE condition;
table_name: name of the table column1: name of first , second, third column.... value1: new value for first, second, third column.... condition: condition to select the rows for which the values of columns needs to be updated.Students in a 6th grade science class are completing a project about an invention for which they must print a 3-D prototype on the 3-D printer. After giving them instruction about the 3-D printer software, some of the students are still struggling with how to use the software to create the prototype they envision.
What is the best way to help the students complete the assignment?
Answer:
Providing them with a template and simple instructions for how to design and print their prototype.
Explanation:
3D printing or additive manufacturing is a process of making three dimensional solid objects from a digital file.
The creation of a 3D printed object is achieved using additive processes. In an additive process an object is created by laying down successive layers of material until the object is created. Each of these layers can be seen as a thinly sliced horizontal cross-section of the eventual object.
3D printing is the opposite of subtractive manufacturing which is cutting out / hollowing out a piece of metal or plastic with for instance a milling machine.
3D printing enables you to produce complex shapes using less material than traditional manufacturing methods.
By providing them with the information for how to design the 3D printer and how to print heir prototype in a template is best way to help the students.
It will need some prior research about 3D Printer.
You manage a small LAN for a branch office. The branch office has three file servers and few client workstations. You want to use Ethernet device and offer guaranteed bandwidth to each server.How should you design the network?
You manage small LAN for a branch office. The branch office has three file servers and few client workstations. You want to use Ethernet device and offer guaranteed bandwidth to each server. You design the network by connecting all network devices to a switch. Connect each server to its own switch port.
Explanation:
A local-area network (LAN) is a computer network that spans a relatively small area.Most often, a LAN is confined to a single room, building or group of buildings, however, one LAN can be connected to other LANs over any distance via telephone lines and radio waves.The LAN is the networking infrastructure that provides access to network communication services and resources for end users and devices spread over a single floor or building.Designing a LAN for the campus use case is not a one-design-fits-all proposition. If there is a single 48-port switch, 47 devices can be supported, with only one port used to connect the switch to the rest of the network, and only one power outlet needed to accommodate the single switch
A ______ site is a disaster recovery site that includes a computer system similar to the one the company regularly uses, software, and up-t0-date data so the company can resume full data processing operations within seconds or minutes.
a. Hot
b. Cold
c. Flying start
d. Backup
Answer:
c, flying start
Explanation:
A server is expected to process 2,000 transactions per second during its initial year of deployment. If it is expected to increase transaction growth by 10% annually, how many transactions per second should the server be able to process by the end of its fifth year?
Answer:
This is like a compound interest problem,
Here, p=2000
r=10%
t=5
Transaction after 5 years= 2000(1+10/100)^5= 3221.02 per second
Explanation:
This is as explained above a compound interest type of question. And the number of transaction per second after 5 years is equal to 3221. Remember, you need to understand the difference between compound interest and simple interest. In first one, we have new p after each year. However, in Simple interest, the p remains the same as the first one.
For reproducibility needed for auto-grading, seed the program with a value of 2. In a real program, you would seed with the current time. In that case, every program's output would be different, which is what is desired but can't be auto-graded. Note: A common student mistake is to create an instance of Random before each call to rand.nextInt(). But seeding should only be done once, at the start of the program, after which rand.nextInt() can be called any number of times. Your program must define and call the following method that returns "heads" or "tails". public static String headsOrTails(Random rand)
Answer:
For reproducibility needed for auto-grading, seed the program with a value of 2. In a real program, you would seed with the current time. In that case, every program's output would be different, which is what is desired but can't be auto-graded.
Note: A common student mistake is to create an instance of Random before each call to rand.nextInt(). But seeding should only be done once, at the start of the program, after which rand.nextInt() can be called any number of times.
Your program must define and call the following method that returns "heads" or "tails".
Explanation: