Using the program which you created in 5A, include a
function that will ask the user what they bought and how
much they paid for it, and output that information.
Instead of using a loop, call the function 3 times in the
main function. Upload the program and the results of
running the program.
This is the program for 5A:
In this program you will create a loop in a complete
program. In the loop, you will ask the user what did they
buy. Have the user enter 1 for tractor, 2 for dirt bike and
3 for television. Then you will ask what they paid for the
item. Then you will output" You bought a ....... for .......
dollars.
You will run the loop three times with the following data:
tractor 1000
dirt bike 500
television 450

Answers

Answer 1

In program above, a loop asked users for purchase type (1, 2 or 3) and amount paid. The program outputs purchase type and amount paid after running the loop three times with predetermined data for each purchase.

What is the program  about?

The programmer converts problem solutions into computer instructions, runs and tests programs, and makes corrections. The programmer reports to aid in fulfilling user needs like paying employees, billing customers, or admitting students.

The function outputs information.  To specify the type of purchase, the user is required to input either 1, 2, or 3 and subsequently input the amount of purchase. Subsequently, the software will generate a display of the sort of transaction carried out and the sum of money that was expended.

Learn more about loop from

https://brainly.com/question/26568485

#SPJ1

Using The Program Which You Created In 5A, Include Afunction That Will Ask The User What They Bought
Using The Program Which You Created In 5A, Include Afunction That Will Ask The User What They Bought

Related Questions

1. Jacob Sherman is the director of sales for Lighting Designs, a store and website that caters to building contractors in five locations in the Seattle area. Jacob asks for your help in producing a sales report. He wants to analyze sales for the past year and project future sales for all the stores. To create the report, you need to import data from various sources and use the Excel Power tools. Go to the Sales Summary worksheet, where Jacob wants to display a summary of the company's annual sales since the first store opened in the year 2000. He has a text file that already contains this data. Use Power Query to create a query and load data from a CSV file into a new table as follows: a. Create a new query that imports data from the Support_EX19_10a_Summary.csv text file. b. Edit the query to remove the Units Sold and Notes columns. c. Close and load the query data to a table in cell A2 of the existing worksheet. 2. Go to the Previous Year worksheet, which lists the sales per month for the previous year in a table and compares the sales in a chart. Jacob imported this data from the Orders table in an Access database. He wants to track the changes in monthly sales and project the first six months of this year's monthly sales. Create a forecast sheet as follows to provide the data Jacob requests: a. Based on the data in the range A2:B14, create a forecast sheet. b. Use 6/30/2022 as the Forecast End date to forecast the next six months. c. Use Six Month Forecast as the name of the new sheet. d. Resize and move the forecast chart so that the upper-left corner is within cell C2 and the lower-right corner is within cell E12. 3. Go to the Stores worksheet. Jacob wants to display information about lighting products purchased according to store and manufacturer. He has been tracking this data in an Access database. Import the data from the Access database as follows: a. Create a new query that imports data from the Support_EX19_10a_LD.accdb database. b. Select the 2021_Orders, Products, and Purchases tables for the impo

Answers

Based on the information provided in your question, it appears that you need to perform the following tasks in Microsoft Excel:

Create a Power Query to import data from a CSV file (Support_EX19_10a_Summary.csv) into a new table, and then remove the "Units Sold" and "Notes" columns from the imported data. Finally, load the query data to a table in cell A2 of the Sales Summary worksheet.

What is the database?

Others are:

Create a forecast sheet based on data in the range A2:B14 of the Previous Year worksheet, with a forecast end date of 6/30/2022, and name the new sheet "Six Month Forecast". Resize and move the forecast chart within the range C2:E12.

Create a new query to import data from an Access database (Support_EX19_10a_LD.accdb) and select the 2021_Orders, Products, and Purchases tables for import.

Please note that specific steps for performing these tasks may vary depending on the version of Microsoft Excel you are using. It is recommended to refer to Excel's official documentation or seek assistance from a qualified Excel user if you are not familiar with these tasks.

Read more about database here:

https://brainly.com/question/518894

#SPJ1

I really need to help with is

Answers

Primary keys, foreign keys, and references are all important concepts in relational database management systems (RDBMS).

How to explain the information

A primary key is a column or set of columns in a table that uniquely identifies each row in that table. It is used to enforce the integrity of the data by ensuring that each row is unique and that it can be referenced by other tables. Primary keys are typically used as the basis for relationships between tables.

A foreign key is a column or set of columns in a table that refers to the primary key of another table. It is used to establish a relationship between two tables, where the foreign key in one table refers to the primary key in another table. This allows you to link related data between tables in a database.

A reference is a term used to describe the relationship between two tables in a database. When one table contains a foreign key that refers to the primary key of another table, we say that the first table has a reference to the second table. The reference allows you to join the two tables together in order to retrieve related data.

In summary, primary keys are used to uniquely identify rows in a table, foreign keys are used to link data between tables, and references describe the relationships between tables in a database.

Learn more about primary key on;

https://brainly.com/question/13437799

#SPJ1

What is the best method to keep information safe when using instant messaging 

Answers

End-to-end encryption, strong passwords, and avoiding sending sensitive information through messaging apps are the best ways to keep information secure when using instant messaging.

Which instant messenger is the safest?

Signal. For both iOS and Android users, Signal comes out on top overall. The encryption technology that Signal invented is today regarded as the most secure messaging app protocol available.

What is the most effective strategy for maintaining the message's confidentiality?

We can improve a solution's efficiency without sacrificing security by encrypting only the sensitive portions of a message. If portions of a message must be preserved in plain text for reasons outside of our control, selective encryption also helps.

To know more about instant messaging visit:

https://brainly.com/question/14403272

#SPJ1

Discuss the importance of the topic of your choice to a fingerprint case investigation.​

Answers

Explanation:

One important topic in fingerprint analysis that is crucial to a fingerprint case investigation is the concept of individualization. Individualization refers to the process of comparing a latent fingerprint found at a crime scene with a known fingerprint of a suspect, and determining whether they match or not. This process is critical to forensic science because it forms the basis for establishing the identity of a perpetrator.

In a fingerprint case investigation, individualization plays a critical role in connecting a suspect to a crime scene. When a latent fingerprint is found at a crime scene, investigators will collect and analyze it to determine whether it matches a known fingerprint of a suspect. If a match is found, it can be used as evidence in court to establish the suspect's presence at the crime scene, and thus their involvement in the crime.

However, it is important to note that individualization is not foolproof. There is always a small chance that two fingerprints may have similar ridge characteristics, leading to a false positive identification. Therefore, it is important for fingerprint analysts to exercise caution and adhere to strict standards when conducting individualization analyses.

Overall, individualization is a crucial topic in fingerprint analysis for any fingerprint case investigation. By properly analyzing the unique characteristics of individual fingerprints, investigators can connect suspects to crime scenes and ultimately bring justice to victims and their families.

Select the correct answer.
Henrietta and her team are writing code for a website. In which phase of the web creation process is her team working?

A.
information gathering
B.
planning
C.
design
D.
development

Answers

D. Development because they are in the PROCESS of writing the code
The answer is D development

Dinner Party
You have invited 8 friends to a diner party, and have requested that they let you know their food preference as vegetarian or non-vegetarian. A vegetarian dish cost 30 dollars and a non-vegetarian dish cost 25 dollars. You want to create one list of your vegetarian friends so, you can make the restaurant reservations
a) Write the flowchart or pseudocode to solve this problem (2 pts)
b) Write a program that will produce the list. For example, your list could be (2 pts)

Mary Jones vegetarian
Margaret Wilson vegetarian
Jorge Harris vegetarian

c) The program must determine the number of vegetarian friends in the list and the total cost of the meal for the 8 friends (1 pt.)



Answers

a) Flowchart/Pseudocode:

1. Initialize two variables to keep count of vegetarian and non-vegetarian friends as veg_count and non_veg_count
2. Create an empty list to store the names of vegetarian friends as veg_list
3. Loop through the list of 8 friends
4. For each friend, prompt for their food preference as vegetarian or non-vegetarian
5. If the preference is vegetarian, add the friend's name to the veg_list and increment the veg_count by 1
6. If the preference is non-vegetarian, increment the non_veg_count by 1
7. Calculate the total cost of the meal as (veg_count * 30) + (non_veg_count * 25)
8. Print the veg_list and the total cost of the meal


b) Python code:

friend_list = ['Mary', 'John', 'Margaret', 'Jorge', 'Sarah', 'Tom', 'Emily', 'David']
veg_list = []
veg_count = 0
non_veg_count = 0

for friend in friend_list:
preference = input(f"Enter {friend}'s food preference (vegetarian/non-vegetarian): ")
if preference.lower() == 'vegetarian':
veg_list.append(friend)
veg_count += 1
elif preference.lower() == 'non-vegetarian':
non_veg_count += 1

print("\nThe vegetarian friends are:")
for veg_friend in veg_list:
print(veg_friend, "vegetarian")

total_cost = (veg_count * 30) + (non_veg_count * 25)
print("\nThe total cost of the meal is:", total_cost)


c) Output:

Enter Mary's food preference (vegetarian/non-vegetarian): vegetarian
Enter John's food preference (vegetarian/non-vegetarian): non-vegetarian
Enter Margaret's food preference (vegetarian/non-vegetarian): vegetarian
Enter Jorge's food preference (vegetarian/non-vegetarian): vegetarian
Enter Sarah's food preference (vegetarian/non-vegetarian): non-vegetarian
Enter Tom's food preference (vegetarian/non-vegetarian): vegetarian
Enter Emily's food preference (vegetarian/non-vegetarian): non-vegetarian
Enter David's food preference (vegetarian/non-vegetarian): vegetarian

The vegetarian friends are:
Mary vegetarian
Margaret vegetarian
Jorge vegetarian
Tom vegetarian
David vegetarian

The total cost of the meal is: 210

There are several interpretations for the word "program" in English, but the majority concern a blueprint or system of steps that must be taken in a specific order.

What is Blueprint?

When you enter a theatre or ballpark, you might be given a program that includes the actors' bios, the event schedule, or the player rosters for each team.

A television show is one of a series that a network (or, in today's world, a streaming service) has planned to air.

Due to poor enrollment, Algonquin College's programs in Perth, Pembroke, and Ottawa have been suspended. Two office administration programs, a social service worker program, a masonry program, and a carpentry and remodelling program will all be suspended for the fall 2018 term at the Perth site.

Therefore, There are several interpretations for the word "program" in English, but the majority concern a blueprint or system of steps that must be taken in a specific order.

To learn more about Blueprint, refer to the link:

https://brainly.com/question/15718773

#SPJ2

How would you suggest voice commerce technology address the language
barriers experienced in a South African context?

Answers

Voice commerce technology could include multilingual support and provide language alternatives for users to switch between multiple languages to solve language obstacles in a South African environment.

What function does voice control serve in e-commerce?

Voice commerce is a technique that lessens end users' reliance on hardware by enabling them to search for and buy things online using voice commands.

How may voice commerce be implemented?

Repeat ordering is the most popular and effective method of voice commerce implementation. Customers don't want visual confirmation of their purchase in this instance because they already know what they want to buy - it could be something they purchase every month or even every week.

To know more about Voice commerce visit:

https://brainly.com/question/31263400

#SPJ9

How can we avoid bad etiquette?

Answers

Answer:

Avoid gossip

watch your body language

never adopt a casual attitude at work

Never criticize or make fun of any of your colleagues

Use appropriate words

Be formal and productive.

Don't be rude to anyone

Don't talk bad behind people back

Wear appropriate cloths

Explanation:

Answer:

practicing good etiquette is about being considerate of others, showing respect, and being mindful of your actions and their impact on those around you.

Explanation:

Here are some tips for avoiding bad etiquette:

Be polite: Always use courteous language and avoid being rude or aggressive. Say "please" and "thank you" when appropriate and try to be respectful of others.

Be punctual: Be on time for appointments and meetings. If you are running late, let the other person know as soon as possible.

Respect personal space: Be aware of personal space and avoid invading it. Give people their own space to move around freely.

Avoid interrupting: Allow others to finish speaking before you interrupt. Interrupting can be perceived as rude or disrespectful.

Listen actively: Listen carefully to what others have to say and respond thoughtfully. Show interest in the conversation and ask questions if you need clarification.

Be mindful of your body language: Your body language can say a lot about your attitude and mood. Avoid slouching, crossing your arms, or other negative body language.

Be considerate of others: Think about how your actions may affect others. Avoid doing things that may cause inconvenience or discomfort to others.

Practice good hygiene: Keep yourself clean and well-groomed. Avoid wearing strong fragrances that may bother others.

Be mindful of technology: Be aware of the impact your technology use may have on others. Avoid using your phone or other devices during important meetings or social events.

Overall, practicing good etiquette is about being considerate of others, showing respect, and being mindful of your actions and their impact on those around you

Which application (word, excel, PowerPoint) do you think you will use most in your college and future careers? Why?

Answers

Answer:

Word, Excel, and PowerPoint are all useful applications for different tasks in both academic and professional settings.

Explanation:

Word is typically used for writing and formatting documents, such as essays, reports, and research papers. It allows for easy editing, formatting, and collaboration, making it an essential tool for academic writing and professional documents.

Excel is a spreadsheet program that is commonly used for organizing and analyzing data. It can be used for tasks such as budgeting, financial analysis, and data visualization. Excel can be especially useful in careers such as accounting, finance, and business analysis.

PowerPoint is a presentation program that is often used to create visual aids for presentations. It can be used to create slideshows with text, images, and multimedia, making it useful for presenting ideas and concepts in a clear and engaging way. PowerPoint can be particularly useful in careers such as marketing, sales, and education.

Ultimately, the application that will be used the most will depend on the specific tasks and responsibilities of the college or career. It's important to have a basic understanding of all three applications to be prepared for any task that may come up.

The following exercise assesses your ability to:

1. Demonstrate professional responsibilities and make informed judgements in computing practice based on legal and ethical principles.


Read the "ACM Code of Ethics and Professional Conduct," located in the topic Resources.

Write a 3- to 5-page paper in which you explain how the ACM Code might guide the behavior of an undergraduate computing student. How might the Code shape your personal actions? In your paper, be sure to cite the particular articles in the Code. For example:

In group assignments, it is important for all individuals in the group to be transparent about their contributions to the project because this increases the quality of the overall work process. (Principle 2.1)

Answers

Title: The ACM Code of Ethics and Its Impact on the Behavior of Undergraduate Computing Students

What is the judgement?

Introduction:

The field of computing encompasses a wide range of technologies and applications, and professionals in this field are expected to adhere to high standards of ethical and professional conduct. The ACM (Association for Computing Machinery) Code of Ethics and Professional Conduct serves as a guiding framework for computing professionals, providing principles and guidelines to make informed judgments and decisions in their practice. In this paper, we will explore how the ACM Code of Ethics can shape the behavior of undergraduate computing students and influence their personal actions.

Professional Responsibilities and Informed Judgments:

As an undergraduate computing student, it is essential to understand and demonstrate professional responsibilities and informed judgments in computing practice. The ACM Code of Ethics, with its eight principles, provides guidance on how computing professionals should act ethically and responsibly in their practice. For example, Principle 1.1 of the Code emphasizes the importance of contributing to society by using computing resources in a beneficial and socially responsible manner. An undergraduate computing student should understand the implications of their work on society and strive to use their computing skills to make a positive impact.

Furthermore, Principle 1.2 of the Code highlights the need to avoid harm to others in computing practice. Undergraduate computing students should be aware of the potential consequences of their actions, such as creating and deploying software that could harm others or compromise their privacy and security. Students should take steps to mitigate and prevent such harm, such as following best practices in software development and adhering to security and privacy guidelines.

Legal and Ethical Principles:

The ACM Code of Ethics also underscores the importance of adhering to legal and ethical principles in computing practice. Principle 2.2 of the Code emphasizes the need to respect the privacy of others and protect their personal information. As an undergraduate computing student, it is essential to understand and comply with relevant laws and regulations related to data privacy, such as the General Data Protection Regulation (GDPR) in Europe or the Health Insurance Portability and Accountability Act (HIPAA) in the United States. Students should also be mindful of ethical considerations related to data privacy, such as obtaining proper consent before collecting or using personal data.

In addition, Principle 2.6 of the Code highlights the importance of respecting intellectual property rights. Undergraduate computing students should understand the implications of intellectual property laws, such as copyright, patents, and trademarks, and should avoid any actions that could infringe upon these rights. This includes properly citing and referencing sources in their work, obtaining proper permissions for using copyrighted materials, and respecting the intellectual property of others.

Lastly, Personal Actions and Behavior:

The ACM Code of Ethics also has a significant impact on the personal actions and behavior of undergraduate computing students. For example, Principle 3.1 of the Code emphasizes the importance of maintaining integrity and honesty in computing practice. Students should strive to be honest in their academic work, such as submitting their own original work and giving credit to others for their contributions. Students should also be truthful in their interactions with colleagues, clients, and other stakeholders in their computing practice, and should avoid any actions that could compromise their integrity.

Read more about judgements  here:

https://brainly.com/question/936272

#SPJ1

Trace coding below

a = 1

b = 2

c = 5

while a < c

a = a + 1

b = b + c

endwhile

output a, b, c

Answers

Answer:

Explanation:

Initially, a is assigned the value 1, b is assigned the value 2, and c is assigned the value 5. The while loop is entered because a (1) is less than c (5).

In the first iteration of the while loop:

a is incremented by 1, so a becomes 2.

b is incremented by c (5), so b becomes 7.

In the second iteration of the while loop:

a is incremented by 1, so a becomes 3.

b is incremented by c (5), so b becomes 12.

In the third iteration of the while loop:

a is incremented by 1, so a becomes 4.

b is incremented by c (5), so b becomes 17.

In the fourth iteration of the while loop:

a is incremented by 1, so a becomes 5.

b is incremented by c (5), so b becomes 22.

At this point, the while loop is exited because a (5) is no longer less than c (5).

The output of the program will be:

5

22

5

2. Consider a system in which messages have 16 bits and to provide integrity, the sender calculates the hash of the message using H(M) =M%255, and attaches it to the message. Suppose Alice sends a message 1001101010110010 and Bob receives 1001001010110010. Show how Bob notices that the message was tampered with.​

Answers

16 bits (2 octets) broad data units, memory locations, and integers are all considered to be 16-bit data and microcomputers.

Thus, Additionally, architectures based on registers, address buses, or data buses that size are used in 16-bit CPU and arithmetic logic unit (ALU) designs.

Microcomputers with 16-bit microprocessors are referred to as 16-bit microcomputers.

216 distinct values can be stored in a 16-bit register. Depending on the integer format chosen, a wide variety of integer values can be recorded in 16 bits.

Thus, 16 bits (2 octets) broad data units, memory locations, and integers are all considered to be 16-bit data and microcomputers.

Learn more about 16 bits, refer to the link:

https://brainly.com/question/30791648

#SPJ1

I need you yo do that assignment for me

Answers

Answer:

m or f

Explanation:

so that is why

I need dfd digram in ( gane and sarson symbols) and with explanation of what going on please

Answers

The answer of the given question based on the Data Flow Diagram is given below,

What is Data Flow Diagram?

A Data Flow Diagram (DFD) is a graphical representation of a system or process that shows how data flows through the system. It is a modeling technique used to describe the flow of data within a system, and to illustrate the way data is processed by various components of the system.

Here is an example DFD diagram using Gane and Sarson symbols, along with an explanation of what is happening:

                     +--------+        +--------+

                     | Process|--------|   DB   |

                     +--------+        +--------+

                          |                  |

                          |                  |

                     +--------+        +--------+

                     |   UI   |        |  File  |

                     +--------+        +--------+

                          |                  |

                          |                  |

                     +--------+        +--------+

                     |   P1   |        |   P2   |

                     +--------+        +--------+

In this example DFD diagram, there are three processes, a database (DB), and a file. The processes are represented by rectangular boxes, and the data flows are represented by arrows between the boxes. The symbols used in this diagram are:

UI: Represents the user interface, or the part of the system that interacts with the user.

P1 and P2: Represents two processes that manipulate data.

DB: Represents a database that stores data.

File: Represents a file that stores data.

The data flow in this system begins at the user interface (UI), where the user inputs data. This data is then passed to process P1, which manipulates the data in some way. The processed data is then passed to process P2, which manipulates the data further. Finally, the data is either stored in the database (DB) or in a file.

The DFD diagram is useful for identifying the different processes and data flows in a system, and for understanding how the system works. It can also be used for analyzing the system to identify potential areas for improvement or optimization.

To know more about  User interface visit:

https://brainly.com/question/30092606

#SPJ1

Select the correct answer.
Chris is creating a storyboard for the website of an author who has written many books. He decides to create a hierarchical structure. Which statement would be true regarding the website he is creating?

A.
The user will have to navigate every page sequentially.
B.
The website will have categories with sub-categories.
C.
The user can visit any page from any other page.
D.
The website is structured with a central home page.

Answers

Chris is creating a storyboard for an author's website using a hierarchical structure. In this case, the correct statement regarding the website he is creating would be: "The website will have categories with sub-categories."

The correct answer is option B.

A hierarchical structure organizes information into a top-down structure, with the main categories being subdivided into smaller, related sub-categories. This allows for easy navigation and organization of content, making it user-friendly.

The other options do not accurately describe a hierarchical structure: navigating pages sequentially refers to a linear structure, visiting any page from any other page implies a web-like structure, and a central home page is a characteristic of many website structures, not specifically hierarchical.

In summary, the true statement about Chris's website with a hierarchical structure is that it will have categories with sub-categories, providing an organized and user-friendly experience for visitors.

Therefore, option B is correct.

For more such questions on website, click on:

https://brainly.com/question/28431103

#SPJ11

Select the correct answer from each drop-down menu.
Teresa is planning a career in the network systems pathway. Her research tells her she needs to develop network maintenance and security skills.
Why would she need those?
Network systems professionals need network maintenance skills to know how to perform tasks such as
They need network security skills to know how to perform tasks such as
Reset
Next

Answers

Teresa should acquire proficiency in network maintenance as it is a vital element of managing network systems effectively.

Why is expertise necessary?

Moreover, expertise in network security is highly important for professionals who manage network systems, as it is their responsibility to safeguard the network against invasive intruders, cyber attacks, and various other dangers to its security.

This involves activities like setting up safety measures, setting up firewall settings, tracking network operations, and recognizing and taking action against safety threats. The protection of sensitive information has become crucial in the digital era due to the rising number of cyber-attacks and data breaches, making network security a top priority for businesses.

It is crucial for individuals pursuing a career in network systems to acquire adept abilities in network maintenance and security. By acquiring these abilities, individuals will be capable of efficiently handling network systems, guaranteeing network protection, and progressing in their professional journey.

Read more about network security here:

https://brainly.com/question/28004913

#SPJ1

Teresa should acquire proficiency in network maintenance as it is a vital element of managing network systems effectively.

Why is expertise necessary?

Moreover, expertise in network security is highly important for professionals who manage network systems, as it is their responsibility to safeguard the network against invasive intruders, cyber attacks, and various other dangers to its security.

This involves activities like setting up safety measures, setting up firewall settings, tracking network operations, and recognizing and taking action against safety threats. The protection of sensitive information has become crucial in the digital era due to the rising number of cyber-attacks and data breaches, making network security a top priority for businesses.

It is crucial for individuals pursuing a career in network systems to acquire adept abilities in network maintenance and security. By acquiring these abilities, individuals will be capable of efficiently handling network systems, guaranteeing network protection, and progressing in their professional journey.

Read more about network security here:

https://brainly.com/question/28004913

#SPJ1

C++ question: Jason opened a coffee shop selling coffee, cheese cakes, and coffee beans. Coffee is sold at the shop in two sizes: small (9 oz, $1.5) and large (12 oz, $1.9). Cheese cakes cost $3 per slice. Coffee beans are sold with $0.6 per oz. Write a menu-driven program that will make the coffee shop operational. Your program should allow the user to do the following: Choose among coffee, cakes, or beans to purchase. Buy coffee in any size and in any number of cups. Buy cheese cakes in any number of slices. Buy coffee beans in any amount. At any time show the total number of cups of each size sold, total number of slices of cakes sold, and total amount of coffee beans sold. At any time show the total amount of coffee sold. At any time show the total money made. Your program should consist of at least the following functions: a function to show the user how to use the program, a function to sell coffee, a function to sell cakes, a function to sell coffee beans, a function to show the number of cups of each size of coffee, the number of slices of cheese cakes, and the amount of coffee beans sold, a function to show the total amount of coffee sold, a function to show the total money made. Your program should not use any global variables. Special values such as coffee cup sizes and cost of a coffee cup must be declared as named constants.

Answers

Answer:

#include <iostream>

#include <iomanip>

#include <string>

// Constants

const double SMALL_COFFEE_SIZE = 9.0;

const double SMALL_COFFEE_PRICE = 1.5;

const double LARGE_COFFEE_SIZE = 12.0;

const double LARGE_COFFEE_PRICE = 1.9;

const double CHEESECAKE_PRICE = 3.0;

const double COFFEE_BEANS_PRICE = 0.6;

// Global variables

int smallCupsSold = 0;

int largeCupsSold = 0;

int slicesSold = 0;

double beansSold = 0.0;

double totalCoffeeSales = 0.0;

double totalRevenue = 0.0;

// Function prototypes

void showInstructions();

void sellCoffee();

void sellCheesecake();

void sellBeans();

void showInventory();

void showSales();

void showRevenue();

int main()

{

   std::string choice;

   showInstructions();

   while (true)

   {

       std::cout << "\nEnter choice (C for coffee, K for cheesecake, B for beans, Q to quit): ";

       std::cin >> choice;

       if (choice == "C" || choice == "c")

       {

           sellCoffee();

       }

       else if (choice == "K" || choice == "k")

       {

           sellCheesecake();

       }

       else if (choice == "B" || choice == "b")

       {

           sellBeans();

       }

       else if (choice == "Q" || choice == "q")

       {

           break;

       }

       else

       {

           std::cout << "\nInvalid choice. Please try again.\n";

       }

   }

   showInventory();

   showSales();

   showRevenue();

   return 0;

}

// Function to show instructions

void showInstructions()

{

   std::cout << "Welcome to Jason's coffee shop!\n";

   std::cout << "We sell coffee, cheesecake, and coffee beans.\n";

   std::cout << "Coffee is sold in two sizes: small (9 oz, $1.5) and large (12 oz, $1.9).\n";

   std::cout << "Cheesecake costs $3 per slice.\n";

   std::cout << "Coffee beans are sold at $0.6 per oz.\n";

   std::cout << "Please choose from the following options:\n";

}

// Function to sell coffee

void sellCoffee()

{

   std::string size;

   int quantity;

   double price = 0.0;

   double sizeInOunces = 0.0;

   std::cout << "\nCoffee sizes: S for small, L for large.\n";

   std::cout << "Enter size: ";

   std::cin >> size;

   if (size == "S" || size == "s")

   {

       sizeInOunces = SMALL_COFFEE_SIZE;

       price = SMALL_COFFEE_PRICE;

       smallCupsSold++;

   }

   else if (size == "L" || size == "l")

   {

       sizeInOunces = LARGE_COFFEE_SIZE;

       price = LARGE_COFFEE_PRICE;

       largeCupsSold++;

   }

   else

   {

       std::cout << "\nInvalid size. Please try again.\n";

       return;

   }

   std::cout << "Enter quantity: ";

   std::cin >> quantity;

   double totalSize = quantity * sizeInOunces;

double totalPrice = quantity * price;

std::cout << "\nSold " << quantity << " cups of " << size << " coffee for a total of $" << std::fixed << std::setprecision(2) << totalPrice << ".\n";

totalCoffeeSales += totalSize;

totalRevenue += totalPrice;

}

// Function to sell cheesecake

void sellCheesecake()

{

int quantity;std::cout << "\nEnter quantity: ";

std::cin >> quantity;

double totalPrice = quantity * CHEESECAKE_PRICE;

std::cout << "\nSold " << quantity << " slices of cheesecake for a total of $" << std::fixed << std::setprecision(2) << totalPrice << ".\n";

slicesSold += quantity;

totalRevenue += totalPrice;

}

// Function to sell cheesecake

void sellCheesecake()

{

int quantity;

std::cout << "\nEnter quantity: ";

std::cin >> quantity;

double totalPrice = quantity * CHEESECAKE_PRICE;

std::cout << "\nSold " << quantity << " slices of cheesecake for a total of $" << std::fixed << std::setprecision(2) << totalPrice << ".\n";

slicesSold += quantity;

totalRevenue += totalPrice;

}

// Function to sell coffee beans

void sellBeans()

{

double quantity;

std::cout << "\nEnter quantity in ounces: ";

std::cin >> quantity;

double totalPrice = quantity * COFFEE_BEANS_PRICE;

std::cout << "\nSold " << quantity << " ounces of coffee beans for a total of $" << std::fixed << std::setprecision(2) << totalPrice << ".\n";

beansSold += quantity;

totalRevenue += totalPrice;

}

// Function to show inventory

void showInventory()

{

std::cout << "\nInventory:\n";

std::cout << "Small coffee cups sold: " << smallCupsSold << "\n";

std::cout << "Large coffee cups sold: " << largeCupsSold << "\n";

std::cout << "Cheesecake slices sold: " << slicesSold << "\n";

std::cout << "Coffee beans sold (in ounces): " << std::fixed << std::setprecision(2) << beansSold << "\n";

}

// Function to show total coffee sales

void showSales()

{

std::cout << "\nTotal coffee sold (in ounces): " << std::fixed << std::setprecision(2) << totalCoffeeSales << "\n";

}

// Function to show total revenue

void showRevenue()

{

std::cout << "\nTotal revenue: $" << std::fixed << std::setprecision(2) << totalRevenue << "\n";

}

Explanation:

Please answer the question in the picture

Answers

The IP address of host 2 on subnet 6 would be the second address in the subnet, which is: 227.12.1.41

How to get the information

It should be noted that to discover the IP address of Host 2 on Subnet 6, first we must uncover the network address of the sixth subnet. Since the number is 6, the network address bears the designation of the sixth subnet belonging to a Class C Network 227.12.1.0.

In order to ascertain the network adress of Subnet 6, one must become familiar with the block size. By examining the subnet mask /29, it can be deduced that the block size's magnitude must be equal to 2^(32-29)= 8. Summarily, the network address of Subnet 6 would correspond as:

227.12.1.0 + (6-1) * 8 = 227.12.1.40

Learn more about subnet on

https://brainly.com/question/28256854

#SPJ1

What can developers build to visualize elements of a webpage?

In the phase, developers build a to describe how different visual elements will look on each web page.

Answers

Developers can build various tools and techniques to visualize elements of a webpage.

Some popular options include:

CSS frameworks and libraries like Bootstrap or Tailwind CSS, which provide pre-defined styles and components.

Prototyping tools such as Adobe XD, Figma, or Sketch, which allow designers and developers to create interactive visual representations of web pages.

Browser developer tools like Chrome DevTools or Firefox Developer Tools, which enable live editing and previewing of CSS styles, layout, and elements.

Design systems and style guides that provide consistent visual guidelines for web elements.

Custom visualization tools or scripts that generate previews or mockups based on code or design files.

Read more about webpages here:

https://brainly.com/question/31036832

#SPJ1

you are the manager of a family-owned coffee shop. the previous manager tracked all of the data on paper. you realize that using technology will increase your efficiency and enable you to communicate better with the owners, employees, and customers. at the next business meeting, you will share ideas on how you will use technology. to prepare for the meeting write a detailed document elaborating on the following; differentiate between input and output devices you need to use. list the types of data you will regard as input and the information you will regard as output. include the types and specifications of computers, mobile devices, and other technologies you will use to enter data to produce information. incorporate your own experiences and user reviews of the devices.

Answers

Answer:In order to modernize our coffee shop and improve our efficiency, we need to use a variety of input and output devices. Input devices are used to enter data into the computer system, while output devices are used to display or print information from the computer system. The types of data we will regard as input include customer orders, employee time sheets, inventory levels, and financial transactions. The information we will regard as output includes receipts, order confirmations, inventory reports, and financial statements.

To enter data and produce information, we will use a variety of computers, mobile devices, and other technologies. For example, we will use desktop computers with high processing power and large memory storage to keep track of inventory and financial transactions. We will also use mobile devices such as smartphones and tablets to take orders and process payments. These devices will need to be equipped with barcode scanners and credit card readers to streamline the payment process.

In addition, we will use specialized software to manage our business operations. For example, we will use point-of-sale (POS) software to take orders, process payments, and manage inventory. We will also use accounting software to keep track of our financial transactions and generate financial statements.

Based on my own experiences and user reviews, I recommend using high-quality devices that are reliable and easy to use. For example, we should use computers with fast processors and large memory storage to ensure that they can handle our business operations without slowing down. We should also use mobile devices with long battery life and durable construction to ensure that they can withstand heavy use in a fast-paced environment.

Overall, by using a variety of input and output devices, specialized software, and high-quality devices, we can improve our efficiency and better serve our customers.

Explanation:

This company has five (5) different departments (Marketing, Admin, Finance, Security, and HR) in Melbourne. The company wants to expand its branch office to Sydney with the same office setup as in Melbourne. Its Melbourne office sits on approximately four acres of land and serves over 100 staff and 20 guest users. The office consists of two buildings. One building is used for Marketing, admin and finance and other building has Security and HR. Each building has two floors with each department on each floor. Client is also requesting wireless internet access at all buildings. How to build this network topology in cisco packet tracer? Need exactly how to make it.

Answers

A general outline of how you can build a network topology in Cisco Packet Tracer for the given scenario. Please note that specific steps may vary depending on your requirements and the version of Cisco Packet Tracer you are using.

Create the Physical Topology: Open Cisco Packet Tracer and drag and drop the required devices from the device panel onto the workspace to create the physical layout of the network. In this case, you will need to add routers, switches, and access points.

What is the internet access?

Others are:

Connect the Devices: Use appropriate cables (e.g., Ethernet cables) to connect the devices according to the physical layout of the network. Connect the switches to the routers, and connect the access points to the switches to provide wireless internet access.

Configure IP Addresses: Configure the IP addresses on the interfaces of the routers and switches according to the network requirements. Assign unique IP addresses to each interface to ensure proper communication between devices.

Create VLANs: Create Virtual Local Area Networks (VLANs) to segregate the different departments (Marketing, Admin, Finance, Security, and HR) on separate VLANs. Assign the VLANs to the appropriate switch ports that connect to the respective departments.

Configure Routing: Configure routing on the routers to allow communication between different VLANs. Use static routes or dynamic routing protocols (e.g., OSPF, EIGRP) to enable routing between different subnets.

Read more about internet access here:

https://brainly.com/question/529836

#SPJ1

Declare a Boolean variable named isValid. Use isValid to output "Valid" if codeWord contains at least 3 letters and codeWord's length is greater than or equal to 8, and "Invalid" otherwise.

Ex: If the input is 12PH495y, then the output is:

Valid

Ex: If the input is WRyVKvN, then the output is:

Invalid

Note: isalpha() returns true if a character is alphabetic, and false otherwise. Ex: isalpha('a') returns true. isalpha('8') returns false.

Answers

Answer:

code : python

x = FDRTYDhfg123

ans = True

lettercount = 0

for letter in x:

 if type(letter) == str():

 lettercount += 1

 else:

 pass

if len(x) <= 8 and lettercount <= 3:

 ans = True

else:

 ans = False

print(ans)

Explanation:

Need help with error LAB: Word frequencies - methods

Answers

The initial test of the program was one that has error due to a disparity between the anticipated output and the actual output. The anticipated result includes the terms "Mark 1" as well as "mark 1", but the actual output of the program displays "Mark 2" and "mark 2".

What is the code error about?

A Java programming code is one that involves crafting a function that accepts an array of words, its size, and a specific word. The function must determine the frequency of the given word within the array.

Therefore, The primary approach involves taking input from the user in the form of an array of words and then utilizing the getFrequencyOfWord method for every word within the array. The resulting word and its corresponding frequency are then printed.

Learn more about code error from

https://brainly.com/question/30360094

#SPJ1

 

LAB

ACTIVITY

5.27.1: LAB: Word frequencies - methods

LabProgram.java

7/10

Load default template...

12345

1 import java.util.Scanner;

3 public class LabProgram {

6

public static int getFrequencyOfWord(String[] wordsList, int listSize, String currWord) { int count = 0;

for (int i = 0; i < listSize; i++) {

if (wordsList[i].equalsIgnoreCase(currWord))

count++;

return count;

7

8

9

10

11

13

HERE ARE 322

}

12

}

14

15

16

17

18

19

20

}

21

22

24

25 }

public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int listSize = scanner.nextInt(); String[] words = new String[listSize]; for (int i = 0; i < words.length; i++) { words [i] = scanner.next();

}

for (int i = 0; i < words.length; i++) {

}

" "I

System.out.println(words[i] + + getFrequencyOfWord (words, listSize, words[i]));

Coding trail of your work

What is this?

4/23 U‒‒‒‒‒‒‒3,3,0,3,0,3-3,3,3-3---0,0,7,7,4,0,4,7-7 min:35

Latest submission - 10:11 AM EDT on 04/23/23

Only show failing tests

1:Compare output A

Output differs. See highlights below.

Input

Your output

5 hey hi Mark hi mark

hey 1

hi 2

Mark 2

hi 2

mark 2

Expected output

hey 1

hi 2

Mark 1 hi 2

mark 1

Total score: 7/10

Download this submission

0/3

How is a cryptocurrency exchange different from a cryptocurrency
wallet?

A There is no difference since all wallets are hosted on exchanges.

B Exchanges are only used to make transactions, not to store cryptocurrency.

C Exchanges are offline whereas wallets are always connected to the internet.

D An exchange controls your keys but you control your cryptocurrency.

Answers

Exchanges are only used to make transactions, not to store cryptocurrency. Option B

What is Cryptocurrency exchanges versus cryptocurrency wallets?

