Write a C program to select the type of food from the list, then give the quantity you want to buy from Ibri Restaurant. Then display the total price to be paid after adding 2% tax on the customer bill. The program should run as following: Select the food plate or e for Exit .... m Mandi with Meet (2.800) c Chicken Barbeque (8.700) f Fish and Chips (2.500) e Exit The above menu should be repeated until the user select e to Exit the program. If the user select e then you exit and display "Thank You" You should use loops and ladder if else-if.
Q: Discuss the future of AI in light of its current evolution.
A: Introduction: Artificial intelligence is transforming practically every industry and every…
Q: Writing the setbank functions Setbalance Setaccont In order to enter the creditcard data instead of…
A: As per the requirement program is modified. Note: Newly added code is highlighted in bold. And both…
Q: How does your company discover network vulnerabilities before they become a problem?
A: Introduction: Network Vulnerability: A network vulnerability is a weakness or flaw in software,…
Q: Antonym of pleasant
A: Meaning of pleasant is giving a feeling of contentment or happiness.
Q: Global System for Mobile Communications, or GSM.What does this acronym signify when it is fully…
A: Introduction: GSM (Global System for Mobile Communications) is a second-generation cellular phone…
Q: Give a quick explanation of what LTE calls for. In addition, explain the difficulties of OFDM-MIMO…
A: LTE, which stands for Long Term Evolution, is sometimes known as 4G LTE. You may download your…
Q: Q.5.2 Argue for and against the establishment of legislations such as the Protection of Personal…
A: 5.2 There are arguments both for and against enacting such legislation. One argument in favor of…
Q: java In this assignment you will swap a position in an array list with another. swap() gets 3…
A: Coded using Java.
Q: How does forensic software assist investigators, and what is its purpose?
A: Forensic Software: Investigators may learn information about computer users, locate deleted data,…
Q: Take into consideration the relevance of wireless networks in nations that are still in the process…
A: Given: A WLAN creates a wireless network (LAN) between two or more devices in a small space, such a…
Q: Find the syntax error in the PHP program given below to print the output 5 4 3 2 1 0; i--){ echo "i…
A: Missing $ sign for variables ============ Correct program ============ <?php $s = 5;…
Q: When designing software systems, what are the most important aspects to bear in mind from a design…
A: A software system is a group of cooperating parts based on software that is a component of a…
Q: What are the risks of migrating a server database?
A: Introduction: Data Loss RiskDuring the process of migrating the data, there was a loss of data that…
Q: Explain why you sometimes need to set aside significantly more space for a numeric field than any of…
A: Introduction: The field is the smallest unit of data in the programme. It is the most basic…
Q: Identify any four UNIX utility commands and explain its use with an example
A: Unix commands are inbuilt projects that can be conjured in more ways than one. Here, we will work…
Q: What are the key differences between a local-area network and a wide-area network in terms of…
A: Introduction: This topic highlights the primary differences between a local area network (LAN) and a…
Q: Is there a manner in which data profiling may increase the quality of data?
A: Data profiling: The process of reviewing source data, understanding structure, content and…
Q: ake up this
A: Distinction between "computer architecture" and "computer organization" has become very fuzzy, if…
Q: What precisely is XML? XML has a wide range of uses.
A: What precisely is XML? XML represents extensible markup language. A markup language is a bunch of…
Q: What are your thoughts on whether social media networks like Facebook should provide law enforcement…
A: Intro Facebook: College administrations and law enforcement organisations are using the social media…
Q: What is the difference between static and dynamic memory allocation?
A: Introduction: The computer system receives instructions from programmes. The program's primary goal…
Q: Q2: Develop a computer program in F90 to form the matrix A(n, n) as shown below. The program also…
A: Code in step 2
Q: Based on the master theorem, what is the solution to T (n) = 3T (2/2) + n² (n²) oe (n² logn) (n³) e…
A: Master's theorem: To apply master's theorem, the recurrence relation must be in this form: T(n) =…
Q: Wireless networks confront a wide range of issues due to their intrinsic characteristics. In your…
A: The Answer is in step2
Q: What points of view should be taken into account when making software system models?
A: Requirements is one of the most important phase of the development model. It is the stage where the…
Q: is this statement correct or not. A process is a collection of non related work tasks. write the…
A: We must write the proper solution to the provided statement.
Q: Ask the user for an Integer input called “limit”: * write a while loop to write even numbers…
A: Use a while loop to check condition whether limit has been reached 0 or not and then use another…
Q: java This method gets an Arraylist of Integers and a number(Integer). It returns an Arraylist. It…
A: public static ArrayList<Integer> removeInst(ArrayList<Integer> r,Integer n)…
Q: What does this new data source mean, and why is it important?
A: New data source means it is a type of data source where the information is stored. It links data…
Q: Describe the predictive analytics method and offer an example of how it is applied in practise.
A: Intro Predictive analytics is the process of using using the data analytics to make the data…
Q: Assume there is a database system that is unbreakable. Is the recovery manager required for this…
A: Intro Website Acquisition Manager In the event of data loss, performance failure, disk failure, or…
Q: Find as for the sequence defined by ak+1 = 2ak - 1 with ao = 3.
A: Dear Student, The answer to your question is given below here we have used the substitution method -…
Q: Do you have a working knowledge of the following three forensic software programmes and what they…
A: The following three forensic computer procedures must be carried out: 1. Acquiring (without…
Q: What is the most important mechanism that database designers can employ to influence database…
A: Introduction: Database designers utilise many mechanisms to impact database performance.…
Q: Explain why an index is only useful if the values of an attribute vary sufficiently.
A: Introduction: Use of an index with a range of values
Q: public class Base { public void PrintName() { System.out.println("Base"); static void PrintClass() {…
A: The full code for the first problem is :public class Base { public void PrintName() {…
Q: Is it a method of explaining how a computer works? Then we'll presumably discuss about computer…
A: Intro Keyboards: Input devices are used to provide computer instructions. Input devices provide data…
Q: Why is the MetaData component so crucial in the architecture of a data warehouse infrastructure
A: Introduction Processing done in the data warehouse is distinct from processing done on operational…
Q: Write a while loop that prints userNum divided by 2 (integer division) until reaching 1. Follow each…
A: Iterate the loop as long as the number is greater than 1 In that case we will exit immediately if we…
Q: How may you use an existing system's model? Explain why such a system model does not necessarily…
A: Given: How can you make use of the model of an existing system? Explain why such a system model does…
Q: To what degree may sentiment analysis results be trusted? What method, in your opinion, is used to…
A: Intro The accuracy as well as the procedure of sentiment analysis. Analysis of sentiment refers to…
Q: What do you think the Internet is worth to people? How important do you believe the Internet is…
A: Introduction: To begin with, the internet has a significant influence on our day-to-day lives.…
Q: Distinguish between RIP and EIGRP.
A: Introduction: The Routing Information Protocol (RIP) is developed from the Bellman-Ford algorithm,…
Q: 5- When de we need to use private keyword in C++ class? 6- A derived class can be a base class for…
A: 5) When you need private keyword in c++ class 6) Derived class can be a base class for other class…
Q: In Networking, What is Switch and also tell the role of it?
A: Question is asking for handwritten answer of role and definition of switch in networking.
Q: What results may be expected if each instance of a Random object is generated using the same seed…
A: A seed value chooses a specific random number stream from a range of possible random number streams.…
Q: Which of the individual components of a high-end gaming computer consumes the most amount of power…
A: The solution to the given question is: A gaming computer is a specially configured personal computer…
Q: What exactly is a semaphore, and what are the various types of semaphores? Give examples of its…
A: Introduction: Semaphore is a technology that allows processes to more sophisticatedly coordinate…
Q: tablished TCH and sending da hs and there are ng transmission rtised window is at the client is 6
A:
Q: What distinguishes database clustering from database mirroring?
A: Introduction: What distinguishes database clustering from database mirroring? This page explains…
Step by step
Solved in 3 steps with 2 images
- When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first months interest on $1,000 is 1000 0.006 = 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 6 = 19. This means after making the first payment, the loan amount is 1,000 19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 0.006 = 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 5.89 = 19.11 and the remaining balance after the second payment is 981 19.11 = 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then outputs the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first months interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)c programing language A store asks you to write a C program to make cash payment easier for cashiers. Write a Cprogram that divides the amount of money entered by the cashier into 200 TL, 100 TL, 50 TL,20 TL, 10 TL, 5 TL, and 1 TL banknotes and shows the number of each banknote. Your programshould have an output as given below.Using c++ Write a program that computes and displays the charges for a patient’s hospital stay. First, the program should ask if the patient was admitted as an inpatient or an outpatient. If the patient was an inpatient, the following data should be entered: The number of days spent in the hospital The daily rate Charges for hospital services (lab tests, etc.) Hospital medication charges If the patient was an outpatient, the following data should be entered: Charges for hospital services (lab tests, etc.) Hospital medication charges Use a single, separate function to validate that no input is less than zero. If it is, it should be reentered before being returned. Once the required data has been input and validated, the program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the inpatient data, while the other function accepts arguments for outpatient data. Both functions should return the total charges
- An Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance premium, based on driver's age and the number of accidents that the driver has had. The basic insurance charge is 500 Rs. There is a surcharge of 100 Rs if the driver is under 25 and there is an additional surcharge for accidents as can be seen below: No. of accidents Accident Surcharge 1 50 2 125 3 250 4 375 5 575 6 or more No insuranceNote: C++ language Write a program that determines the price of an item after discount according to the following rule: if the original price is greater than 100.00 then the discount is 10%, otherwise the discount is 7% in Summer seasons and 5% in Winter seasons. The program should read: 1- the original price of an item and 2- the current season (s for Summer, p for Spring, f for Fall and w for Winter) and prints on the screen the price after the discount.A business law class of 25 students takes a midterm exam that has 100 true- or-false questions. The instructor, who is also a computer fanatic, wants to devise a program to obtain a printout with the student's name, score, and letter grade, according to the following schedule: 50 or below F 51 - 55 D 56 – 60 C- 61 - 65 66 – 70 C+ 71 - 75 B- 76 - 80 81 - 85 86 – 90 B B+ А- 91 - 95 A 96 – 100 A+ In addition, the instructor wants to include the total number of students scoring each of the 11 possible grades. How would you use the FORTRAN language to solve his problem?
- An Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance premium, based on driver's age and the number of accidents that the driver has had. The basic insurance charge is 500 Rs. There is a surcharge of 100 Rs if the driver is under 25 and there is an additional surcharge for accidents as can be seen below: No. of accidents Accident Surcharge 1 50 2 125 3 250 4 375 5 575 6 or more No insurance Note: Use switch cases when you check the total number of accidents.Written in C# Language Please! A fixed percentage of water is taken from a well each day. Request values for W and P where: ▪ W is the amount (in litres) of water in the well at the start of the first day ▪ P is the percentage of the water in the well taken out each day Write a program to print the number of the day, the amount taken for that day and the amount remaining at the end of the day. The output should be terminated when 30 days have been printed or the amount of water remaining is less than 100 litres, whichever comes first. For example, if W = 1000 and P = 10, the output should start as follows: Day Amount Taken Amount Remaining 1 100 900 2 90 810 3 81 729 Note: The amount taken and amount remaining should be displayed to 2 decimal places.In C++ language, create a program that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example that should be used/followed when executed The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters. Please make sure the average is ROUNDED 2 places to get the output 16489.74 instead of 16489.73
- C++ Programming Exercise: A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: a. The total number of of units. b. The rent to occupy all the units. c. The increase in rent that results in a vacant unit. d. Amount to maintain a rented unit. The program then outputs the number of units to be rented to maximize the profit.Using C++ Dice game with varying dice (d4-d20) The game will consist of two or more players. Each player will attempt to reach a set number (say 100) By rolling dice and adding up the results of the dice roll. if the player rolls a certain number (in this case a 6) then the player gets two more tries, if they roll a 6 two more times, they lose their turn and gain no points that round. The goal to get to 100 first. During a round, each player takes a turn. At the beginning of the game, each player rolls a dice, with the higher roll going first each round. A player’s total score is the sum of their turn scores, the users will have the ability to choose either to stop or to continue after first roll, if a player decides to stop, then their turn ends and their score for that turn is their maximum roll during that turn, if the player decides to continue, they roll the dice again. At the end of the game the program should display the winner your program should have at least four of…using c++ Write a program that computes and displays the charges for a patient's hospital stay. First, the program should ask if the patient was admitted as an in-patient or an out-patient. If the patient was an in-patient, the following data should be entered: The number of days spent in the hospital The daily rate Hospital medication charges Charges for hospital services (lab test, etc.) The program should ask for the following data if the patient was an out-patient: Charges for the hospital services (lab test, etc.) Hospital medication charges The program should use two functions to calculate the total charges. One of the functions should accept arguments for the in-patient data, while the other function accepts arguments for out-patient information. Both functions should return the total charges.