Programming C++ As a programmer, someone requested you to make a receipt of orders in Starbucks such as, Cappuccino (tall) ₱140.00 Cappuccino (grande) ₱155.00 Cappuccino (venti) ₱170.00 Black Tea Latte (tall) ₱140.00 Black Tea Latte (grande) ₱155.00 The total amount of orders is 760 pesos and the customer gives 1000 pesos so the exchange is 240. Give the source code that you will use for the receipt.
Q: What properties do network designs have? Explain your response.
A: When it comes to the physical infrastructure, networks must be able to handle a diverse range of…
Q: Traditional file processing has been replaced by a database system. As a result of this new database…
A: Minimal Database Redundancy: A database management system (DBMS) is a logically ordered collection…
Q: Is it ever clear what someone meant when they said they wanted a 4G or 5G phone network?
A: Intro 5G: The fifth generation of mobile networks is in development, colloquially referred to as…
Q: In what ways is software engineering important in the creation of software?
A: Software engineering is important because specific software is needed in almost every industry, in…
Q: Toll roads have different fees at different times of the day and on weekends. Write a function…
A:
Q: a. What are the characteristics/criteria for Big Data Projects (not Big Data)? b. Explain and detail…
A:
Q: Throughout the semester, we defined techniques and the SDLC. The SDLC and software engineering…
A: SDLC: SDLC is the practise of breaking down software development work into different stages in order…
Q: Can we implement Data Processing Cycle inamanual procedure? Why or why not?
A: Data processing cycle can be defined as the cycle or the stage which is used to analyse and extract…
Q: Describe why you would use embedded SQL instead of just SQL or a general-purpose programming…
A: What is the use of SQL in programming? SQL (/ ˌɛsˌkjuːˈɛl / (listen) S-Q-L, / ˈsiːkwəl / Structured…
Q: How do computers and other electrical gadgets talk
A: Ethernet : Ethernet is a standard protocol that allows many computers to communicate with one…
Q: When a fake argument is used in a unary operator function, how does the compiler perceive it?
A: Introduction: There is just one parameter to a unary function. There are many different types of…
Q: Examine the opposing viewpoints on how to define "information technology." Which of them (in terms…
A: Informatics, often known as information technology, uses computers and telecommunications systems to…
Q: Make a list of legacy system kinds and development plans for each.
A: Intro Firstly we understand what is legacy system: A legacy system is outdated computing software…
Q: Do we need to have a thorough discussion of various security management ideas and the principles…
A: INTRODUCTION: Here we need to tell Do we need to have a thorough discussion of various security…
Q: Response time, transaction success rate, and system availability are all important Web site…
A: Introduction: In today's world, everyone prefers to do things online because it lowers paper work,…
Q: Suppose DH contains (6B) 16 hexadecimal, AH=(CB) 16 , CF=1, and CL contains 5, What are the values…
A: Solution:-
Q: List at least three types of information that should be included in a program's internal…
A: Intro three types of information that should be included in a program's internal documentation.
Q: What three data abnormalities are caused by data redundancy? How to get rid of these anomalies
A: Introduction: Anomalies in data are discrepancies in data that occur due to a database action such…
Q: a microprocessor of 32 bit addresses, the tag length will change if we design a two-way…
A: A 2 way set associative cache means total number of block inside each set is 2 A 4 way set…
Q: Determine the kind of cable that will connect the switch and router. Which gadget is used to join…
A: Basics A cable is at least one wire that is covered in plastic and used to transmit force or data…
Q: In terms of information technology, what are some of the most recent advancements?
A: Infrastructure: It refers to the facilities and services required by a firm. Included are utilities…
Q: Give a quick explanation of what a text-based voice over IP protocol (VoIP) is.
A: Internet Protocol: The Internet Protocol (IP for short) is the most important protocol in the…
Q: What are some of the most effective techniques of firewall management? Explain.
A: Introduction: A firewall is a type of security system that protects a computer from unidentified…
Q: What three data abnormalities are caused by data redundancy? How to get rid of these anomalies
A: Introduction: In data, anomalies arise when there are disparities in data that occur as a result of…
Q: Assume you are a systems analyst for a consulting company and have been asked to assist the chief…
A: Software automation can reduce a lot of procedural steps in a process.
Q: What exactly is a computer network? What are the primary applications of a computer network?
A: Introduction: A computer network is a collection of devices that are linked together. A node can be…
Q: Write a program using one-dimensional array that searches a number if it is found on the list of the…
A: I provide the code in Python along with output and code screenshot
Q: What is the Conceptual Framework for Cybercrime? Please include sources in your response.
A: Introduction:- => The Internet is frequently dependent on the daily lives of many individuals,…
Q: What are some of the many cybercrime theories? If you have any further information, please provide…
A: cybercrime theories: After all, these theories are meant to explain crimes committed in the "real…
Q: The benefits of spreadsheets and paper-based records outweigh the disadvantages of database systems…
A: Database Systems: Database Systems/Database Management Systems (DBMS) is software that collects…
Q: An answer to the question, "What exactly is a data warehouse?" Besides that, what is the aim of a…
A: Encryption: As we all know, data warehouses are critical in business analytics. The future has…
Q: The Agile Manifesto guides the Agile Group of Software Engineers. Make mention of the Agile…
A: Introduction: When it comes to software development, the Agile Manifesto is made of four basic…
Q: Which of the following is an appropriate component to consider during the design of the system…
A: Intro Which of the following is an appropriate component to consider during the design of the system…
Q: What do you mean by "the Internet of Things" and "the wireless revolution"?
A: The Internet of Things (IoT): The Internet of Things (IoT) is a network of physical…
Q: What exactly is a language with a block structure?
A: Introduction: Blocks that have been constructed by Block Block languages are a type of high-level…
Q: Step-by-step instructions for converting RGB to HIS colour.
A: RGB to HIS color transformation 1. Read the RGB image using the ‘imread’ function.2. Each RGB…
Q: "In formation technology is a benefit," compose a brief paragraph.
A: Information technology: Information technology (IT) is the creation, processing, storage, security,…
Q: Explain the distinction between top-down and bottom-up processing. Please give an example.
A: Top-down processing The development of pattern recognition through the utilization of contextual…
Q: a) Write an assembly program using MARIE's assembly Instruction set that prompts the user to enter a…
A:
Q: Include four distinct kinds of external disk interfaces in your list.
A: Four distinct external disk interface
Q: What is the significance of fine-grained multithreading?
A: Introduction: What is the significance of fine-grained multithreading?
Q: Justify the use of a request for proposal to get hardware and system software details.
A: A request for proposal is also known as RFP.
Q: What distinguishes a data member from a local variable?
A: What distinguishes a data member from a local variable?
Q: What exactly is gradual development?
A: Introduction: The Process of Incremental Development
Q: Computer science The CISO contacts the interns who appear to be breaching many security standards.
A: Introduction: Security: Security is an important part of many companies. Every firm has a certain…
Q: List and describe three approaches used in modern computer systems to increase overall system…
A: Intro List and describe three approaches used in modern computer systems to increase overall…
Q: Why is security required in business, and what are the repercussions of failing to offer security?
A: Introduction: Comprehensive workplace security is critical because it reduces liability, insurance,…
Q: Computer science Why will we study any business model, and how will our business solution provide…
A: Introduction: Every day, more and more data sources become accessible. This may be a positive thing…
Q: Discuss why a business could want to use a distinct, independent team for quality testing instead of…
A: Answer: When we talk about testing then organizations always prefer independent testing because in…
Q: Compose a filter (program) that reads integers from an input stream and writes it to an output…
A: Algorithm to check and print positive number Take input i.e. value as integer. Check whether it is…
As a programmer, someone requested you to make a receipt of orders in Starbucks such as,
Cappuccino (tall) | ₱140.00 |
Cappuccino (grande) | ₱155.00 |
Cappuccino (venti) | ₱170.00 |
Black Tea Latte (tall) | ₱140.00 |
Black Tea Latte (grande) | ₱155.00 |
The total amount of orders is 760 pesos and the customer gives 1000 pesos so the exchange is 240.
Give the source code that you will use for the receipt.
Step by step
Solved in 4 steps with 2 images
- Write a program using c++that plays a dice game called "21" It is a variation on BlackJack where one player plays against the computer trying to get as close to 21 as possible without going over. Here are the rules of the game: You will play with dice that have numbers from 1 to 11. To win, the player or the computer has to get to 21, or as close as possible without going over. If the player or computer goes over 21, they instantly lose. If there is a tie, the computer wins. Starting the game: The player is asked to give the computer a name. For now, we'll simply call the computer opponent, "computer." The game starts with rolling four dice. The first two dice are for the player. These two dice are added up and the total outputted to the screen. The other two dice are for the computer. Likewise, their total is outputted to the screen. Player Loop: If a total of 21 has been reached by either the player or the computer, the game instantly stops and the winner is…Write a console application in c++ that prints the next 20 leap years. A leap year is a year in which an extra day is added to the Gregorian calendar, which is used by most of the world. While an ordinary year has 365 days, a leap year has 366 days. ... A leap year comes once every four years. Because of this, a leap year can always be evenly divided by four.Write a c++ program for a bank in your town that updates its customers’ accounts at the end of each month. The bank offers two types of accounts:savings and cheque. Every customer must maintain a minimum balance.Minimum balances for the accounts are: Savings : R 1000.00 Cheque: R 1500.00If a customer’s balance falls below the minimum balance, there is a service charge of R50.00 for savings accounts andR100.00 for cheque accounts. If the balance at the end of the month is at least the minimum balance, the clientreceives interest as follows: Savings accounts receive 4% interest on the balance. Cheque accounts with balances of up to R 5000.00 more than the minimum balance receive 3% interest;otherwise, accounts with balances more than R 5000.00 more than the minimum balance receive 5% interest.Write a c++ program that requests the user to enter a customer’s account number (int type), account type (char type - S for savings, C for checking) and current balance. The updated balance must…
- Write a C++ program that will simulate a Point-of-Sales terminal in Snack Bar. For example,these are the items available for purchase and their corresponding unit prices: Hot Dog Php 45.50 Hamburger Php 35.75 French Fries Php 25.85 Milk Shake Php 15.75 The terminal will ask the client to enter the quantity per item listed above. If in case, the client don't want to buy a particular product just give 0 on thatitem. The terminal will compute the cost per item and will generate a Transaction Receipt at the end. The terminal will also ask the client how much money to tender in order to pay the cost of the items bought. It will also compute for the VAT (value-added tax) on the total purchase say 20% of the total sales. See sample run output:In Java - A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes place. A leap year is when a year has 366 days: An extra day, February 29th. The requirements for a given year to be a leap year are: 1) The year must be divisible by 4 2) If the year is a century year (1700, 1800, etc.), the year must be evenly divisible by 400; therefore, both 1700 and 1800 are not leap years Some example leap years are 1600, 1712, and 2016. Write a program that takes in a year and determines whether that year is a leap year. Default code: import java.util.Scanner; public class LabProgram { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); int inputYear; boolean isLeapYear; isLeapYear = false; inputYear = scnr.nextInt(); /* Type your code here. */ }}Write a program in C++ that reads HAND_SIZE cards from the user, then analyzes the cards and prints out the type of poker hand that they represent. (HAND_SIZE will be a global constant, typically 5, but your program must still work if it is set to something other than 5.) Poker hands are categorized according to the following hand-types: Straight flush, four of a kind, full house, straight, flush, three of a kind, two pairs, pair, high card. To simplify the program we will ignore card suits, and face cards. The values that the user inputs will be integer values from LOWEST_NUM to HIGHEST_NUM. (These will be global constants. We'll use LOWEST_NUM = 2 and HIGHEST_NUM = 9, but your program must work if these are set to something different.) When your program runs it should start by collecting HAND_SIZE integer values from the user and placing the integers into an array that has HAND_SIZE elements. It might look like this: Enter 5 numeric cards, no face cards. Use 2 - 9. Card 1: 8 Card 2:…
- Write a complete C program to calculate the average salary of the workers in a company. The program should take 10 employee’s classes, F for full-time, P for part-time and V for visitor (F, P, V) from the user and then calculate the average salary by applying the following salary scale:Class F = 2000 TL, Class P = 800 TL, Class V =700 TLwrite a program in C++ that A user needs to determine the size of squares (let say delta) in a grid, the center of the circle (does not have to lie on a grid but it can!) and the radius. (for example use "cin>>" ) Then you need to plot a circle using parametric equations of circle (you need to increase angle and plot these (in my picture black) points). First plot the first point of the circle and determine in which square of grid it is. (in my picture it is an orange square) and plot the left bottom vertex of this square (in my picture it is a blue point). Then increase an angle and plot next point of circle - check if it lies in different square. -If it is not in different square, you need to increase angle and check again. (because an angle was too small) -If it is the different square, then check, if this square has THE COMMON EDGE with the previous one -> if it has the common edge, then print new left bottom vertex of this square (if does not have common edge,…Illustrate your knowledge of C-Programming by implementing a ‘Game of Dice’.User will start with 3 lives and 100 initial points. Program will ask the user to rollthree dices. If sum of three dices is more than or equal to 15, user will get 10 points. If sum is in the range 10 to 14, user will get 5 points. If sum is less than 10, user willget -10 points. If sum is 3, user will lose one life.For every increase of 50 points, user will get one new life and for every decrease of50 points, user will lose one life. If at any point, user has 200 or more points,program will display message, ‘Congratulations, You Win!!!’ and end. If user haszero lives or zero points, program will display the message ‘Game Over. Sorry, YouLose.’ and end.Program will use the following user defined functions to implement the gameFunction ‘DisplayGameRules()’ will display the following message on screen.############################################## ROLL the DICE GAME…
- Write a C program that compute the perimeter of Circle, Rectangle, Triangle and Square. The program asks the user to specify the shape as follows: C for Circle, S for Square, R for Rectangle and T for Triangle and then it reads the required value to compute the perimeter for that specified shape. Note: the perimeter for the shapes:????l? = ? × ?????? × ?S????? = ? × ????????????? = ? × (????? + ??????) ???????? = ????? + ????? + ????3You are working for a lumber company, and your employer would like a program that calculates the cost of lumber for an order. The company sells pine, fir, cedar, maple, and oak lumber. Lumber is priced by board feet. One board foot equals one square foot that is one inch thick. Theprice per board foot is given in the following table: Pine 0.89Fir 1.09Cedar 2.26Maple 4.50Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). An entry from the user will be in the form of a letter and four integer numbers. The integers are the number of pieces, width, height, and length. The letter will be one of P, F, C, M, O (corresponding to the five kinds of wood) or T, meaning total. When the letter is T, there are no…Write a complete C++ program that will solve the following problem: The Shubert Theater in New Haven would like you to write a program for them to process ticket charges for their shows. Customers purchasing tickets can use them at any time while the play is on Each customer is charged a ticket processing fee of 12.99. Additionally, the following table rates apply to a customer for their tickets Play Code Play Section Code о Ticket Cost Once a New Musica Once a New Musical Once a New Musical Cinderella Cinderella B $104 $88 554 $76 $38 (Section Code © = Orchestra, M = Mezzanine B = Balcony) The Orchestra seats (O) are on the first level and are the best seats in the house. The seats in the Mezzanine level is on the second floor, further away from the stage. The Balcony seats are on the 3 level and are the cheapest seats. Your program should do the following: A. Get data from a file called: customers.dat. The file contains the customer ID number, the number of tickets desired, the play…