Cryptocurrency exchanges are platforms that allow users to trade various cryptocurrencies for other digital assets or fiat currency. While some exchanges may offer temporary storage solutions, their primary function is to facilitate transactions between users.

On the other hand, cryptocurrency wallets are designed to store, send, and receive cryptocurrencies securely. Wallets can be hardware-based, software-based, or even paper-based, and they help users manage their private keys, which are essential for accessing and controlling their cryptocurrency holdings.

Find more exercises related to Cryptocurrency exchanges;

https://brainly.com/question/30071191

#SPJ1

Each process is represented in the operating system by a process control block (PCB). What pieces of information does it contain? Why is it important?

Answers

Answer:  Each block of memory contains information about the process state, program counter, stack pointer, status of opened files, scheduling algorithms

Explanation:

Like any other processor, a graphics processor needs

a.AGP.
b.HDMI.
c.GPU
d.RAM.

Answers

Answer: c. GPU (Graphics Processing Unit) is the correct answer.

Explanation:  A graphics processor is a specialized type of processor designed to handle the complex calculations required for rendering graphics and images. It is the primary component responsible for producing the images you see on your computer screen. While AGP (Accelerated Graphics Port) and HDMI (High-Definition Multimedia Interface) are both types of interfaces used to connect a graphics card to a computer system, they are not necessary for a graphics processor to function. RAM (Random Access Memory) is important for overall system performance, but it is not a requirement specifically for a graphics processor.

