Answer:
Answer:Functions in C+
The integer variable n is the input to the function and it is also called the parameter of the function. If a function is defined after the main() .....
This standard library function returns a random floating-point number in the range of 0.0 up to 1.0 (but not including 1.0).
a. random.b. randint.c. random_integer.d. uniform.
Answer:
The answer would be A: Random
Explanation:
The random() function returns a generated random number (a pseudorandom number)
In this era of technology, everyone uses emails for mail and messages. Assume you have also used the
mailboxes for conversation. Model the object classes that might be used in Email system implementation
to represent a mailbox and an email message.
Assume You are working as a software engineer and now you have been asked to deliver a presentation to
a manager to justify the hiring of a system architect for a new project. Write a list of bullet points setting
out the key points in your presentation in which you explain the importance of software architecture
Answer:
A class may be a structured diagram that describes the structure of the system.
It consists of sophistication name, attributes, methods, and responsibilities.
A mailbox and an email message have certain attributes like, compose, reply, draft, inbox, etc.
Software architecture affects:
Performance, Robustness, Distributability, Maintainability.
Explanation:
See attachment for the Model object classes which may be utilized in the system implementation to represent a mailbox and an email message.
Advantages:
Large-scale reuse Software architecture is vital because it affects the performance, robustness, distributability, and maintainability of a system.
Individual components implement the functional system requirements, but the dominant influence on the non-functional system characteristics is that the system's architecture.
Three advantages of System architecture:
• Stakeholder communication: The architecture may be a high-level presentation of the system which will be used as attention for discussion by a variety of various stakeholders.
• System analysis: making the system architecture explicit at an early stage within the system development requires some analysis.
• Large-scale reuse:
An architectural model may be a compact, manageable description of how a system is organized and the way the components interoperate.
The system architecture is usually an equivalent for systems with similar requirements then can support large-scale software reuse..
Draw a Card. Write a program to simulate drawing a card. Your program will randomly select one card from a deck of 52 playing cards. Your program should display the rank (Ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King) and suit (Clubs, Diamonds, Hearts, Spades) of the card. Here is a sample run of the program: in The card you picked is Jack of Heart The program should use at a minimum: sequence, selection, arrays, and random numbers.
Answer:
Explanation:
The following code is written in Java. It is a function that creates a Random object to generate random values, then uses those values to choose a random rank and suit using switch statements. It then saves the rank and suit into a String variable in the correct format and finally prints the card that was picked to the screen. The function was called 4 times in the main method and the output can be seen in the attached image below.
public static void randomCardGenerator() {
Random rand = new Random();
int rank = rand.nextInt(14)+1;
int suit = rand.nextInt(4)+1;
String chosenCard = "";
switch (rank) {
case 1: chosenCard += "Ace"; break;
case 2: chosenCard += "1"; break;
case 3: chosenCard += "2"; break;
case 4: chosenCard += "3"; break;
case 5: chosenCard += "4"; break;
case 6: chosenCard += "5"; break;
case 7: chosenCard += "6"; break;
case 8: chosenCard += "7"; break;
case 9: chosenCard += "8"; break;
case 10: chosenCard += "9"; break;
case 11: chosenCard += "10"; break;
case 12: chosenCard += "Jack"; break;
case 13: chosenCard += "Queen"; break;
case 14: chosenCard += "Kind"; break;
default: System.out.println("Wrong Value");
}
chosenCard += " of ";
switch (suit) {
case 1: chosenCard += "Clubs"; break;
case 2: chosenCard += "Diamonds"; break;
case 3: chosenCard += "Hearts"; break;
case 4: chosenCard += "Spades"; break;
default: System.out.println("Invalid Suit");
}
System.out.println(chosenCard);
}
What is the Open System Foundation?
Answer:
The Open Software Foundation (OSF) was a not-for-profit industry consortium for creating an open standard for an implementation of the operating system Unix. It was formed in 1988 and merged with X/Open in 1996, to become The Open Group.
Explanation:
YOUR PROFILE PIC IS CUTE :)
8.7 LAB: Instrument information (derived classes)
Given main() and the Instrument class, define a derived class, StringInstrument, for string instruments.
Ex. If the input is:
Drums
Zildjian
2015
2500
Guitar
Gibson
2002
1200
6
19
the output is:
Instrument Information:
Name: Drums
Manufacturer: Zildjian
Year built: 2015
Cost: 2500
Instrument Information:
Name: Guitar
Manufacturer: Gibson
Year built: 2002
Cost: 1200
Number of strings: 6
Number of frets: 19
Answer:
Explanation:
Using the main() and Instrument class which can be found online. We can create the following StringInstrument class that extends the Instrument class itself. The only seperate variables that the StringInstrument class posses' would be the number of Strings (numStrings) and the number of frets (numFrets). Due to technical difficulties I have added the code as a seperate text file below.
If you fail a course as a MAIN (residency) course, you can repeat that course as either a MAIN (residency) or an online (IG or IIG) course. True False
Answer: False
Explanation:
The statement that "you fail a course as a MAIN (residency) course, you can repeat that course as either a MAIN (residency) or an online (IG or IIG) course" is false.
It should be noted that if one fail a course as a residency course, the course can only be repeated as a main (residency) course and not an online course. When a course is failed, such course has to be repeated the following semester and this will give the person the chance to improve their GPA.
Preserving confidentiality, integrity, and availability is a restatement of the concern over interruption, interception, modification, and fabrication.
i. Briefly explain the 4 attacks: interruption, interception, modification, and fabrication.
ii. How do the first three security concepts relate to these four attacks
Answer and Explanation:
I and II answered
Interruption: interruption occurs when network is tampered with or communication between systems in a network is obstructed for illegitimate purposes.
Interception: interception occurs when data sent between systems is intercepted such that the message sent to another system is seen by an unauthorized user before it reaches destination. Interception violates confidentiality of a message.
Modification: modification occurs when data sent from a system to another system on the network is altered by an authorized user before it reaches it's destination. Modification attacks violate integrity, confidentiality and authenticity of a message.
Fabrication: fabrication occurs when an unauthorized user poses as a valid user and sends a fake message to a system in the network. Fabrication violates confidentiality, integrity and authenticity.
feature of word processing
Answer:
the word processing
Explanation:
the word is a good word
Computer data that is suitable for sound
Answer:
Answer:In this context sound data is stored and transmitted in an analog form. Since computers represent data in digital form, (as bits and bytes) the
Write a recursive function that returns 1 if an array of size n is in sorted order and 0 otherwise. Note: If array a stores 3, 6, 7, 7, 12, then isSorted(a, 5) should return 1 . If array b stores 3, 4, 9, 8, then isSorted(b, 4) should return 0.
Answer:
The function in C++ is as follows:
int isSorted(int ar[], int n){
if ([tex]n == 1[/tex] || [tex]n == 0[/tex]){
return 1;}
if ([tex]ar[n - 1][/tex] < [tex]ar[n - 2][/tex]){
return 0;}
return isSorted(ar, n - 1);}
Explanation:
This defines the function
int isSorted(int ar[], int n){
This represents the base case; n = 1 or 0 will return 1 (i.e. the array is sorted)
if ([tex]n == 1[/tex] || [tex]n == 0[/tex]){
return 1;}
This checks if the current element is less than the previous array element; If yes, the array is not sorted
if ([tex]ar[n - 1][/tex] < [tex]ar[n - 2][/tex]){
return 0;}
This calls the function, recursively
return isSorted(ar, n - 1);
}
A technician is configuring the static TCP/IP settings on a client computer.
Which of the following configurations are needed for internet communications?
a. DHCP server address
b. DNS server address
c. Default gateway address
d. WINS address
e. APIPA address
f. Alternate IP address
g. IP address including a subnet mask (IPv4) or subnet prefix length (IPv6)
Answer:
The answer is below
Explanation:
Considering the situation and the available options above, the following configurations are needed for internet communications:
B. DNS server address: this matches the domain name to the IP address of a website such that browsers can bring internet resources.
C. Default gateway address: this uses the internet protocol suites and serves as a router to other networks in the absence of other route specifications that could match the destination IP address of a packet.
G. IP address including a subnet mask (IPv4) or subnet prefix length (IPv6): this is used by the internet-connected device to receive messages.
2. Which tab is used to edit objects on the Slide Master and layouts?
A. View
B. Insert
C. Shape format
D. Design
Answer is not A. View
It’s B. Insert
Answer:
it is....insert tab..B
Explanation:
insert tab includes editing options
A technician needs to manage a Linux-based system from the GUI remotely. Which of the technician should the technician deploy
Complete Question:
A technician needs to manage a Linux-based system from the GUI remotely. Which of the following technologies should the technician deploy?
A. RDP
B. SSH
C. VNC
D. Telnet
Answer:
Managing a Linux-based System from the GUI Remotely
The technology that the technician should deploy to manage the Graphic User Interface (GUI) remotely is:
C. VNC
Explanation:
VNC stands for Virtual Network Computing. This computing technology enables a remote user to access and control another computer to execute commands. It acts as a cross-platform screen-sharing system and is used to remotely access and control another computer. VNC makes a computer screen, keyboard, and mouse available to be seen and used from a remote distance. The remote user does everything from a secondary device without being in front of the primary computer or device. An example of a good VNC is TeamViewer.
write an algorithm that reads to values, determines the largest value and prints the largest value with an identifying message
Answer:
I'm unsure of what language you are referring to, but the explanation below is in Python.
Explanation:
a = int(input("Input your first number: "))
b = int(input("Input your second number: "))
c = int(input("Input your third number: "))
maximum = max(a, b, c)
print("The largest value: ", maximum)
Write a program in c++ that will:1. Call a function to input temperatures for consecutive days in 1D array. NOTE: The temperatures will be integer numbers. There will be no more than 10 temperatures.The user will input the number of temperatures to be read. There will be no more than 10 temperatures.2. Call a function to sort the array by ascending order. You can use any sorting algorithm you wish as long as you can explain it.3. Call a function that will return the average of the temperatures. The average should be displayed to two decimal places.Sample Run:Please input the number of temperatures to be read5Input temperature 1:68Input temperature 2:75Input temperature 3:36Input temperature 4:91Input temperature 5:84Sorted temperature array in ascending order is 36 68 75 84 91The average temperature is 70.80The highest temperature is 91.00The lowest temperature is 36.00
Answer:
The program in C++ is as follows:
#include <iostream>
#include <iomanip>
using namespace std;
int* sortArray(int temp [], int n){
int tmp;
for(int i = 0;i < n-1;i++){
for (int j = i + 1;j < n;j++){
if (temp[i] > temp[j]){
tmp = temp[i];
temp[i] = temp[j];
temp[j] = tmp; } } }
return temp;
}
float average(int temp [], int n){
float sum = 0;
for(int i = 0; i<n;i++){
sum+=temp[i]; }
return sum/n;
}
int main(){
int n;
cout<<"Number of temperatures: "; cin>>n;
while(n>10){
cout<<"Number of temperatures: "; cin>>n; }
int temp[n];
for(int i = 0; i<n;i++){
cout<<"Input temperature "<<i+1<<": ";
cin>>temp[i]; }
int *sorted = sortArray(temp, n);
cout<<"The sorted temperature in ascending order: ";
for( int i = 0; i < n; i++ ) { cout << *(sorted + i) << " "; }
cout<<endl;
float ave = average(temp,n);
cout<<"Average Temperature: "<<setprecision(2)<<ave<<endl;
cout<<"Highest Temperature: "<<*(sorted + n - 1)<<endl;
cout<<"Lowest Temperature: "<<*(sorted + 0)<<endl;
return 0;
}
Explanation:
See attachment for complete source file with explanation
You are given a sequence of n songs where the ith song is l minutes long. You want to place all of the songs on an ordered series of CDs (e.g. CD 1, CD 2, CD 3,... ,CD k) where each CD can hold m minutes. Furthermore, (1) The songs must be recorded in the given order, song 1, song 2,..., song n. (2) All songs must be included. (3) No song may be split across CDs. Your goal is to determine how to place them on the CDs as to minimize the number of CDs needed. Give the most efficient algorithm you can to find an optimal solution for this problem, prove the algorithm is correct and analyze the time complexity
Answer:
This can be done by a greedy solution. The algorithm does the following:
Put song 1 on CD1.
For song 1, if there's space left on the present CD, then put the song on the present CD. If not, use a replacement CD.
If there are not any CDs left, output "no solution".
Explanation:
The main thing is prove the correctness, do that by the "greedy stays ahead argument". For the primary song, the greedy solution is perfect trivially.
Now, let the optimal solution match the greedy solution upto song i. Then, if the present CD has space and optimal solution puts song (i+1) on an equivalent CD, then the greedy and optimal match, hence greedy is not any worse than the optimal.Else, optimal puts song (i + 1) on subsequent CD. Consider an answer during which only song (i + 1) is moved to the present CD and zip else is modified. Clearly this is often another valid solution and no worse than the optimal, hence greedy is not any worse than the optimal solution during this case either. This proves the correctness of the algorithm. As for every song, there are constantly many operations to try to do, the complexity is O(n).
nowwwwwww pleasssssssss
the technique used is Data Validation
How long does it take to send a 15 MiB file from Host A to Host B over a circuit-switched network, assuming: Total link transmission rate
Answer:
The answer is "102.2 milliseconds".
Explanation:
Given:
Size of file = 15 MiB
The transmission rate of the total link= 49.7 Gbps
User = 7
Time of setup = 84.5 ms
calculation:
[tex]1\ MiB = 2^{20} = 1048576\ bytes\\\\1\ MiB = 2^{20 \times 8}= 8388608\ bits\\\\15\ MiB= 8388608 \times 15 = 125829120\ bits\\\\[/tex]
So,
Total Number of bits [tex]= 125829120 \ bits[/tex]
Now
The transmission rate of the total link= 49.7 Gbps
[tex]1\ Gbps = 1000000000\ bps\\\\49.7 \ Gbps = 49.7 \times 1000000000 =49700000000\ bps\\\\FDM \ \ network[/tex]
[tex]\text{Calculating the transmission rate for 1 time slot:}[/tex]
[tex]=\frac{ 49700000000}{7} \ bits / second\\\\= 7100000000 \ bits / second\\\\ = \frac{49700000000}{(10^{3\times 7})} \ in\ milliseconds\\\\ =7100000 \ bits / millisecond[/tex]
Now,
[tex]\text{Total time taken to transmit 15 MiB of file} = \frac{\text{Total number of bits}}{\text{Transmission rate}}[/tex]
[tex]= \frac{125829120}{7100000}\\\\= 17.72\\\\[/tex]
[tex]\text{Total time = Setup time + Transmission Time}\\\\[/tex]
[tex]= 84.5+ 17.72\\\\= 102.2 \ milliseconds[/tex]
For the following 4-bit operation, assuming these register are ONLY 4-bits in size, which status flags are on after performing the following operation? Assume 2's complement representation. 1010+0110
a) с
b) Z
c) N
Answer:
All flags are On ( c, z , N )
Explanation:
Given data:
4-bit operation
Assuming 2's complement representation
Determine status flags that are on after performing 1010+0110
1 1
1 0 1 0
0 1 1 0
1 0 0 0 0
we will carry bit = 1 over
hence C = 1
given that: carry in = carry out there will be zero ( 0 ) overflow
hence V = 0
also Z = 1
But the most significant bit is N = 1
Calculate how much disk space (in sectors, tracks, and surfaces) will be required to
store 300,000 120-byte logical records if the disk is fixed sector with 512 bytes/
sector, with 96 sectors/track, 110 tracks per surface, and 8 usable surfaces. Ignore
any file header record(s) and track indexes, and assume that records cannot span
two sectors.
It will be great if you could explain the answer to me. :)
Answer:
see your answer in image
mark me brainlist
The amount of disk space in sectors that would be required to store 300,000 records is equal to 75,000 sectors.
Given the following data:
Number of records = 300,000.Size of each logical record = 120 byte.Number of bytes (sector) = 512.Number of sectors per track = 96.Number of tracks per surface = 110.How to calculate the required disk space?First of all, we would determine the number of logical records that can be held by each sector as follows:
Number of logical records per sector = 512/120
Number of logical records per sector = 4.3 ≈ 4.0.
Now, we can calculate the required disk space to store 300,000 records:
Disk space = 300,000/4
Disk space = 75,000 sectors.
For the tracks, we have:
Disk space in tracks = 75,000/96
Disk space in tracks = 781.25 ≈ 782.
Disk space in tracks = 782 tracks.
For the surfaces, we have:
Disk space in surfaces = 782/110
Disk space in surfaces = 7.10 ≈ 8.
Disk space in surfaces = 8 surfaces.
Read more on disk space here: https://brainly.com/question/26382243
The fastest way to pull financial data from the application into Excel as refreshable formulas that can be edited or updated is:
Answer:
Download the financial report as =FDS codes with cell referencing.
Explanation:
An excel is a spreadsheet that is developed by the Microsoft company for the Windows operating system. It can be also used in iOS, macOS and Android. It has many features including graphing tools, calculation, pivot tables, etc.
In excel the fastest way to pull out a financial data from an application into the Excel as the refreshable formulas which can be edited or can be uploaded later on is by downloading the financial report as an +FDS code with the cell referencing.
In excel, cell refreshing is a way to refer to a cell in the formula.
RecursionexerciseCOP 3502; Summer2021We have gone through many examples in the class and those examples are available in the slides and uploaded codes. Try to test those codes and modify as you wish for getting more clarification.In additiontry the following:---------------------------------------------------------------------------------------------------------------------------------------1.What would be the output of the following recursive function if we call rec2(5)
Answer:
The output is:
1 2 3 4 5
Explanation:
Given
See attachment for code segment
Required
The output of rec2(5)
From the attached code segment, we have the following:
The base case: if (x==0){ return;}
The above implies that, the recursion ends when the value of x gets reduced to 0
The recursion:
rec2(x-1); ---- This continually reduces x by 1 and passes the value to the function
printf("%d ", x); This prints the passed value of x
Hence, the output of rec2(5) is: 1 2 3 4 5
what is a mirror site?
Can anyone decipher these? There a bit random. Maybe binary but if there are other ways please include them.
Answer:
Explanation:
so this is what "format" is about, it's saying what do the ones and zeros represent. b/c the bits can represent lots of different things , like letters with ascii code , and that's got several types. some are 8 bits, some are 16 bits, the questions you've shown are in groups of 5 which is really not a "thing" in binary, it's always by twos, without some type of "frame work" around the bits, we won't know what they represent, if that is helping? the important part is what is the "frame work" that these bits are in.
all of your questions seem to have some "art" thing going on, they make some kinda of binary artwork, for what they are saying, that's not what's important. Other than if they form palindromes, maybe that's what the questions are really about, how these do from palindromes, that is, they read the same backwards as forwards... I know.. why would anyone read backwards.. but a computer can do that pretty quickly, sooo sometimes to check, it will read forwards and backwards.. but when there is a palindrome, the computer is "confused"
this is also a big big part of "typing" not like on a keyboard but when you program, and you say that your variables are of a certain type, like a char, or a string, or a double, you are specifying how many bits will be used to represent your data. so then when you put the ones and zeros into the memory , ( think RAM) then it's stored in groups of what ever size you've determined. hmmmm does this help?
how much is this worth in dollars
Answer:
This is worth 50 dollars.
Explanation:
١ - one
٢ - two
٣ - three
٤ - four
٥ - five
٦ - six
٧ - seven
٨ - eight
٩ - nine
٠ - zero
What you see above is the ten digits in Arabic.
Both 5 (٥) and 0 (٠) appear here, thus representing 50.
Fill in multiple blanks for [x], [y], [z]. Consider a given TCP connection between host A and host B. Host B has received all from A all bytes up to and including byte number 2000. Suppose host A then sends three segments to host B back-to-back. The first, second and third segments contain 50, 600 and 100 bytes of user data respectively. In the first segment, the sequence number is 2001, the source port number is 80, and the destination port number is 12000. If the first segment, then third segment, then second segment arrive at host B in that order, consider the acknowledgment sent by B in response to receiving the third segment. What is the acknowledgement number [x], source port number [y] and destination port number [z] of that acknowledgement
Computer data that is suitable for text
Answer:
Answer:Data Types. Computer systems work with different types of digital data. In the early days of computing, data consisted primarily of text and ...
Which of the following restricts the ability for individuals to reveal information present in some part of the database?
a. Access Control
b. Inference Control
c. Flow Control
d. Encyption
Answer:
it would have to be flow control which would be C.
Explanation:
Flow Control is restricts the ability for individuals to reveal information present in some part of the database. Hence, option C is correct.
What is Flow Control?The management of data flow between computers, devices, or network nodes is known as flow control. This allows the data to be processed at an effective rate. Data overflow, which occurs when a device receives too much data before it can handle it, results in data loss or retransmission.
A design concern at the data link layer is flow control. It is a method that typically monitors the correct data flow from sender to recipient. It is very important because it allows the transmitter to convey data or information at a very quick rate, which allows the receiver to receive it and process it.
The amount of data transmitted to the receiver side without any acknowledgement is dealt with by flow control.
Thus, option C is correct.
For more information about Flow Control, click here:
https://brainly.com/question/28271160
#SPJ5
The ____ contains app buttons that allow you to quickly run the File Explorer or Microsoft Edge apps.
Explanation:
The taskbar contains app buttons that allow you to quickly run the File Explorer or Microsoft Edge apps.
Hope this helps
Because GIS is largely a computer/information science that involves working with software in the privacy of one's own workspace, users of GIS rarely must be concerned with ethics or the ethical implications of their work.
a.True
b. False
Answer:
Hmm, I think it is true
Explanation: