You have arranged some directories and files as follows:
/home/yourLoginName/
docs/
a.txt
b.txt
assts/
cs150/
a0.cpp
cs250/
adata
a1.h
a1.cpp
a2.h
a2.cpp
You have just issued the command:
cd ~/assts/cs150
Which of the following are valid ways to copy all of the header files from the cs250 directory into the cs150 directory?
a) cp ../cs250/* ../cs150
b) cp ../cs250 cs150
c) cp ../cs250/*.? .
d) cp ../cs250/*.* cs150
e) cp ../cs250/*.h cs150
f) cp ../cs250/*.h .

Answers

Answer 1

Answer:

The answer is "Option a and Option f"

Explanation:

In the given question option a and option f is correct because both commands use the "cp" command, which is used to copy files and in this command, in option a, it uses the file "from cs250 to cs150", and an option "f" uses the "cs250 with '.h' that is a file extension", and the wrong choice can be defined as follows:

In choice b, it is wrong because it is not a correct command. In choice c, in this command we use "?" symbol, that is wrong.   In choice d and e both were invalid.  

Related Questions

Need help reply fast

Need help reply fast

Answers

Answer:

Explanation:

Dark filled in notes: Quarter notes: 1 beat

Clear circle notes: Half notes: 2 beats

Upside down hat: Whole rest: 4 beats

Normal hat: Half rest: 2 beats

Curvy symbol: Quarter rest: 1 beat

This program extends the earlier "Online shopping cart" program. (Consider first saving your earlier program).

(1) Extend the ItemToPurchase struct to contain a new data member. (2 pt)

char itemDescription[ ] - set to "none" in MakeItemBlank()
Implement the following related functions for the ItemToPurchase struct.

PrintItemDescription()
Has an ItemToPurchase parameter.

(2) Create three new files:

ShoppingCart.h - struct definition and related function declarations
ShoppingCart.c - related function definitions
main.c - main() function (Note: main()'s functionality differs from the warm up)
Build the ShoppingCart struct with the following data members and related functions. Note: Some can be function stubs (empty functions) initially, to be completed in later steps.

Data members (3 pts)
char customerName [ ]
char currentDate [ ]
ItemToPurchase cartItems [ ] - has a maximum of 10 slots (can hold up to 10 items of any quantity)
int cartSize - the number of filled slots in array cartItems [ ] (number of items in cart of any quantity)
Related functions
AddItem()
Adds an item to cartItems array. Has parameters of type ItemToPurchase and ShoppingCart. Returns ShoppingCart object.
RemoveItem()
Removes item from cartItems array (does not just set quantity to 0; removed item will not take up a slot in array). Has a char[ ](an item's name) and a ShoppingCart parameter. Returns ShoppingCart object.
If item name cannot be found, output this message: Item not found in cart. Nothing removed.
ModifyItem()
Modifies an item's description, price, and/or quantity. Has parameters of type ItemToPurchase and ShoppingCart. Returns ShoppingCart object.
GetNumItemsInCart() (2 pts)
Returns quantity of all items in cart. Has a ShoppingCart parameter.
GetCostOfCart() (2 pts)
Determines and returns the total cost of items in cart. Has a ShoppingCart parameter.
PrintTotal()
Outputs total of objects in cart. Has a ShoppingCart parameter.
If cart is empty, output this message: SHOPPING CART IS EMPTY
PrintDescriptions()
Outputs each item's description. Has a ShoppingCart parameter.

(3) In main(), prompt the user for a customer's name and today's date. Output the name and date. Create an object of type ShoppingCart. (1 pt)

(4) Implement the PrintMenu() function in main.c to print the following menu of options to manipulate the shopping cart. (1 pt)
(5) Implement the ExecuteMenu() function in main.c that takes 2 parameters: a character representing the user's choice and a shopping cart. ExecuteMenu() performs the menu options (described below) according to the user's choice, and returns the shopping cart. (1 pt)


(6) In main(), call PrintMenu() and prompt for the user's choice of menu options. Each option is represented by a single character.

If an invalid character is entered, continue to prompt for a valid choice. When a valid option is entered, execute the option by calling ExecuteMenu() and overwrite the shopping cart with the returned shopping cart. Then, print the menu and prompt for a new option. Continue until the user enters 'q'. Hint: Implement Quit before implementing other options. (1 pt)

(7) Implement the "Output shopping cart" menu option in ExecuteMenu(). (3 pts)
8) Implement the "Output item's description" menu option in ExecuteMenu(). (2 pts)
(9) Implement "Add item to cart" menu option in ExecuteMenu(). (3 pts)
(10) Implement the "Remove item from cart" menu option in ExecuteMenu(). (4 pts)
(11) Implement "Change item quantity" menu option in ExecuteMenu(). Hint: Make new ItemToPurchase object before using ModifyItem() function. (5 pts)

Answers

Answer:

To create an online shopping cart. You need to do the following:

Update the ItemToPurchase struct to include a new data member called itemDescription.

Create three new files: ShoppingCart.h, ShoppingCart.c, and main.c.

Build the ShoppingCart struct with the following data members: customerName, currentDate, cartItems (which can hold up to 10 items of any quantity), and cartSize.

Implement the AddItem, RemoveItem, ModifyItem, GetNumItemsInCart, GetCostOfCart, PrintTotal, and PrintDescriptions functions for the ShoppingCart struct.

In the main function, prompt the user for a customer's name and today's date, and create an object of type ShoppingCart.

Implement a menu of options to manipulate the shopping cart in the PrintMenu function in main.c.

Implement the ExecuteMenu function in main.c to perform the menu options according to the user's choice.

Implement the "Output shopping cart" menu option in ExecuteMenu.

Implement the "Output item's description" menu option in ExecuteMenu.

Implement the "Add item to cart" menu option in ExecuteMenu.

Implement the "Remove item from cart" menu option in ExecuteMenu.

Implement the "Change item quantity" menu option in ExecuteMenu.

Note: Each step has a point value assigned to it, and some steps have hints provided.

Which three of the following statements are true about using a WYSIWYG editor?

You can preview the web page you’re creating, but it might appear very differently in a web browser.
After creating a web page, you need to inspect the code the editor generates for correctness.
You can write your own HTML code to create a web page.
You can modify the HTML code the editor generates.
You don’t need any knowledge of HTML to be able to create a web page.

Answers

Answer:

It would be 3

You can preview the web page you’re creating, but it might appear very differently in a web browser. You can modify the HTML code the editor generates. You don’t need any knowledge of HTML to be able to create a web page.

What is WYSIWYG editor?

A WYSIWYG editor stands for "What You See Is What You Get" editor. It is a software application that allows users to create and design web pages without needing to know HTML or other coding languages.

The following are true statements about using a WYSIWYG editor:

You can preview the web page you're working on, but it may look very different in a browser.The HTML code generated by the editor can be modified.You do not need any HTML knowledge to create a web page.

It is not always necessary to inspect the code generated by the editor for correctness after creating a web page, as the editor should ideally generate correct code.

Thus, while you can write your own HTML code to create a web page, this is not a feature unique to WYSIWYG editors.

For more details regarding WYSIWYG editors, visit:

https://brainly.com/question/31574504

#SPJ2

Type the correct answer in the in box. Spell all words correctly.
What is the name of the option in most presentation applications with which you can modify slide elements?
The
option enables you to modify a slide element in most presentation applications.

Answers

The name of the option in most presentation applications with which you can modify slide elements is the "Format" option

The option enables you to modify a slide element in most presentation applications is the View master

What is  View master?

The View master is a toy that allows users to view 3D images by looking through a device that holds a reel of small cardboard disks containing sequential 3D images.

Therefore, the View master was  one that was originally created in 1939, and it has been a popular toy for children and adults for many years. It is not related to the process of creating or modifying slides in a presentation application.

Learn more about presentation applications from

https://brainly.com/question/16599634

#SPJ1

True or false?
clash royale received 160 million downloads and grossed over 1 billion dollars in its first year

Answers

Answer:

False

Explanation:

System.out.print(two.indexOf('r'));

Answers

What is this I can’t comprehend

smart art is considered a​

Answers

Explanation:

visual representation of information and ideas, and a chart is a visual illustration of numeric values or data. Basically, SmartArt graphics are designed for text and charts are designed for numbers. Use the information below to decide when to use a SmartArt graphic and when to use a chart.

Difference between Python vs Pandas?

Answers

Python and Pandas are not directly comparable as they serve different purposes. Here's an explanation of each:

Python:

Python is a general-purpose programming language known for its simplicity and readability. It provides a wide range of functionalities and can be used for various tasks, including web development, data analysis, machine learning, and more. Python has a large standard library and an active community, making it versatile and widely used in different domains.

Pandas:

Pandas, on the other hand, is a powerful open-source library built on top of Python. It is specifically designed for data manipulation and analysis. Pandas provides easy-to-use data structures, such as Series (one-dimensional labeled arrays) and DataFrame (two-dimensional labeled data tables), along with a variety of functions for data cleaning, transformation, filtering, grouping, and aggregation.

In essence, Python is the programming language itself, while Pandas is a Python library that extends its capabilities for data analysis and manipulation. You can use Python to write code for a wide range of purposes, while Pandas is focused on providing efficient and convenient tools for working with structured data.

for similar questions on Python.

https://brainly.com/question/26497128

#SPJ8

Task Instructions X In cell G4, enter a formula using the AND function, with D4>3 as the Logical condition and E4>3 as the Logical2 condition. Excel will return a value of TRUE if both conditions are met and a value of FALSE if one or both of the conditions are not met ( 3/25/2020 9:46 PM 2/15/2023​

Answers

To complete this task in Excel, follow these steps:

Click on cell G4 to select it.

Type the following formula into the formula bar: =AND(D4>3,E4>3)

Press Enter.

The AND function will evaluate both conditions in the formula. If both conditions are true (that is, if the value in cell D4 is greater than 3 and the value in cell E4 is also greater than 3), the function will return a value of TRUE. If one or both of the conditions are false, the function will return a value of FALSE.

What is an excel function?

Functions are preset formulae that conduct computations by employing certain values, referred to as arguments, in a given sequence or structure.

Functions can conduct basic or sophisticated computations. All of Excel's functions may be found on the Formulas tab of the Ribbon: Excel function syntax.

Learn more aobut Excel Functions:
https://brainly.com/question/30324226
#SPJ1

Line formatting can be accomplished by using

Answers

Answer:

How can line formatting be accomplished?

To format line spacing:

Select the text you want to format. Selecting text to format.

On the Home tab, click the Line and Paragraph Spacing command. A drop-down menu will appear.

Move the mouse over the various options. A live preview of the line spacing will appear in the document. Select the line spacing you want to use.

The line spacing will change in the document.

To mark content that is related to the main article, use a. the sidebar element b. the extraContent element c. the aside element d. the section elemen

Answers

To mark content that is related to the main article, you should use:  c. the aside element.

What is the Aside Element?

In hypertext markup language, the aside element is used to include content that is related to the main article.

The additional information is meant to be considered apart from the parent article. They are usually presented as sidebars in the program.

Learn more about the Aside Element here:

https://brainly.com/question/14921860

You are creating a presentation for your school Photography project and you want to make the pictures stand out. Which tool would be most efficient to use to enhance the images?
A. Symbols
B. Alt text
C. Tables
D. Picture styles

Answers

Answer:

D

Explanation:

I say D would be the answer because the other ones don’t make sense

Which parts of a presentation should be the most general

Answers

Answer:

The introduction is the most important part of your presentation as it sets the tone for the entire presentation. Its primary purpose is to capture the attention of the audience, usually within the first 15 seconds. Make those first few words count! There are many styles you can use to get the audience's attention.

Explanation:

select the ranges a5:b12, d5:d12 and use the recommended charts feature to create a clustered bar chart.

Answers

A clustered bar chart is a type of chart that displays multiple bars side-by-side within each category, with each bar representing a different data series.

How can you create a clustered bar-chart using Excel?

To create a clustered bar chart using the recommended charts feature in Excel, you can follow these steps:

Select the data ranges you want to include in your chart (in this case, A5:B12 and D5:D12).Now, you need to Click on the "Insert" tab in the ribbon tab at the top of the screen.Now, You Click on the "Recommended Charts" button in the Charts tab section of the ribbon.Scroll through the list of recommended charts until you find the "Clustered Bar" chart type, and click on it to select it.Then Click on the "OK" button to create the chart in excel.

In this case, the chart will show two data series side-by-side for each category.

The X-axis will show the categories (which will be the values in column A), and the Y-axis will show the values for each data series (which will be the values in columns B and D).

This type of chart is useful for comparing the values of different data series within each category.

By placing the bars side-by-side, it is easy to see the differences between the values for each data series.

The chart can be customized with different colors, labels, and other formatting options to make it easier to read and interpret.

To know more about bar chart, visit: https://brainly.com/question/30657255

#SPJ1

which location type would be most appropriate to select when using your laptop computer to access the Internet by using a wireless hotspot at at tradeshow

Answers

public network

Explanation:

the most appropriate location to select when using your loptop computer to access the internet by using a wireless hotspot at a tradeshow is at a public network

Is it possible to compare 2 pre-packaged versions in cpi?

Answers

Yes, it is possible to compare two pre-packaged versions in the Consumer Price Index (CPI), but it can be challenging due to certain limitations of the index.

The CPI is designed to measure changes in the overall price level of a basket of goods and services consumed by households.

It focuses on broad categories and representative items within those categories, rather than specific versions of products.

When it comes to pre-packaged versions of products, there can be variations in size, quality, branding, and other attributes that may affect their prices differently.

These variations make direct comparisons complex within the framework of the CPI.

To compare two specific pre-packaged versions within the CPI, it would require detailed data on their specific characteristics and how they align with the representative item in the CPI basket.

This level of granularity may not be readily available in the public domain or within the CPI methodology.

For more questions on Consumer Price Index

https://brainly.com/question/8416975

#SPJ8

#, what is File operation example ?

Answers

A file operation example is:

# Opening a file in write mode

file = open("example.txt", "w")

# Writing to the file

file.write("Hello World!")

# Closing the file

file.close()

# Opening a file in read mode

file = open("example.txt", "r")

# Reading the contents of the file

content = file.read()

# Printing the contents of the file

print(content)

# Closing the file

file.close()


What is a File Operation?

File operations are basic tasks performed on a computer file such as reading, writing, copying, moving, and deleting.

This example opens a file named "example.txt" in write mode, writes "Hello World!" to the file, closes it, opens the file in read mode, reads its contents and prints it to the console, and finally closes the file again.

Read more about file operation here:

https://brainly.com/question/28578925

#SPJ1

write a psuedocode for entire class corresponding mark and result category, write class mark and create a module called "high" that will display the student name

Answers

The pseudocode for a class that includes corresponding marks and result categories goes as:

Pseudocode:

kotlin

Copy code

class Student:

   attributes:

       name

       mark

   method calculateResult:

       if mark >= 90:

           return "Excellent"

       else if mark >= 60:

           return "Pass"

       else:

           return "Fail"

class Class:

   attributes:

       students

   method addStudent(student):

       students.append(student)

   method displayHighScorer:

       highestMark = 0

       highScorer = None

       for student in students:

           if student.mark > highestMark:

               highestMark = student.mark

               highScorer = student

       if highScorer is not None:

           print "High Scorer: " + highScorer.name

       else:

           print "No students in the class."

How to create a pseudocode for a class?

The provided pseudocode outlines a class called "Student" that has attributes for name and mark. It includes a method called "calculateResult" to determine the result category based on the mark.

Another class called "Class" is created to manage a group of students. It has methods to add students and display the name of the highest scorer using a module called high.

Read more about pseudocode

brainly.com/question/24953880

#SPJ1

DOES THE GATEWAY NE56R41u have touch screen capabilities?

A.) Yes it does
B.) No it doesn't

DOES THE GATEWAY NE56R41u have touch screen capabilities?A.) Yes it doesB.) No it doesn't

Answers

Answer:

thats a good question

Explanation:

thats a good one

I don’t think sooooo

Whst addresses do not change if you copy them to a different cell?

Answers

The type of addresses that do not change if you copy them to a different cell is Absolute references.

What are absolute references?

There are known to be two types of cell references which are: relative and absolute.

Note that Relative and absolute references can work differently if copied and filled to other cells. The Absolute references, is one that often remain constant, no matter where a person may have copied them to.

Therefore, The type of addresses that do not change if you copy them to a different cell is Absolute references.

Learn more about Absolute references from

https://brainly.com/question/11764922

#SPJ1

Which of the following are document views available in Word 2019? Check all that apply.

- Print Layout
- Outline
Edit Mode
- Web Layout
Master Layout
- Draft
- Read Mode

Answers

Document views available in Word 2019:

Print LayoutOutlineWeb LayoutDraftRead Mode

What is the purpose of a word document?

Word for Windows is a standalone program or a component of the Microsoft Office package. The most popular word processing tool on the market, Word has some basic desktop publishing features. Since practically any computer user can read a Word document using the Word program, a Word viewer, or a word processor that imports the Word format, Word files are frequently used as the format for transmitting text documents over email. When text is selected, a toolbar with formatting choices also shows on the newly designed interface.

Learn more about word documents here:

https://brainly.com/question/30490919

#SPJ1

Part 2 Graduate Students Only Architectural simulation is widely used in computer architecture studies because it allows us to estimate the performance impact of new designs. In this part of the project, you are asked to implement a pseudo-LRU (least recently used) cache replacement policy and report its performance impact. For highly associative caches, the implementation cost of true LRU replacement policy might be too high because it needs to keep tracking the access order of all blocks within a set. A pseudoLRU replacement policy that has much lower implementation cost and performs well in practice works as follows: when a replacement is needed, it will replace a random block other than the MRU (most recently used) one. You are asked to implement this pseudo-LRU policy and compare its performance with that of the true LRU policy. For the experiments, please use the default configuration as Question 3 of Project Part 1, fastforward the first 1000 million instructions and then collect detailed statistics on the next 500 million instructions. Please also vary the associativity of L2 cache from 4 to 8 and 16 (the L2 size should be kept as 256KB). Compare the performance of the pseudo-LRU and true-LRU in terms of L2 cache miss rates and IPC values. Based on your experimental results, what is your recommendation on cache associativity and replacement policy? Please include your experimental results and source code (the part that has been modified) in your report. Hint: The major changes of your code would be in cache.c.

Answers

The  outline that a person can use to implement as well as compare the pseudo-LRU and that of the  true-LRU cache replacement policies is given below

What is the code  about?

First, one need to make changes the cache replacement policy that can be see in the cache.c file of a person's code.

Thereafter one need to Run simulations with the use of the already modified  or changed code via the use of the default configuration as said in Question 3 of Project Part 1.

Therefore, one can take detailed statistics, such as L2 cache miss rates and IPC (Instructions Per Cycle) values, for all of the next 500 million instructions.  etc.

Learn more about code  from

https://brainly.com/question/26134656

#SPJ1

Which of the following techniques is a direct benefit of using Design Patterns? Please choose all that apply Design patterns help you write code faster by providing a clear idea of how to implement the design. Design patterns encourage more readible and maintainable code by following well-understood solutions. Design patterns provide a common language / vocabulary for programmers. Solutions using design patterns are easier to test

Answers

Answer:

Design patterns help you write code faster by providing a clear idea of how to implement the design

Explanation:

Design patterns help you write code faster by providing a clear idea of how to implement the design. These are basically patterns that have already be implemented by millions of dev teams all over the world and have been tested as efficient solutions to problems that tend to appear often. Using these allows you to simply focus on writing the code instead of having to spend time thinking about the problem and develop a solution. Instead, you simply follow the already developed design pattern and write the code to solve that problem that the design solves.

An input statement is used to interact with the user of a program.
True False

Answers

Answer:

True.

Explanation:

An input statement asks a user a question, where the user has to input a value for the program to move forward. This means that yes, the program does interact with the user.

what's another name for white -colored wire?
A. grounded conductor
B.Grounding conductor
C.Hot
D.Hot neutral

Answers

Answer:

A

Explanation:

A. The correct answer is A. "Grounded conductor" is another name for a white-colored wire. It is also commonly referred to as a neutral wire.

Answer:A. grounded conductor. I hope this helps

Explanation:

The correct answer is A. Grounded conductor. The grounded conductor is also commonly referred to as the neutral wire and is typically color-coded white

A. Grounded conductor is another name for white-colored wire. The grounded conductor is also commonly referred to as the neutral wire, which carries current back to the source. It is distinguished from the hot wire which carries the current to the loads. The grounding conductor, on the other hand, is typically green or bare and serves to ground the system for safety purposes

Discuss the DMA process​

Answers

Answer:

Direct memory access (DMA) is a process that allows an input/output (I/O) device to send or receive data directly to or from the main memory, bypassing the CPU to speed up memory operations and this process is managed by a chip known as a DMA controller (DMAC).

Explanation:

A defined portion of memory is used to send data directly from a peripheral to the motherboard without involving the microprocessor, so that the process does not interfere with overall computer operation.

In older computers, four DMA channels were numbered 0, 1, 2 and 3. When the 16-bit industry standard architecture (ISA) expansion bus was introduced, channels 5, 6 and 7 were added.

ISA was a computer bus standard for IBM-compatible computers, allowing a device to initiate transactions (bus mastering) at a quicker speed. The ISA DMA controller has 8 DMA channels, each one of which associated with a 16-bit address and count registers.

ISA has since been replaced by accelerated graphics port (AGP) and peripheral component interconnect (PCI) expansion cards, which are much faster. Each DMA transfers approximately 2 MB of data per second.

A computer's system resource tools are used for communication between hardware and software. The four types of system resources are:

   I/O addresses    Memory addresses.    Interrupt request numbers (IRQ).    Direct memory access (DMA) channels.

DMA channels are used to communicate data between the peripheral device and the system memory. All four system resources rely on certain lines on a bus. Some lines on the bus are used for IRQs, some for addresses (the I/O addresses and the memory address) and some for DMA channels.

A DMA channel enables a device to transfer data without exposing the CPU to a work overload. Without the DMA channels, the CPU copies every piece of data using a peripheral bus from the I/O device. Using a peripheral bus occupies the CPU during the read/write process and does not allow other work to be performed until the operation is completed.

With DMA, the CPU can process other tasks while data transfer is being performed. The transfer of data is first initiated by the CPU. The data block can be transferred to and from memory by the DMAC in three ways.

In burst mode, the system bus is released only after the data transfer is completed. In cycle stealing mode, during the transfer of data between the DMA channel and I/O device, the system bus is relinquished for a few clock cycles so that the CPU can perform other tasks. When the data transfer is complete, the CPU receives an interrupt request from the DMA controller. In transparent mode, the DMAC can take charge of the system bus only when it is not required by the processor.

However, using a DMA controller might cause cache coherency problems. The data stored in RAM accessed by the DMA controller may not be updated with the correct cache data if the CPU is using external memory.

Solutions include flushing cache lines before starting outgoing DMA transfers, or performing a cache invalidation on incoming DMA transfers when external writes are signaled to the cache controller.

Answer:

See explanation

Explanation:

DMA \(\to\) Direct Memory Access.

The peripherals of a computer system are always in need to communicate with the main memory; it is the duty of the DMA to allow these peripherals to transfer data to and from the memory.

The first step is that the processor starts the DMA controller, then the peripheral is prepared to send or receive the data; lastly, the DMA sends signal when the peripheral is ready to carry out its operation.

(Please do not answer with a link, Answer in here) Milagros designed a game by dragging and dropping pre-made blocks that contain elements of code. Which term best describes what Milagros used?
Group of answer choices

blocking code

basic code

block-based code

editing code

Answers

Answer:the second one

Explanation:

The term best describes what Milagros used is blocking code. The correct option is b.

What are blocking codes?

Block coding is a technique for computer programming that converts text-based software into a visual block format, making it simple to create animated games, characters, and stories without the use of actual text in the coding.

To write a block code, open the text page on your java language. Write a block of javascript. Now, you run java on your computer.

Block-based coding is used by programmers to program any application or computer program. Block code is used to construct games and stories. These codes are used for making kids-friendly games and stories apps.

Therefore, the correct option is b, blocking code regarding what Milagros used.

To learn more about blocking codes, refer to the link:

https://brainly.com/question/17583871

#SPJ2

What characteristics are common among operating systems? List types of operating systems, and examples of each. How does the device affect the functionality of an operating system?

Answers

The operating system (OS) controls all of the computer's software and hardware. It manages files, memory, and processes, handles input and output, and controls peripheral devices like disk drives and printers.

What are the characteristics of OS?The fundamental software applications running on that hardware enable unauthorized users to interact with the equipment because instructions can be sent and results can be obtained.Developers provide technology that may be compatible, mismatched, or completely incompatible with several other OS categories across multiple versions of the same similar OS.The operating systems are frequently 32-Bit and 64-Bit in two different versions.Types of Operating System:

         Distributed OS .

         Batch processing OS.

         Time sharing OS.

To learn more about operating system refer to :

https://brainly.com/question/22811693

#SPJ1

Design a class named StockTransaction that holds a stock symbol (typically one to four characters), stock name, number of shares bought or sold, and price per share. Include methods to set and get the values for each data field. Create the class diagram and write the pseudocode that defines the class.
Design a class named FeeBearingStockTransaction that descends from StockTransaction and includes fields that hold the commission rate charged for the transaction and the dollar amount of the fee. The FeeBearingStockTransaction class contains a method that sets the commission rate and computes the fee by multiplying the rate by transaction price, which is the number of shares times the price per share. The class also contains get methods for each field.
Create the appropriate class diagram for the FeeBearingStockTransaction class and write the pseudocode that defines the class and the methods.
Design an application that instantiates a FeeBearingStockTransaction object and demonstrates the functionality for all its methods.

Answers

The class diagram and pseudocode for the StockTransaction class is given below

What is the class?

plaintext

Class: StockTransaction

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

- symbol: string

- name: string

- shares: int

- pricePerShare: float

+ setSymbol(symbol: string)

+ getSymbol(): string

+ setName(name: string)

+ getName(): string

+ setShares(shares: int)

+ getShares(): int

+ setPricePerShare(price: float)

+ getPricePerShare(): float

Pseudocode for the StockTransaction class:

plaintext

Class StockTransaction

   Private symbol as String

   Private name as String

   Private shares as Integer

   Private pricePerShare as Float

   Method setSymbol(symbol: String)

       Set this.symbol to symbol

   Method getSymbol(): String

       Return this.symbol

   Method setName(name: String)

       Set this.name to name

   Method getName(): String

       Return this.name

   Method setShares(shares: Integer)

       Set this.shares to shares

   Method getShares(): Integer

       Return this.shares

   Method setPricePerShare(price: Float)

       Set this.pricePerShare to price

   Method getPricePerShare(): Float

       Return this.pricePerShare

End Class

Read more about StockTransaction  here:

https://brainly.com/question/33049560

#SPJ1

Internet Retailing

Visit an e-commerce Web site such as Amazon.com and find a product you would like to purchase. While looking at the page for that item, count the number of other products that are being offered on that page.

Activity

Answer the following questions: What do they have in common? Why are they appearing on that page?

Answers

When I visited the e-commerce Web site such as Amazon.com and find a product that I would like to purchase which is a laptop, The thing that the sellers have in common is that they are trusted and verified sellers, their product presentation is nice and has warranty on it.  The reason they are appearing on that page is because the product are similar.

What is E-commerce site website?

The term e-commerce website is one that enables customers to buy and sell tangible products, services, and digital commodities over the internet as opposed to at a physical store. A company can process orders, receive payments, handle shipping and logistics, and offer customer care through an e-commerce website.

Note that there are numerous eCommerce platforms available, each with its own set of characteristics. The optimal eCommerce platform will therefore rely on your demands, available resources, and business objectives.

So, for instance, if you're a novice or small business owner looking to set up an online store in only a few clicks, go with a website builder like Hostinger. Oberlo, on the other hand, boasts the best inventory management system for dropshippers and is the top eCommerce platform overall.

Learn more about e-commerce Web site  from

https://brainly.com/question/23369154
#SPJ1

Other Questions
Which formerly large lake is now a fraction of its former size and considered one of the worst man-made environmental disasters in history? Lake Superior Aral Sea Red Sea Lake Michigan Please Help......... What is the equation of the given line in the point-slope form?A. = - + 1B. + = 1C. + + 1 = 0D. 4 = 3 + 1E. 4 = 1( 3) 5. A DC (direct current) motor is made of a soft iron core wrapped around a solenoid, in other words an electromagnet, with two magnets on both sides. (a) Determine the direction the motor will spin. Explain how youknow. for a nearsighted person with a far point of 40 cm, what lens should be used??A) -3.6 dioptersB) -4.0 dioptersC) 2.5 dioptersD) 4.0 dioptersE) -2.5 diopters The following is an example of what kind of context clue?The landlord required a monthly inspection, which was a thorough examination of the condition and cleanliness of the apartment. The twelve members of the Middle School filmmaking club need to raise at least $1,400. they have already raised $650. Which inequality shows how much each member should raise? What did Confucius say a leader must do for his subjects to follow him? Pb2+ (aq) + Mg (s) --> Pb (s) + Mg2+ (aq) If [Pb2+] = 0.10 M and [Mg2+] = 2.0 M, calculate the cell potential for this system. Please show your work for credit The wechsler intelligence scale for children is most consistent with which framework of intelligence? I have to select which pair of triangles can demonstrate congruence. Any help? How to solve absolute value inequalities. In a survey of 139 pet owners, 10 said they own a dog, and 92said they own a cat. 8 said they own both a dog and a cat. How manyowned a cat but not a dog? As a punishment for something naughty that we did, my little brother and I have to whitewash both sides of a fence. We start at the same time, and we each work at a constant rate.If we each whitewash one side, I'll finish in $2$ hours and my brother will finish in $3$ hours. But I'm a nice kid, so after I finish my side, I go around to the other side and help my brother finish his side. From the time I start helping him, how many minutes does it take us to finish the job? What would the income statement and balance sheet look like for this problem?The following is a summary of the transactions for the year: 1. January 9 Provide storage services for cash, $137,100, and on account, $53,700. 2. February 12 Collect on accounts receivable, $51,800. 3. April 25 Receive cash in advance from customers, $13,200. 4. May 6 Purchase supplies on account, $9,800. 5. July 15 Pay property taxes, $8,800. 6. September 10 Pay on accounts payable, $11,700. 7. October 31 Pay salaries, $126,600. 8. November 20 Issue shares of common stock in exchange for $30,000 cash. 9. December 30 Pay $3,100 cash dividends to stockholders. Insurance expired during the year is $7,300. Supplies remaining on hand at the end of the year equal $3,200. Provide services of $12,100 related to cash paid in advance by customers. Please Help! 10 extra points if the answer is correct. Where in the world did human civilizations first appear?. What 3 lines from the poem "Death Be Not Proud" by John Donne show imagery? Physical and chemical properties, such as color, density, boiling point, solubility, conductivity, and flammability, A. do not depend on the amount of the substance. B. depend on the amount of the substance. C. have the same values for all substances. D. are always different between substances. Question 1Item 1(The following passage is excerpted from a textbook published by an American and a Dutch scientist in the 1950s.)Science is often defined inadequately as an organized body of knowledge. This would make cookbooks, Sears, Roebuck catalogues, and telephone books science, which they are not. Sometimes science is defined simply as rationality, but that would make much of theology and metaphysics science, which they are not. Rationality is logical consistency, lack of contradiction. It is to be distinguished from reasonableness, the quality of a mind open to arguments and evidence opposed to its beliefs: a willingness to reconsider. Rationalists can be quite unreasonable or dogmatic. Rationalist metaphysicians and theologians are often certain about premises which come from intuition or revelation. Even paranoiacs may be thought of as rationalists, for they are commonly most rigorous in reasoning. But their premises, which they cling to in spite of all evidence, are absurd.WHAT SCIENCE ISScience is empirical, rational, general, and cumulative; and it is all four at once. Science is empirical in that all its conclusions are subject to test by sense experience. Observation is the base on which science rests, but scientific observation is more than keeping ones eyes open. It is observation made by qualified observers under controlled conditions of those things which confirm or disconfirm, verify or refute a theory. Sherlock Holmes* could tell by the stains on a vest what a man had eaten for breakfast. From a number of such observations he arrived at a theory about why and how a particular crime was committed. This procedure is excellent for detection but insufficient for science, because it yields only knowledge of particular events. Science would go on to ask why and how crime, not a particular crime, is committed. Science uses facts to test general theories and general theories to make predictions about particular facts.Scientific observations may be made of things as they exist, like the color of an apple or the temperature of the air, or it may be made of what results from an experiment. An experiment is the deliberate manipulation of conditions in order to bring about what we want to observe. If we want to test the hypothesis that a new plastic can withstand two hundred pounds of pressure without crumbling, we may have to create a situation in which such pressure is applied to a piece of the plastic, because it is unlikely that the situation already exists anywhere in the world, or if it does, that all other factors are kept constant. In some sciences, like astronomy, we do not sufficiently control the subject matter to experiment on italthough we do control the conditions of observationand we distinguish those sciences from others, like chemistry, in which experiment is possible, by calling the latter experimental sciences.Although all scientific thought ultimately rests on observation, there are vast portions of it which are entirely rational: analysis of the meaning of terms, deductions from existent theories, explorations of the logical relations among concepts and among theories. Logic is applied to science constantly because logic contains the rules of valid thinking. The application of mathematics is often thought, erroneously, to be an index of the status of any science. Of course, the more it can be applied usefully within a science, the more advanced the science. For mathematics functions both as a language in which scientific laws are stated, giving them the utmost precision, elegance, and economy, and as the basis of measurement. Many of the most significant advances in physics, astronomy, and chemistry have depended on advances in and application of mathematics. Without calculus the work of Isaac Newton would have been impossible. Yet great scientific work in other fields, performed by men like Pasteur, Darwin, and Pavlov (with whose names pasteurization, evolution, and conditioned response in psychology are associated), has used little or no mathematics.In the second sentence of the first paragraph, the authors mention cookbooks, catalogues, and telephone books primarily toillustrate the broad array of objects that are organized by scientific principlesillustrate the broad array of objects that are organized by scientific principlesAconcede that rational argumentation can sometimes lead to absurd conclusionsconcede that rational argumentation can sometimes lead to absurd conclusionsBdemonstrate that a particular definition of science is overly inclusivedemonstrate that a particular definition of science is overly inclusiveCcondemn those who erroneously regard such works as forms of sciencecondemn those who erroneously regard such works as forms of scienceDhighlight the inherent difficulty of distinguishing science from other types of knowledge (x-1)x+5_x-2(x+1)x-1 x+1 x-1 x+1What is the simplified form of the inequality?OOO5x 3(x-1)(x + 1)5x-3(x - 1)(x-1)-05x - 3(x-1)(x + 1)03x - 7(x 1)(x + 1) 50--0