Java, please Assignment 7A: Rare Collection. We can make arrays of custom objects just like we've done with ints and strings. While it's possible to make both 1D and 2D arrays of objects (and more), for this assignment we'll start you out with just one dimensional arrays. Your parents have asked you to develop a program to help them organize the collection of rare CDs they currently have sitting in their car's glove box. To do this, you will first create an Audio CD class. It should have the following private attributes. . . String cdTitle String[4] artists • int release Year • String genre • float condition . Your class should also have the following methods: Default Constructor: Initializes the five attributes to the following default values: o cdTitle = "" o artists = {"","", "", "} o release Year = 1980 o genre = "" o condition = 0.0 . O Overloaded Constructor: Initializes the five attributes based on values passed into the formal parameters If condition is less than 0.0 or greater than 5.0, set it equal to 0.0 o If release Year is less than 1980, set it equal to 1980 • Print message if the parameter's artist array size is greater than 4, and only store the first four values Getter method for all class attributes • You will then create a separate class, Assignment7A. In its main method, you should do the following: Ask the user how many Audio CDs are in their collection Create an array (of type Audio CD) of that size Use a loop to ask the user to enter information for all CDs o Create a Audio CD object for each Audio CD and store it in the next index in the array . Then using another loop, you should give the user the following options: • Print Audio CD information This should ask the user for a number, and then print the information from the Audio CD object at that index using a custom toString() method. If the index is out of bounds, it should notify the user instead. . Search for an Audio CD from the collection • This should ask the user for an Audio CD name, then search the array for an Audio CD with that name (case insensitive). If it exists in the array, then it should print the same information about the Audio CD as in the prior point (Hint: Could you make a method to simplify this process?). If it does not exist in the array, notify the user. . Search for an artist from the collection • This should ask the user for an artist name, then search the array for an Audio CD by that artist (case insensitive). Print all the Audio CDs that the artist worked on in the collection. If they are not in the array, notify the user. • Quit o Ends the loop and the program

Answers

Answer 1

You will start by creating an Audio CD class with attributes such as cdTitle, artists, releaseYear, genre, and condition. The class will have default and overloaded constructors, as well as getter methods for all attributes. In the main method of the Assignment7A class, you will ask the user for the number of CDs in their collection and create an array of Audio CD objects accordingly.

Then, you will provide options to print CD information, search for a CD by name, search for CDs by artist, or quit the program. To solve this assignment, you will create two classes: AudioCD and Assignment7A. The AudioCD class will have private attributes including cdTitle (String), artists (String array of size 4), releaseYear (int), genre (String), and condition (float). The class will have a default constructor that initializes the attributes to default values, and an overloaded constructor that sets the attributes based on the values passed as parameters. The overloaded constructor will also perform some validations, such as setting condition to 0.0 if it is out of range and setting releaseYear to a minimum value of 1980. If the size of the artists array passed as a parameter is greater than 4, only the first four values will be stored, and a message will be printed to notify the user.

In the Assignment7A class's main method, you will prompt the user to enter the number of Audio CDs in their collection. Based on this input, you will create an array of Audio CD objects of the specified size. Then, using a loop, you will ask the user to enter information for each CD, creating an Audio CD object for each and storing it in the next index of the array.

After entering the CD information, you will present the user with options using another loop. The first option is to print the information of a specific CD by asking the user for a number. If the index is within bounds, the information from the Audio CD object at that index will be printed using a custom toString() method. Otherwise, the user will be notified that the index is out of bounds.

The second option is to search for a CD by its name. You will prompt the user to enter a CD name and search the array for a matching CD (case insensitive). If a matching CD is found, its information will be printed using the custom toString() method. If no match is found, the user will be notified.

The third option is to search for CDs by artist. The user will be prompted to enter an artist name, and you will search the array for any Audio CDs by that artist (case insensitive). All the Audio CDs that match the artist will be printed. If no CDs are found, the user will be notified.

The final option is to quit the program, which will end the loop and terminate the program.

Overall, this program allows the user to organize and interact with a collection of rare CDs, providing various options for searching and retrieving information about the CDs in a user-friendly manner.

Learn more about ToString Method here: brainly.com/question/30401350

#SPJ11


Related Questions

Choose one event from the Scientific or Industrial Revolution
that you plan to include on your timeline relating to the history
of technology or engineering.
The Scientific Revolution is generally tho

Answers

One event from the Scientific Revolution that can be included in a timeline relating to the history of technology or engineering is the discovery of the laws of motion by Sir Isaac Newton. Newton's Laws of Motion are considered to be one of the most important discoveries in the field of science.

The Scientific Revolution was an intellectual movement that took place in Europe between the 16th and 17th centuries. It had a profound impact on the world of technology and engineering. Newton's Laws of Motion are considered to be one of the most important discoveries in the field of science. They explain the behavior of objects in motion and are the basis of classical mechanics.

These laws were published in Newton's work "Philosophiæ Naturalis Principia Mathematica" in 1687, which is considered to be one of the most influential books in the history of science and engineering.Newton's laws have been used to develop a wide range of technologies, from automobiles to spacecraft. They have also played a key role in the development of engineering as a discipline.

Engineers use these laws to design structures that can withstand the forces of nature and to create machines that can perform a variety of tasks. Overall, the discovery of the laws of motion by Sir Isaac Newton is an important event from the Scientific Revolution that has had a lasting impact on the history of technology and engineering. It is an excellent example of how scientific discoveries can lead to technological advancements and shape the world we live in today.

To know more about Scientific Revolution, visit:

https://brainly.com/question/14231443

#SPJ11

Read the short scenario below, then identify five guestions that you will ask the (10) client during the first phase of the program development life cycle which focuses on understanding the problem. Scenario: A cafeteria on a campus wants to develop an application which students can install on their phones. Students will be able to order from the cafeteria via the application and specify a collection time for their order.Payment will be made when the order is collected.Staff will also be able to order via the application and will be eligible for delivery of their order to their desks Q.1.2 An online store selling T-shirts was designed using a modular approach.Should a (10) user wish to make a purchase,they have to login.Once logged in,a user can view the catalogue and browse products.If a user wishes to purchase a T-shirt from the catalogue,they can click on it to add it to their shopping cart.When a user is ready to make payment and complete the order,they will follow a checkout procedure. Show how the functionality represented in the scenario can be represented in a hierarchy chart.

Answers

During the first phase of the program development life cycle, the following are the five questions that should be asked to the client.

Given the scenario:

1. What are the specific functions you expect to be included in the application?

2. How would the application be useful for the cafeteria, students and staff?

3. What features of the application would make it convenient and easy for the users to order and collect food?

4. What are the specific payment methods the application will accept and how will they be integrated?

5. Are there any specific security concerns the client has regarding the application's payment system or personal data storage?
Hierarchical Chart for the functionality represented in the scenario:

The following chart represents the hierarchical structure for the functionality represented in the scenario:Starting with the application itself, the users can either be students or staff members.

To know more about development visit:

https://brainly.com/question/29659448

#SPJ11

Your first task is to design a data structure that can be used to store which busses already arrived, print the list of available buses that needs to get the service and be prepared to dispatch again.

Answers

To store which buses have already arrived, the most appropriate data structure would be a set. This is because a set only stores unique elements, which means that if a bus has already arrived and is stored in the set, it won't be duplicated.

A set can also easily be used to find the available buses that need to get the service. By subtracting the set of arrived buses from the set of all buses, we can obtain the set of available buses that still need to get the service.In terms of dispatching the buses, a queue data structure would be most appropriate. This is because a queue follows the "first in, first out" (FIFO) principle, which means that the first bus that needs to be dispatched will be the first bus in the queue to be processed.

To know more about means visit:
https://brainly.com/question/30112112
#SPJ11

Writing the following function in C/Python/StandardML programming language using functional style no loop, using recursion, multiple function allowed): 1-a) f(x, n) = 1 - x + x2 – x3 +... + (-1)"x" 1-b) f(x,y,n) = x1 + xn-ly +... + xyn-1 + yn