PLEASE HELP
Read string integer value pairs from input until "Done" is read. For each string read, if the following integer read is less than or equal to 45, output the string followed by ": reorder soon". End each output with a newline.


Ex: If the input is Tumbler 49 Mug 7 Cooker 5 Done, then the output is:


Mug: reorder soon

Cooker: reorder soon

Answers

Answer: while True:

   # Read the string integer pair from input

   input_str = input().strip()

   if input_str == "Done":

       break

   string, integer = input_str.split()

   

   # Check if the integer is less than or equal to 45

   if int(integer) <= 45:

       # Output the string with the message

       print(string + ": reorder soon")

Explanation:

PLEASE HELP
Read string integer value pairs from input until "Done" is read. For each string read, if the following integer read is less than or equal to 45, output the string followed by ": reorder soon". End each output with a newline.

Ex: If the input is Tumbler 49 Mug 7 Cooker 5 Done, then the output is:

Mug: reorder soon
Cooker: reorder soon

Answers

The program to read string integer value pairs from input until "Done" is read. For each string read, if the following integer read is less than or equal to 45, output the string followed by ": reorder soon". End each output with a newline is below.

Here's a Python program that solves the problem for the given input:

while True:

   name = input()

   if name == "Done":

       break

   value = int(input())

   if value <= 45:

       print(name + ": reorder soon")