Answers

C programming language:1-a) f(x, n) = 1 - x + x2 – x3 +... + (-1)"x"Using recursion, the C program for the given function will be as follows.

#include float f(float, int);

int main() {    float x, res;

   int n;    printf("Enter the value of x: ");  

 scanf("%f", &x);    printf("Enter the value of n: ");  

 scanf("%d", &n);    res = f(x, n);

  printf("Result = %f", res);  

 return 0;

}

float f(float x, int n) {    static int flag = 0;

  static float res;    if(n == 0) {        return res;    

}    if(flag == 0) {        res += 1;        flag = 1;    

}    else {        res -= x*n;        flag = 0;    

}    return f(x, n-1);}1-b) f(x,y,n) = x1 + xn-ly +... + xyn-1 + yn Using recursion,

the C program for the given function will be as follows:

#include float f(float, float, int, int);

int main() {    float x, y, res;    int n;

  printf("Enter the value of x: ");  

 scanf("%f", &x);    printf("Enter the value of y: ");

  scanf("%f", &y);    printf("Enter the value of n: ");  

scanf("%d", &n);    res = f(x, y, n, 1);    printf("Result = %f", res);  

return 0;}float f(float x, float y, int n, int i) {    if(n == 0) {        return 0;  

}    return x*i + y*(f(x, y, n-1, i*x));}Python programming language:1-a) f(x, n) = 1 - x + x2 – x3 +... + (-1)"x"

The Python program for the given function using recursion will be as follows:def f(x, n, flag=0, res=0):  

if n == 0:        return res    if flag == 0:        res += 1        flag = 1    else:        res -= x*n        flag = 0    return f(x, n-1, flag, res)x = float(input("Enter the value of x: "))n = int(input("Enter the value of n: "))res = f(x, n)print("Result = ", res)1-b) f(x,y,n) = x1 + xn-ly +... + xyn-1 + yn.

To know more about recursion visit:

https://brainly.com/question/32344376

#SPJ11

A-Show in Table the Differences Between the Microprocessors and the Microcontrollers. B-What are the Characteristics of an Embedded System (Only Five)?

Answers

RAM is a volatile memory that allows for read and write operations, while ROM is a non-volatile memory that stores permanent instructions and data that cannot be modified.

What are the key differences between RAM and ROM in a computer system?

A) Microprocessors are designed for general-purpose computing tasks,

while microcontrollers are specialized for specific dedicated applications.

B) Characteristics of embedded systems include real-time operation,

limited resources, specific functionality, connectivity, and reliability.

Learn more about volatile memory

brainly.com/question/32217854

#SPJ11

Question 8 A multivalued attribute cannot be used in a document database. (A) True B) False

Answers

The given statement "A multivalued attribute cannot be used in a document database." is false because document databases use a document-oriented model that allows for the storage and retrieval of semi-structured data.

In document databases, multivalued attributes are used in order to handle one to many or many to many relationships. Therefore, the given statement is false In document databases, collections of documents are used to store and retrieve data, with each document containing a set of key-value pairs. Multivalued attributes can be used to store lists or arrays of values within a document.In addition, document databases allow for nested and hierarchical data structures, which can be used to represent more complex relationships between data entities.

For example, a document could contain nested sub-documents representing related entities, or arrays of sub-documents representing multiple instances of the same type of entity.In conclusion, multivalued attributes can certainly be used in document databases, and are in fact a key feature of their data modeling capabilities.

Learn more about multivalued attribute: https://brainly.com/question/32668114

#SPJ11

Visual python display window coordinates are formed with (x,y,z) where y represents: Select one: horizontal axis O O in/out of the display window O None of the choices fits Ο Ο vertical axis

Answers

The vertical axis is represented by the y-coordinate in Visual Python display windows, and it runs up and down. The horizontal axis is represented by the x-coordinate, which runs left to right, and the z-coordinate represents depth. These coordinates can be used to position and manipulate objects on the screen.

Visual python display window coordinates are formed with (x,y,z) where y represents the vertical axis. A coordinate system is a method for identifying the location of an object in space. Visual Python coordinates for display windows are made up of three dimensions: x, y, and z. The horizontal axis is represented by the x-axis, which runs left to right. The vertical axis is represented by the y-axis, which runs up and down. The z-axis represents depth, or distance from the viewer, and runs into and out of the display window.
The y-axis is the vertical axis in the Visual Python display window, and it represents the up-and-down direction. The origin, or (0,0), is in the bottom left corner of the window, with positive x values increasing to the right and positive y values increasing upward.
In Visual Python, you can use these coordinates to position objects on the screen and specify their size, color, and other properties. For example, if you want to draw a rectangle on the screen, you can specify its position using x and y coordinates and its size using width and height. By manipulating these values, you can create complex shapes and animations.

To know more about windows visit :

https://brainly.com/question/31229807

#SPJ11

IN PYTHON WITHOUT CLASSES PLEASE AND DO NOT JUST COPY AND PASTE
IT FROM SOMEONE ELSE
The 2 data files: and each contain a list of the 1000 most popular names for boys and girls in the U.S. for the year 2021 as using that name in the year. For example, the gi

Answers

The task is to read two files that contain a list of the 1000 most popular names for boys and girls in the U.S. for the year 2021 and then sort and merge the data from both files.

This can be done in Python without classes. Below is a sample code for the task:

# Reading boy names fileboy_names_file = open("boy_names.txt",

"r")boy_names = boy_names_file.read().

splitlines()boy_names_file.close()

# Reading girl names filegirl_names_file = open("girl_names.txt", "r") girl_names = girl_names_file.read().

splitlines()girl_names_file.close()

# Combining boy and girl namesnames = boy_names + girl_names

# Sorting names in alphabetical ordernames.sort()

# Writing sorted names to a filesorted_names_file = open("sorted_names.txt", "w")sorted_names_file.write("\n".join(names))sorted_names_file.close()

In this code, the two files "boy_names.txt" and "girl_names.txt" containing the list of popular boy names and girl names respectively are read using the `open()` and `read()` functions.

To know more about popular visit:

https://brainly.com/question/11478118

#SPJ11

The ____________ command allows us to examine the most recent boot message
A. fsck
B. init
C. mount
D. dmesg
E. mkinitrd

Answers

The command that allows us to examine the most recent boot message is (option) D. "dmesg".

1. Boot Messages: During the boot process of a computer system, various messages are generated by the kernel and other system components. These messages provide information about the hardware initialization, device detection, module loading, and other relevant system events that occur during the boot process.

2. dmesg Command: The "dmesg" command is a utility in Unix-like operating systems that displays the kernel ring buffer, which contains the most recent system messages. By running the "dmesg" command, users can examine the boot messages and other system events that have occurred since the last boot.

3. Examining Boot Messages: When the "dmesg" command is executed, it retrieves the contents of the kernel ring buffer and displays them on the terminal. This output includes information about the hardware devices, drivers, and system processes that have been initialized during the boot process.

4. Analyzing System Events: The "dmesg" command provides valuable insights into the system's behavior and can help diagnose issues related to hardware, drivers, or system configuration. It allows users, administrators, and developers to examine the boot messages for any errors, warnings, or informational messages that can assist in troubleshooting or understanding the system's state after boot.

5. Additional Usage: In addition to examining boot messages, the "dmesg" command can also be used to monitor real-time kernel messages and system events. By using options and filters with the command, users can customize the output, search for specific messages, or track ongoing system events.

Overall, the "dmesg" command serves as a useful tool for accessing and reviewing the most recent boot messages, providing valuable information for system analysis, debugging, and maintenance.


To learn more about computer system click here: brainly.com/question/14253652

#SPJ11

Please help with this coding exercise
CountEvenNumbers.java // Use the lines of code in the right and drag // them to the left so they are in the proper // order to count the values in array numbers // that are even. /1 public class Count

Answers

The purpose is to arrange the provided lines of code in the correct order to count the even numbers in an array.

What is the purpose of the given coding exercise?

The given coding exercise involves arranging the lines of code in the correct order to count the even numbers in an array called "numbers" in Java.

The expected solution would be to place the lines of code in the following order:

1. Declare and initialize a variable "count" to 0, which will be used to store the count of even numbers.

2. Iterate through each element "num" in the array "numbers" using a for-each loop.

3. Check if the current number "num" is even by using the modulus operator (%) to divide it by 2 and check if the remainder is 0.

4. If the number is even, increment the "count" variable by 1.

5. After the loop ends, print the final count of even numbers.

This order of code execution will correctly count the even numbers in the given array "numbers" and display the result.

Learn more about code

brainly.com/question/15301012

#SPJ11

The cell reference A7 would change to which of the following when copied from cell B12 to cell C13? Select one: A. B8 B. \( A 8 \) C. B7 D. It wouldn't change

Answers

The correct answer is B. \(A8\).When a cell is copied and pasted or dragged and dropped in a new location, the cell references in the original cell are adjusted to reflect the new location.

The copied cell's references are based on the relation between the original cell and the cell where it is pasted. If you want to make a cell reference absolute so that it does not change when copied or moved to another location, you can add dollar signs ($) to the cell reference. This is referred to as "anchoring" the cell reference. The cell reference A7 would change to \(A8\) when copied from cell B12 to cell C13. This is because the row number would increase by one and the column letter would stay the same. Therefore, the correct option is B. \(A8\). When a cell is copied and pasted or dragged and dropped in a new location, the cell references in the original cell are adjusted to reflect the new location. When a cell is copied and pasted or dragged and dropped in a new location, the cell references in the original cell are adjusted to reflect the new location.

Learn more about cell reference. :

https://brainly.com/question/31171096

#SPJ11

Question 1 Not answered Marked out of \( 1.00 \) P Flag question What kind of software development projects can be undertaken using the Scrum Framework? b. All kind of software development projects c.

Answers

However, it is important to note that Scrum is most effective in projects that involve complex and adaptive work, where requirements may change or evolve over time.

Some examples of software development projects that can be undertaken using the Scrum framework include: Web application development: Scrum can be used to develop web applications, where the requirements and user stories can be prioritized and iteratively delivered in sprints.

Mobile app development: Scrum can be utilized for developing mobile applications, allowing for frequent feedback and continuous integration of features.

Software product development: Scrum is well-suited for developing software products, where the product backlog can be managed, and incremental releases can be planned and delivered.

Agile software development: Scrum is a popular choice for agile software development, enabling teams to work collaboratively, adapt to changing requirements, and deliver high-quality software in short iterations.

While Scrum is commonly used in software development, it can also be applied to other projects, such as marketing campaigns, research projects, or even non-technical projects that require an iterative and adaptive approach. The key is to understand the principles and practices of Scrum and tailor them to suit the specific project requirements and context.

Learn more about involve here

https://brainly.com/question/30130277

#SPJ11

Initialized array A of numbers with floating point and integer variable V are given as local variables in main(). Array consists of 9 elements. Value of integer variable V should be entered from the keyboard. Write the program with function prototype, calling and definition. Function should return the average of those elements of array A which have position index that is greater than V. Function must take arguments. Print result on the screen from mainO function. Ex: Let A=4.6∣2.9∣3.6∣1.0∣2.3∣7.8∣4.4∣5.7∣1.4∣,V=6. Answer is: average =(5.7+1.4)/2=3.55

Answers

The program takes an array A of floating-point numbers and an integer variable V as input. The user enters the value of V from the keyboard. The program then calls a function calculate_average() with the array A and V as arguments.

The function calculates the average of the elements in A that have a position index greater than V and returns the result. Finally, the program in main() prints the average value on the screen.

#include <stdio.h>

float calculate_average(float A[], int size, int V);

int main() {

   float A[9] = {4.6, 2.9, 3.6, 1.0, 2.3, 7.8, 4.4, 5.7, 1.4};

   int V;

   printf("Enter the value of V: ");

   scanf("%d", &V);

   float average = calculate_average(A, 9, V);

   printf("Average = %.2f\n", average);

   return 0;

}

float calculate_average(float A[], int size, int V) {

   float sum = 0;

   int count = 0;

   for (int i = V + 1; i < size; i++) {

       sum += A[i];

       count++;

   }

   return sum / count;

}

In this program, the main() function initializes an array A with 9 floating-point numbers and declares an integer variable V. The user is prompted to enter the value of V from the keyboard using the scanf() function.

The program then calls the calculate_average() function, passing the array A, the size of the array (9), and V as arguments.