Thus, this is the program for given scenario.

For more details regarding programming, visit:

https://brainly.com/question/11023419

#SPJ1

what is the first computer?​

Answers

Answer:

The first computer was called the "Atanasoff-Berry Computer" (ABC), which was developed by John Atanasoff and Clifford Berry in the late 1930s and early 1940s. The ABC was an electronic computer that used binary digits (bits) to perform calculations, and it was designed to solve systems of linear equations. While the ABC was not a general-purpose computer, it represented a major milestone in the development of electronic computing and laid the groundwork for later computer designs.

help me to fix this code

class Livro:

def __init__(self, lf, titulo, autor, classificacao):

self.titulo = titulo

self.autor = autor

self.classificacao = classificacao

self.proximo = None



class self.proximo = None



class ListaLivros:

def __init__(self):

self.cabeca = None



def adicionar_livro(self, titulo, autor, classificacao):

novo_livro = Livro(titulo, autor, classificacao)

if self.cabeca is None:

self.cabeca = novo_livro

else:

atual = self.cabeca

while atual.proximo:

atual = atual = self.cabeca

while atual.proximo:

atual = atual.proximo

atual.proximo = novo_livro



def imprimir_lista(self):

atual = self.cabeca

while atual:

print(f"{atual.titulo} - {atual.autor} - {atual.classificacao}")