The calculate_average() function calculates the sum of the elements in A that have a position index greater than V by iterating over the array using a for loop. It keeps track of the sum and the count of elements considered. Finally, it returns the average by dividing the sum by the count.

Back in main(), the average value returned by the function is printed on the screen using printf().

By using this program structure and function, the average of the elements in A that have a position index greater than V can be calculated and displayed to the user.

Learn more about floating-point numbers here:

https://brainly.com/question/30882362

#SPJ11

The command show ip protocol is used on a router to do which of the following?
a. Display the routing protocol that can run on the router
b. Display the IP address of the routers running an IP protocol
c. Display the routing protocol running on the router
d. None of these answers are correct

Answers

The command "show ip protocol" is used on a router to display the routing protocol running on the router. This command provides information about the active routing protocol and its configuration settings. Therefore, the correct answer is option (c): "Display the routing protocol running on the router."

When executed, the "show ip protocol" command retrieves and presents details about the routing protocol that is currently running on the router. This information includes the protocol type, administrative distance, network addresses being advertised, timers, and other relevant parameters. By examining this output, network administrators can verify the routing protocol in use, ensure proper configuration, and troubleshoot any potential issues related to routing protocol operation. In summary, the primary purpose of the "show ip protocol" command is to provide visibility into the routing protocol running on a router.

Learn more about routing protocol here: brainly.com/question/31678369

#SPJ11

Every module has all of the following except _____? a. A header b. Local variables c. A body d. A return statement. local variables.

Answers

Every module has all of the following except _ local variables____ The correct option is B

What is module ?

A self-contained piece of code that completes a particular purpose is known as a module. Each module has a return statement, a body, and a header. The header includes the module name as well as any global variable declarations that the module may utilize.

The code that completes the module's task is found in the body. The return statement gives the calling module back control. Local variables are declared inside a module's body and cannot be accessed from outside the module. Therefore, not every module contains local variables.

Learn more about module here : brainly.com/question/18084961

#SPJ1

Select all of the Multiplexing statements that are true.
DSL Requires Time Division Multiplexing to operate.
Frequency division Multiplexing uses 5 Khz channels for each
customer line.

Answers

Multiplexing is a method of transmitting various signals across a single communication channel. It is used for the efficient transmission of data and voice signals. Here are some true statements about Multiplexing:1.

Time Division Multiplexing (TDM) is used by DSL to operate. DSL uses TDM to combine multiple data streams into a single communication channel. Each data stream is assigned a specific time slot to transmit data.2. Frequency Division Multiplexing (FDM) uses multiple channels to transmit signals. Each channel is assigned a different frequency band to carry the data. FDM uses 5 kHz channels for each customer line.

This makes it easier to separate the signals at the receiving end.3. Wavelength Division Multiplexing (WDM) is used to transmit signals on fiber optic cables. It uses different wavelengths of light to carry signals. This allows multiple signals to be transmitted across a single fiber optic cable.To summarize, TDM is used by DSL to operate, FDM uses 5 kHz channels for each customer line, and WDM is used to transmit signals on fiber optic cables.

To know more about transmitting visit:

https://brainly.com/question/29575174

#SPJ11

Find weaknesses in the implementation of cryptographic
primitives and protocols in 2500 words:
####initialization phase
cle=Client()
=random.randint(0,5000000)
q = random.randint(pow(10, 20), p

Answers

The given implementation of cryptographic primitives and protocols has weaknesses in its initialization phase due to the use of weak random number generation and insufficient parameter selection.

In the provided code snippet, the client generates a random number 'cle' within the range of 0 to 5,000,000 using the `random.randint()` function. However, the quality of randomness provided by this function may not be sufficient for cryptographic applications. Cryptographic systems rely on strong random numbers to ensure the security of the encryption process. Weak random number generation can introduce vulnerabilities, such as predictable or biased outputs, which can be exploited by attackers.

Furthermore, the code generates another random number 'q' using the `random.randint()` function with a lower bound of 10^20 and an upper bound of 'p'. It is crucial to note that the value of 'p' is not provided in the given code snippet. In cryptographic protocols, the selection of appropriate parameters is essential for ensuring security. Without proper parameter selection, the cryptographic primitives and protocols may become vulnerable to attacks.

To improve the implementation, a more robust random number generator should be used to ensure the generation of strong and unpredictable random values. Additionally, the selection of parameters, such as prime numbers, should follow established standards and guidelines specific to the cryptographic algorithm being implemented.

Learn more about cryptographic

brainly.com/question/32313321

#SPJ11

For our next bash script lab, please form a team with NO more than 4 students. Design your own interesting lab that is useful as some imaginary daily IT tasks. Please include the following features: 1. Condition statement (if else ) 2. Loop (for, while loop) 3. Positional parameters ($1 $2 command line arguments from user input) and/or accept user input from keyboard 4. File I/O (read in a file, write out to a file) 5. Create function with parameters: 6 Use comment # to include explanation info A link to some simple bash script examples. https://github.com/ruanyf/simple-bash-scripts Either include your repl.it web link and/or upload your source code.

Answers

This will output the contents of the file and the number of lines in the file. If the file does not exist, the script will exit with an error message.

./count_lines.sh filename.txt

For our bash script lab, we will design a script that takes a user input file name, reads the file, and outputs the number of lines in the file. The script will include the following features:

A condition statement (if else) to check if the file exists.

A loop (while loop) to read the file line by line.

Positional parameters ($1 command line argument for the file name).

File I/O (read in a file).

A function with parameters to count the number of lines in the file.

Here is the source code for the script:

#!/bin/bash

# Check if file exists

if [ -e "$1" ]

then

 echo "File exists"

else

 echo "File does not exist"

 exit 1

fi

# Function to count lines in file

count_lines() {

 local file=$1

 local lines=$(wc -l < "$file")

 echo "Number of lines in $file: $lines"

}

# Read file line by line

while read line

do

 echo "$line"

done < "$1"

# Call function to count lines in file

count_lines "$1"

learn more about while loop here:

https://brainly.com/question/32887923

#SPJ11

Which compare function will cause the vector of Person objects below to be sorted by last name as the primary key and first name as the secondary key?
#include
#include #include
#include
using namespace std;
struct Person {
string last, first;
Person(const string& 1st, const string& frst): last (1st), first (frst) {}
};
int main() {
vector people;
people.emplace_back("Doe", "John"); people.emplace_back("Dough", "John");
people.emplace_back("Dough", "Jane"); people.emplace_back("Doe", "Jane");
sort(begin(people), end (people), compare); for (const Person& p: people)
cout << p.last << ", " << p.first <<<< endl;
}
/* Output: Doe, Jane
Doe, John
Dough, Jane Dough, John
auto compare = [](const Person& p1, const Person& p2) [
return p1 < p2:
auto compare = [](const Person& p1, const Person& p2) [ return p1.last < p2.last && p1.first < p2.first;
auto compare = [](const Person& p1, const Person& p2) [ return p1.first < p2.first || (p1.first == p2.first && p1.last < p2.last);
auto compare = [](const Person& p1, const Person& p2) [ return p1.last < p2.last || (p1.last == p2.last && p1.first < p2.first);

Answers

The compare function that will cause the vector of Person objects to be sorted by last name as the primary key and first name as the secondary key is:

```cpp

auto compare = [](const Person& p1, const Person& p2) {

   return p1.last < p2.last || (p1.last == p2.last && p1.first < p2.first);

};

```

This compare function first compares the last names of two Person objects. If the last names are different, it determines the order based on the comparison of last names. If the last names are the same, it further compares the first names to determine the order. This ensures that the vector will be sorted by last name as the primary key and first name as the secondary key.

Learn more about cpp:

brainly.com/question/13903163

#SPJ4

Why is it important to understand usability, configurability, and interoperability? Should these concepts out way the underlining cost of the new system? Which system do you recommend and why? (atleast 250 words of explanation) Please include references and in-text citations.

Answers

Understanding usability, configurability, and interoperability is crucial when considering a new system. Usability ensures the system is user-friendly and easy to use, while configurability allows customization to align with specific organizational needs. Interoperability enables seamless integration with other systems

Why is it important to understand usability, configurability, and interoperability?

Understanding usability, configurability, and interoperability is crucial when evaluating and implementing a new system because these concepts directly impact the system's effectiveness, efficiency, and adaptability within an organization's environment. While the cost of a new system is an important consideration, it should not solely dictate the decision-making process. In this analysis, I will recommend a system based on the significance of usability, configurability, and interoperability, while considering the underlying cost.

Usability refers to the ease of use and user-friendliness of a system. A system with good usability minimizes the learning curve, enhances user productivity, and reduces user frustration. Configurability refers to the flexibility of the system to be customized and adapted to specific organizational needs. It allows organizations to tailor the system's features, workflows, and interfaces to align with their unique requirements. Interoperability refers to the ability of the system to seamlessly communicate and integrate with other existing systems or platforms. Interoperability enables data sharing, workflow coordination, and the efficient exchange of information between systems.

These concepts should outweigh the underlying cost because prioritizing usability, configurability, and interoperability ensures the long-term success and value of the system. A system that is difficult to use, rigid in its configuration options, and lacks interoperability can hinder productivity, limit growth potential, and lead to higher costs in the long run due to inefficiencies and the need for additional integrations.

Considering these factors, I recommend implementing a system that excels in usability, configurability, and interoperability: Microsoft Dynamics 365. Microsoft Dynamics 365 is a comprehensive business application platform that offers a range of customizable modules for various business functions, such as sales, customer service, finance, and operations. It provides a user-friendly interface, extensive configuration options, and strong interoperability with other Microsoft products like Office 365 and Azure.

With a focus on usability, Microsoft has invested heavily in designing an intuitive user experience for Dynamics 365, reducing training time and improving user adoption. The system offers extensive configurability, allowing organizations to tailor workflows, data fields, and business processes to match their specific requirements. Moreover, Microsoft Dynamics 365 is designed with interoperability in mind, offering integration capabilities with other popular systems and APIs.

Learn more on configurability here;

https://brainly.com/question/14114305

#SPJ4

The Open System Interconnection (OSI) and Transmission Control Protocol/Internet Protocol (TCP/IP) standards are implemented in networking to standardize the process of data transmission and reception. (a) List SEVEN [7] Open System Interconnection (OSI) layers. (b) Explain the purpose of the physical layer in TCP/IP standard. (c) List all THREE [3] basic forms of physical layer media. Provide ONE [1] example of usage of each media. (d) Compare between OSI and TCP/IP model.

Answers

The OSI model consists of seven layers, the physical layer in TCP/IP is responsible for transmitting raw data bits, the three basic forms of physical layer media are guided, unguided, and fiber optic, and TCP/IP is a practical implementation of the OSI model.

Explain the purpose and characteristics of the physical layer in the TCP/IP standard and provide examples of the three basic forms of physical layer media.

The Open System Interconnection (OSI) model and the Transmission Control Protocol/Internet Protocol (TCP/IP) standard play essential roles in networking by establishing a standardized framework for data transmission and reception.

The OSI model consists of seven layers: the Physical, Data Link, Network, Transport, Session, Presentation, and Application layers.

Among these, the physical layer is responsible for transmitting raw data bits over the network media. In the TCP/IP standard, the physical layer ensures the conversion of data from the logical format used by the upper layers into signals that can be transmitted through the physical medium.

The three basic forms of physical layer media are guided media (e.g., twisted pair cables for Ethernet), unguided media (e.g., wireless transmission using radio waves), and fiber optic cables.

Each of these media has specific characteristics and applications, such as the use of twisted pair cables for local area networks (LANs), wireless transmission for mobile communication, and fiber optic cables for long-distance and high-bandwidth connections.

Comparing the OSI and TCP/IP models, both serve as conceptual frameworks for networking, but the OSI model is a theoretical standard with seven distinct layers, while TCP/IP is a practical implementation widely used in the Internet, combining multiple layers of the OSI model into fewer layers.

Learn more aboutb OSI model consists

brainly.com/question/31023625

#SPJ11

Part 4 - A function to calculate the differences between array items have one item iess thon the input. You must write your function using cither bosic array manipulation or for/while loops - you may

Answers

Here's an example of a Python function that calculates the differences between array items, resulting in an array with one item less than the input array. This function uses basic array manipulation:

python

def calculate_differences(arr):

   differences = []

   for i in range(len(arr)-1):

       differences.append(arr[i+1] - arr[i])

   return differences

To calculate the differences between array items, with one item less than the input, we can define a function called `calculate_differences()` in Python. This function takes an array as input and uses a for loop to iterate over the elements of the array.

Inside the loop, we access each element of the array using its index `i`. By subtracting the current element (`arr[i]`) from the next element (`arr[i+1]`), we can calculate the difference between these two adjacent items. The differences are then stored in a new array called `differences`.

The loop iterates up to `len(arr)-1` to ensure that we stop at the second-to-last element, as we need to compare it with the last element. By subtracting each element from its succeeding element, we calculate the differences between consecutive items in the array.

Finally, the function returns the `differences` array, which contains the calculated differences between the array items.

Learn more about Python function

brainly.com/question/30763392

#SPJ11

the major technologies used with wireless local area networks are

Answers

The major technologies used in wireless local area networks (WLANs) include Wi-Fi, Bluetooth, Zigbee, Near Field Communication (NFC), and Long-Term Evolution (LTE). Wi-Fi is the most common and widely used technology for wireless networking, allowing devices to connect to WLANs.

What are the major technologies used with wireless local area networks?

The major technologies used with wireless local area networks (WLANs) are:

1. Wi-Fi (Wireless Fidelity): Wi-Fi is the most widely used technology for wireless networking. It allows devices to connect to a WLAN and access the internet or local network resources wirelessly. Wi-Fi operates on various standards, such as 802.11a, 802.11b, 802.11g, 802.11n, 802.11ac, and 802.11ax (Wi-Fi 6).

2. Bluetooth: While primarily used for short-range wireless connections between devices (such as wireless keyboards, mice, and headphones), Bluetooth can also be utilized for wireless networking in certain scenarios. Bluetooth enables data transfer and communication between devices over short distances.

3. Zigbee: Zigbee is a low-power wireless technology designed for wireless sensor networks and home automation systems. It is commonly used for applications requiring low data rates, such as smart home devices, industrial automation, and remote monitoring.

4. Near Field Communication (NFC): NFC is a short-range wireless technology that allows devices to establish communication by bringing them into close proximity. NFC is commonly used for contactless payments, data transfer between devices, and access control systems.

5. Long-Term Evolution (LTE): LTE is a wireless communication standard used for cellular networks. It provides high-speed data transfer and is widely used for mobile devices accessing the internet through cellular networks. LTE can also be used for creating wireless local area networks, known as LTE-WLAN aggregation or LTE-WLAN interworking.

These technologies form the backbone of wireless local area networks, enabling wireless connectivity, data transfer, and communication between devices in various environments and applications.

Learn more on wireless local area network here;

https://brainly.com/question/32868694

#SPJ4

C# Language:
Question 1.
Given the properties and default no-arg constructor for a SmartPhone class, write a constructor that sets both properties
class SmartPhone
{
private string _number;
private string _operatingSystem;
// Constructors public SmartPhone()
{
Number = "+1(000)000-0000";
OperatingSystem = ""; }
public string Number { get => _number; set => _number = value; }
public string OperatingSystem { get => _operatingSystem; set => _operatingSystem = value; }
...
Fill in the blanks for the Constructor:
public SmartPhone (__________) {
___________
______________
}
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Question 2.
Given the properties and default no-arg constructor for a Phone class, write a constructor that set all properties
class Phone
{
private string _number;
// Constructors
public Phone()
{
Number = "+1(000)000-0000";
}
public string Number { get => _number; set => _number = value; }
...
Fill in the blanks for the Constructor:
Phone (_______) {
________
__________

Answers

The purpose of the code is to write constructors for the SmartPhone and Phone classes in C# that initialize their respective properties with values provided by the user.

What is the purpose of the given code in Question 1 and Question 2?

In the given C# code, the SmartPhone class has two private properties, `_number` and `_operatingSystem`, along with their corresponding getters and setters. The task is to write a constructor that sets both properties.

The constructor for the SmartPhone class can be filled in as follows:

public SmartPhone(string number, string operatingSystem)

{

   Number = number;

   OperatingSystem = operatingSystem;

}

By providing two parameters, `number` and `operatingSystem`, the constructor allows the user to pass values for both properties when creating an instance of the SmartPhone class.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Question 2:

In the given C# code, the Phone class has a private property `_number` and its corresponding getter and setter. The task is to write a constructor that sets this property.

The constructor for the Phone class can be filled in as follows:

public Phone(string number)

{

   Number = number;

}

By providing a parameter `number`, the constructor allows the user to pass a value for the `_number` property when creating an instance of the Phone class.

Learn more about constructors

brainly.com/question/29802740

#SPJ11

select correct inequality for asymptotic oroder of growth of below fucntion. Sigma from 1 to n of (i). This means summation on ni where i ranges from 1 to n _______ n^k, where k>2

options: >, =,

Answers

The correct inequality for the asymptotic order of growth of the given function i.e Sigma from 1 to n of (i) is > n^2.

The correct answer for the inequality for asymptotic order of growth of the given function i.e Sigma from 1 to n of (i) is > n^2.As we know that summation from 1 to n of i means that it adds all integers between 1 to n, i.e; 1 + 2 + 3 + ....... + n.The sum of this series can be expressed as (n * (n+1))/2. Now, we have to determine the asymptotic order of growth of the series i.e; how the function grows as the input n increases to a large value.If we compare the summation to n^k, we can see that the function grows faster than n^2 and slower than n^3 because when k>2, n^k will grow faster than n^2 and when k<2, n^k will grow slower than n^2.Therefore, the correct inequality for the asymptotic order of growth of the given function is "> n^2".

Explanation:For large values of n, the sum of integers from 1 to n can be expressed as (n * (n+1))/2, which has a growth rate of n^2. Therefore, the correct inequality for the asymptotic order of growth of the given function is "> n^2".

To know more about inequality visit:

brainly.com/question/30231017

#SPJ11

C++
In this practical, you are going to improve your Rock Paper
Scissors (RPS) program, allowing for greater flexibility. The rules
are the same as before: two players compete by choosing Rock, Paper

Answers

In the practical where you are supposed to improve your Rock Paper Scissors program, the first thing you will need to do is to define new rules and possibilities. It is important to set the new rules to enable the two players to play.

Here are some guidelines on how to improve the Rock Paper Scissors (RPS) program in C++:Guidelines to improve RPS program in C++1. First, define the rules of the game in detail. It is important to keep the previous rules of Rock, Paper, Scissors as they are but allow more flexibility. For example, if there are new elements, let's say Lizard and Spock, the rules should change accordingly.2. Define the new set of rules for the game. For instance, the new rules may look like this:Rock crushes Scissors, LizardScissors cut paper, LizardPaper covers rock, SpockRock vaporizes Lizard, ScissorsSpock smashes scissors, RockLizard poisons Spock, PaperPaper disproves Spock, Rock3.

To know more about Scissors visit:

https://brainly.com/question/21939271

#SPJ11

Write a Java program which: (1) Prompts a user to enter customer id, unit price in this format (e.g. 3.75), quantity (as whole number), product description, and discount in this format (e.g., . 10) (u

Answers

Here is a Java program that prompts the user to enter customer information such as customer ID, unit price, quantity, product description, and discount.

To fulfill the requirement, we can write a Java program that utilizes the Scanner class to read user input and store the entered values in appropriate variables. The program would begin by displaying prompts for each required piece of information: customer ID, unit price, quantity, product description, and discount. The Scanner class would be used to read the user's input and assign it to variables.

Once the user has provided all the necessary information, the program can perform any desired calculations or operations using the collected data. For example, it could calculate the total cost by multiplying the unit price and quantity, apply the discount if applicable, and display the final result.

This program allows for user interaction and input, ensuring that the necessary customer details are captured accurately and can be used for further processing.

Learn more about Java

brainly.com/question/33208576

#SPJ11

The use of Facial recognition in cities. Scenario: Newark has many cameras in the city for various reasons. It has been proposed that Facial Recognition software be added to the camera systems so they can actively find criminals as they walk the streets. The software though records data on all faces not just criminals. Dilemma: The mayor has to decide to go ahead with the software usage or not despite of the invasion of privacy or most people.
Identify the moral agents (agency).
2. What of value is at stake?
3. Who/what are the stakeholders?
4. At least 2 possible courses of action (identify at least 2).
Start a new paragraph for each. Begin that paragraph by stating: "A possible
the course of action is XXX".
Describe the course of action clearly enough for the reader to understand your
analysis.
Be sure that one course of action is the action in the scenario and another
course of action is not doing the action in the scenario.
5. Consequences associated with each course of action.
For each, state: "A(nother) consequence of the action XXX is YYY".
6. Analyze the scenario using the 5 objective ethical theories You will need 5 clearly marked subsections, one for each theory (Kantianism, Act
Utilitarianism, Rule Utilitarianism, Social Contract Theory, Virtue Theory).
7. Identify and Apply any clauses in the two codes of ethics
You will need 2 clearly marked subsections, one for the ACM Code of Ethics and
the other for the Software Engineering Code of Ethics.
You must have a minimum of three (3) clauses from each Code of Ethics.
Give the clause number, summarize the actual clause, and then
state how and why each would apply to this situation.
The clauses in the codes are generic enough that several codes can easily
apply.

Answers

Facial recognition technology in cities offers the advantage of identifying criminals in real-time, aiding in public safety. It raises concerns about invasion of privacy for all individuals under surveillance.

Moral agents (agency):

1. The Mayor of Newark

2. The developers and operators of the Facial Recognition software

Value at stake:

1. Privacy of individuals

2. Security and safety of the city

Stakeholders:

1. Residents of Newark

2. Law enforcement agencies

3. The Mayor and city officials

4. Developers and operators of the Facial Recognition software

5. Civil liberties organizations

6. Potential criminals or individuals wrongfully identified

Possible courses of action:

1. A possible course of action is to implement Facial Recognition software on the city's camera systems. This would involve actively using the software to identify potential criminals and enhance public safety. Consequences of this action could include improved crime detection and prevention, potentially leading to a safer city.

2. Another possible course of action is to refrain from implementing Facial Recognition software. This would involve maintaining the existing camera systems without the additional surveillance capabilities. Consequences of this action could include preserving privacy rights and avoiding the potential risks associated with the indiscriminate collection of facial data.

Ethical analysis using objective ethical theories:

1. Kantianism: From a Kantian perspective, the decision should be based on the principle of respect for individuals' autonomy and privacy. The indiscriminate collection of facial data without consent would likely violate the principle of treating individuals as ends in themselves rather than means to an end.

2. Act Utilitarianism: The ethical choice would depend on the overall balance of happiness and unhappiness that the implementation of Facial Recognition software would bring. If the benefits, such as increased public safety, outweigh the potential negative consequences, it may be considered ethically justified. However, concerns about privacy and potential misuse should be taken into account.

3. Rule Utilitarianism: The decision should be guided by rules or policies that promote the greatest overall happiness for society. Balancing the benefits of crime detection and prevention against the potential infringement on privacy rights, the implementation of Facial Recognition software would need to be carefully evaluated to ensure that it aligns with the principles and rules that maximize overall happiness.

4. Social Contract Theory: The decision should take into account the agreement and consent of the affected parties, including the residents of Newark. If the majority of the community supports the implementation of Facial Recognition software and considers it necessary for their safety, it could be seen as a valid action within the social contract framework.

5. Virtue Theory: The decision should reflect virtues such as fairness, respect for privacy, and a commitment to public safety. Balancing these virtues and considering the potential consequences, the ethical choice would depend on how well the implementation of Facial Recognition software upholds these virtues and maintains a balance between security and privacy.

Applying clauses from codes of ethics:

ACM Code of Ethics:

1. Clause 1.1 - "Contribute to society and human well-being." The decision should consider the potential positive impact on public safety and well-being, while also addressing concerns about privacy and potential harm to individuals' well-being.

2. Clause 1.3 - "Avoid harm to others." The decision should aim to minimize the potential harm or risks associated with the indiscriminate collection of facial data and ensure proper safeguards are in place to protect individuals' privacy and prevent misuse of the data.

Software Engineering Code of Ethics:

1. Clause 2.01

- "Approve software only if they have a well-founded belief that it is safe, meets specifications, passes appropriate tests, and does not diminish quality of life, diminish privacy or harm the environment." The decision should consider the potential impact of the Facial Recognition software on privacy and quality of life, ensuring it meets safety standards and is ethically justified.

2. Clause 3.09 - "Ensure that specifications for software on which they work have been well documented, satisfy the users' requirements, and have the appropriate approvals." The decision should involve proper documentation and consideration of users' requirements, including their concerns about privacy and data protection.

learn more about Facial recognition here:

https://brainly.com/question/32286228

#SPJ11

when you use a link to start an email, you code the href attribute as

Answers

When using a link to start an email, the href attribute is coded to specify the destination URL. It serves as the link's address, directing the user to the designated webpage or resource.

When creating an email with a link, the href attribute is an essential component of the HTML code. It is used to define the destination URL or web address that the link should direct to when clicked. The href attribute stands for "hypertext reference" and is included within the anchor tag (<a>) in HTML.

To code the href attribute correctly, you need to provide the full URL or the relative path to the desired webpage or resource. For example, if you want the link to direct recipients to a webpage titled "example.com," the href attribute would be coded as href="https://www.example.com". Similarly, if you want the link to open a PDF file named "document.pdf" located in the same directory as the email, the href attribute could be coded as href="document.pdf".

In conclusion, the href attribute in email coding plays a crucial role in defining the destination of a link. By properly specifying the href attribute, you ensure that recipients are directed to the intended webpage or resource when they click on the link.

Learn more about href attribute here:

https://brainly.com/question/32368594

#SPJ11

Question 1 (10 points). Writing the following function in C/Python/StandardML programming language using functional style (no loop, using recursion, multiple function allowed): 1-a) \( f(x, n)=1+\frac

Answers

This implementation is a good example of a functional style implementation in Python that meets the requirements of the question.

The function f(x,n) is defined by f(x,n) = 1 + x/1! + x²/2! + ... + xⁿ/n!.

This question is asking you to write a recursive function to calculate this expression in C/Python/Standard ML using functional style. Here is an example implementation in Python:```def factorial(n):
   if n == 0:
       return 1
   else:
       return n * factorial(n-1)
       
def f(x, n):
   if n == 0:
       return 1
   else:
       return 1 + x**n/factorial(n) + f(x, n-1)```In this implementation, the factorial function is defined recursively. It takes a single argument, n, and returns n! using the formula n! = n * (n-1) * ... * 1.

The f function is also defined recursively. It takes two arguments, x and n, and returns the value of the expression defined above. If n is zero, it returns 1. Otherwise, it calculates the next term of the expression using x**n/factorial(n) and then recursively calls itself with n-1.

Finally, it adds the result of the recursive call to the current term and returns the result.

This process continues until n is zero.

The implementation above uses recursion instead of loops to calculate the value of the expression. It also uses multiple functions to separate the calculation of the factorial from the calculation of the expression itself.

Overall, this implementation is a good example of a functional style implementation in Python that meets the requirements of the question.

To know more about functional visit;

brainly.com/question/30721594

#SPJ11

Other Questions
PLEASE HELP NEED TO TURN IN SOON John D. Rockefeller said, "If you want to succeed you should strike out on new paths, rather than travel the worn paths of accepted success." Entrepreneurs in the late 1800s took Rockefeller's advice to heart and broke new ground, especially in steel, banking, and Rockefeller's own oil industry. Write a well-constructed essay that describes the business techniques and innovations the industrialists of the late 1800s used to achieve success. When indifference curves are straight linesSelect one:a.the marginal rate of substitution must be risingb.the marginal rate of substitution must be fallingc.there is generally no way to choose "Consider the Black-Scholes-Merton model for two stocks:dS1(t)=0.1 S1(t) dt + 0.2 S1(t) dW1(t)dS2(t)=0.05 S2(t) dt + 0.1 S2(t) dW2(t)Suppose the correlation between W1 and W2 is 0.4. Consider the dynamics of the ratio S2/S1, where A,B,C, D, F,G,I,J,K,LA,B,C,D,F,G,I,J,K,L are constants to be found:d(S2(t)/S1(t)) = (AS1B(t)+C) S2D(t)dt + FS1G(t)S2I(t)dW1(t) + JS1K(t)S2L(t)dW2(t)Enter the value of A:Enter the value of B:Enter the value of C:Enter the value of D:Enter the value of F:Enter the value of G:Enter the value of I:Enter the value of J:Enter the value of K:Enter the value of L:" A normal yield curve is one where long-term rates require higherpayments and short-term rates require lower payments and theplotted yields are not flat.True/False If equal amounts of heat are added to two containers of water and the resultant temperature change of the water in one container is five times that of the water in the other container, then what can you say about the quantities of water in the containers? O The container with five times the temperature change contains one-fifth as much water. O The container with five times the temperature change contains twenty-five times as much water. O The container with five times the temperature change contains five times as much water. O The quantities of water in the two containers are equal. When Dr Davis describes his personal transition from going froma traditional low carb, lean protein diet to a high carb, wholefood plant-based diet, what did he do to reprogram his tastebuds? which of the following completes the sentence, 'broady___ encompasses the digital and social form of media that are otherwise addressed by the entertainment industry memory is often characterized as being similar to a computer because Assume the following Balance of Payments data for a given country Current Account Balance Capital Account Balance Statistical discrepancy = $1,400 = $80 = $200 From these data it can be deduced that the Financial Account Balance is $ ___ (Enter your response as a whole number. Include the minus sign if necessan) Content Substance Latent Heat (3/kg) Steam water 2,260,000 Toe en water 333.000 Answer the following questions dealing with methods of heat transfor Radiation An orange orb has an emissivity of 0.237 and its surroundings are at 310C. The orange orbis absorbing heat via radiation at a rate of 967 W and it is emitting heat via radiation at a rate of 585 W. Determine the surface area of the orb, the temperature of the orb, & Pret. A- 187491 mg x Torb 1 Units are required for this answer. Pret 1 Units are required for this answer. Convection The exterior walls of a house have a total area of 220 m and are at 13.2C and the surrounding air is at 6.6 C. Find the rate of convective cooling of the walls, assuming a convection coefficient of 2.8 W/m"C). Since you're looking for the rate of cooling, your answer should be entered as positive. Xunts are required for this answe Conduction Ice of mass 14.8 kg at 0C is placed in an ice chest. The ice chest has 2 cm thick walls of thermal conductivity 0.02 Wim-K and a surface area of 1.39 m, Express your answers with appropriata mks units. ) How much heat must be absorbed by the ice during the melting process? (b) If the outer surface of the Ice chest is at 33 C, how long will it take for the Ice to melt? 04587 X 4925400 J solve for yIn rectangle \( R E C T \), diagonals \( \overline{R C} \) and \( \overline{T E} \) intersect at \( A \). If \( R C=12 y-8 \) and \( R A=4 y+16 \). Solve for \( y \). 10 11 56 112 deficiency payments are part of a federal program to assist To become a secured party, a creditor must gain a security interest in the collateral of a debtor. Which of the following is not a criterion for creating the security interest? TOPIC - |Cross-Provincial Business inside Canada. Key Problems Find the right data. Visualize that data. Explain that data. Analyze it. Discuss problems and opportunities. Length: 10 pages - Find what barriers to trade and business exist within canada - You will see that each province is a virtual country - Lots of legal economics social and other differences - There is even a free trade agreement within canada Start looking at the research and reports that study the implication of those barriers for private business and for consumers in general You may either go for a general review of the entire situation with cross-provincial trade Java language:What is the error in the following code?Discuss, in some detail, why it is an error.abstract class example {abstract static public foo();} Put yourself in the shoes of the manager of our renowned donut shop, "Varsity Donuts". Your forecasted demand for the next five months is 6,8,5,5 and 6.5 thousand donuts, respectively. Each of your employees can make 60 donuts per day, and assume that each month has 30 days. Currently, you have 4 employees with a monthly salary of $300 each. The cost of hiring a new employee, CH, is $200 and the cost of firing a current employee, CF, is $500 per employee. Also, due to health regulations, you cannot keep any inventory for the next month. (a) Develop a Chase Production policy (zero inventory) that meets the demand and find the cost of this policy. (b) After researching the market, you discovered that you cannot hire any new employee in the last 3 months of the planning horizon. How can this change your strategy? Is this model cheaper for you? If yes by how much? (Show your policy in detail). (c) Having a linear programming model to minimize your cost, how can you show the limitation in hiring new employees in the last 3 months in your model? Write the related constraints. why do carboxylic acids have higher boiling points than alcohols? Kittel, 8th edComplex wavenectors in the energy gap. Find an expression for the imaginary part of the wavevector in the energy gap at the boundary of the first Brillouin zone, in the approximation that led to Eq. ( Write a Java program which: (1) Prompts a user to enter customer id, unit price in this format (e.g. 3.75), quantity (as whole number), product description, and discount in this format (e.g., . 10) (u : Which of the following statements are true? (More than one statement may be true.) Select one or more: In a rural, outdoor location, GPS can provide location information accurate to 10 meters or less. O GPS provides an accurate, always available way of determining location, even when indoors. Bluetooth tracking devices such as Trackr rely on users of the system to identify the location of nearby tags for them. As long as it is in line of sight to at least one GPS satellite, a GPS receiver can accurately determine its location anywhere in the world. O AGPS receiver reveals its location to every GPS satellite it can see.