atual = atual.proximo


Answers

Answer:

A well-written project scope includes things like goals, deliverables, tasks, costs, and deadlines. Usually, it establishes project boundaries, responsibilities, success criteria, and procedures for how work will be approved. It outlines key stakeholders, assumptions, and constraints.Jun 1, 2021

Explanation:

Other Questions
Let Y have a lognormal distribution with parameters =5 and =1. Obtain the mean, variance and standard deviation of Y. Sketch its p.d.f. Compute P. d xy dA D is enclosed by the quarter circley=(1-x^2), x 0, and the axes Evaluate the double integral. I am getting zero and would like a second opinion. Ignaz Semmelweiss (1818-1865) was the doctor who first encouraged other doctors to wash their hands with disinfectant before touching patients. Before the new procedure was established, the rate of infection at Dr. Semmelweiss' hospital was about 10%. Afterward the rate dropped to about 1%. Assuming the population proportion of infections was 10%, find the probability that the sample proportion will be 1% or less, assuming a sample size of 200. Start by checking the conditions required for the Central Limit Theorem to apply. Patients with insomnia either have difficulty falling asleep or staying asleep. True or false Several different batches of drink mix have different appearances. The solution is supposed to be somewhat red in color, but that is not always the case. What do you think went wrong? Provide a plausible reason, consistent with the observations! Scenario 2: The color intensity is too great - it is too dark. MedTech, Inc. manufactures surgical instruments to the exacting specifications of various customers. During April 2005, Job 911 for the production of 4,500 instruments was completed at the following costs per unit:Direct materials $ 60Direct manufacturing labor 20Allocated manufacturing overhead 80Total $160Final inspection of Job 911 disclosed 100 defective units and 50 spoiled units. The defective instruments were reworked at a total cost of $12,000, and the spoiled instruments were sold to a jobber for $3,000.[CPA Adapted] If the costs associated with spoilage and reworked units are considered as abnormal to manufacturing operations, how much is the unit cost of the good units produced on Job 911?A. $160B. $162C. $164D. $168 Determine the pH of the resulting solution when the following two solutions are mixed: 20.0 mL of 0.20 M HC2H30, and 20.0 mL of 0.10 M NaOH. Critically discuss how the youth could be negatively affected by their inability to acknowledge the limitations to the right to freedom of expression when they use social media write a script that reads a line of text, tokenizes the line using space characters as delimiters and outputs only those words beginning with the letter 'b'. Consider 3 data points (-2,-2), (0,0), and (2,2) (a) What is the first principal component? (b) If we project the original data points into the 1-D subspace by the principal you choose, what are their coordinates in the 1-D subspace? What is the variance of the projected data? (c) For the projected data you just obtained above, now if you represent them in the original 2-D space and consider them as the reconstruction of the original data points, what is the reconstruction error? (2a^2)^3 fill in the blank Under which of the following circumstances would increasing the money supply be most effective in increasing real gross domestic product?Interest Rates Employment Business OptimismA. High Full HighB. High Less than full HighC. Low Full HighD. Low Full LowE. Low Less than full Low An experiment was performed to determine the empirical formula of iron bromide. A 2.00 g sample of iron was reacted with 1.00 g bromide. After the reaction, the iron bromide was removed and the excess iron was weighed and determined to have a mass of 1.65 g.A. Calculate the mass of iron that reacted.B. Calculate the moles of bromine that reacted.C. Calculate the moles of iron that reacted.D. Use the moles of iron and moles of bromine to determine the empirical formula for the ironbromide. w transaction listournal entry worksheet a. Viewed through the lens of "rights theories," is Microsofts decision to go carbon negative by 2030 ethical?b. Apply John Rawls concept of the veil of ignorance to Microsofts decision. What conclusion do you reach about Microsofts decision? 1. what are the advantages of digital techniques over analog? what is the chief limitation to the use of digital techniques? (5) Exercise: Gauss Elimination (without pivoting) My Solutions > Problem Description: Develop a MATLAB program that implements the algorithm of Gauss Elimination (without pivoting, i.e. "Naive Gauss Elimination"). Your function should take in a matrix A (dimensions: Nx N) and a column vector b (dimensions: Nx 1), and find the solution x such that Ax=b. Note: One objective of this lab exercise is to understand the algorithm of Gauss Elimination. Therefore, using a different algorithm --- including, but not limited to, the "backslash" operator in MATLAB --- to solve the problem will not receive credit. Function Save C Reset DI MATLAB Documentation i function x = GaussElimination (A,b) 2 %% Input 3 % A: Coefficients (matrix) 4 % b: Right-hand-side forcing terms (column vector) 5 % 6 %% Output (column vector) 7 % x: solution for unknowns, using Naive Gauss Elimination 8 9 %% Write your code here 10 11 12 13 end the donut stop acquired equipment for $14,000. the company uses straight-line depreciation and estimates a residual value of $3,600 and a four-year service life. at the end of the second year, the company estimates that the equipment will be useful for four additional years, for a total service life of six years rather than the original four. at the same time, the company also changed the estimated residual value to $1,500 from the original estimate of $3,600. required: calculate how much the donut stop should record each year for depreciation in years 3 to 6 Aly Daniels wants to receive an annuity payment of $250 per month for 2 years. Her account earns 6% interest, compounded monthly. 25. How much should be in the account when she wants to start withdrawing? 26. How much will she receive in payments from the annuity? 27. How much of those payments will be interest? 15, 16, 17 and 18 the given curve is rotated about the -axis. find the area of the resulting surface.