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
- (Numerical) Write a program that tests the effectiveness of the rand() library function. Start by initializing 10 counters to 0, and then generate a large number of pseudorandom integers between 0 and 9. Each time a 0 occurs, increment the variable you have designated as the zero counter; when a 1 occurs, increment the counter variable that’s keeping count of the 1s that occur; and so on. Finally, display the number of 0s, 1s, 2s, and so on that occurred and the percentage of the time they occurred.Write a C++ Program for the given instructions: Instructions Write a program to implement the algorithm that you designed in Exercise 19 of Chapter 1. Your program should allow the user to buy as many items as the user desires. Instructions for Exercise 19 of Chapter 1 have been posted below for your convenience. Exercise 19 Jason typically uses the Internet to buy various items. If the total cost of the items ordered, at one time, is $200 or more, then the shipping and handling is free; otherwise, the shipping and handling is $10 per item. Design an algorithm that prompts Jason to enter the number of items ordered and the price of each item. The algorithm then outputs the total shipping and handling fee, and the billing amount. Your algorithm must use a loop (repetition structure) to get the price of each item. (For simplicity, you may assume that Jason orders no more than five items at a time.)Write a C++ program that computes the rental fees of N cars; N is the first input by the user. For each car the user should input the car category and the number of rental days. Note that an 11% VAT tax is added to the car rental fees. At the end the program should output the following information: The daily income (the sum of all the cars rental fees). The percentage of clients who rented cars for more than 10 days.
- In C++, write a program that inputs three integers from the keyboard and prints the sum, average, product, smallest and largest of these numbers. The screen dialog should appear as follows: Input three different integers: 13 27 14 Sum is 54 Average is 18 Product is 4914 Smallest is 13 Largest is 27Write 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…Implement C programs involving the use of while, do..while and for loop statement. Make a C program that prompts the user to input a positive integer value, and compute the following sequence: If the number is even, halve it; if it's odd, multiply by 3 and add 1. Repeat this process until the value is 1, printing out each value. Finally print out how many of these operations you performed.
- Construct C++ program to solve a given problem using appropriate programming techniques. Write a program that will calculate and print bills for the city power company. The rates vary depending on whether the use us residential, commercial, or industrial. A code of R means residential use, a code of C means commercial use, and a code of I means industrial use. Any other code should be treated as an error. The rates are computed as follows: R: $6.00 plus $0.052 per kwh used. C: $60.00 for the first 1000 kwh and $0.045 for each additional kwh. I: Rate varies depending on time of usage Peak hours: $76.00 for first 1000kwh and %0.065 for each additional kwh. Off-peak hours: $40.00 for first 1000 kwh and $0.028 for each additional kwh. Your program should prompt the user to enter an integer account number, the use code (type char), and the necessary consumption figures in whole numbers of kilowatt-hours. Your program should display the amount due from the user.Construct C++ program to solve a given problem using appropriate programming techniques. Write a program to process a collection of daily high temperatures. Your program should count and, print the number of hot days (high temperature 85 or higher). the number of pleasant days (high temperature 60-84), and the number of cold days (high temperatures less than 60). Use trip value of -99 to stop the loop. It should then display the category of each temperature and display also highest and lowest temperature. Test your program on the following data: 55 62 68 74 59 45 41 58 60 67 65 78 -99In c language Using function strtod(), Create a character string that contains the following string: “78.3% is the average success rate” Divide this string into double and display the rest of the string The output will be: The original string is: 78.3% is the average success rate The extracted double value is: 78.3 The remainder of the string is: % is the average success rate
- write a C program XYZ Telegram Company charges P18.50 for a telegram that do not exceed 12 words and P1.50 for every succeeding word, plus P5.00 service charge if type of delivery is special. Create a program that accepts the number of words in a telegram and the type of delivery ‘S’ for special if the customer desires for a special delivery. Compute and display the customer’s charge.Write a C program that accepts two integers from the user then Display a menu and return the choice of the user: You must write functions for each of the entries in the Menu. Write a recursive function for number 6. For functions 5 and 6, pass the first integer to the function. Menu… [1] Sum [2] Difference [3] Product [4] Quotient [5] Square [6] Factorial [7] GCD [0] Exit Choice:Write a menu driven C program (not java or python) with the following choice of submenu items:Enter 1 to convert from Celsius to FahrenheitEnter 2 to convert from Fahrenheit to CelsiusSelect 1 or 2:Use a function Celsius which returns Celsius equivalent of a Fahrenheit temperature.C = (5/9)*(F-32)Use a function Fahrenheit which returns Fahrenheit equivalent of a Celsius temperature.F = (9/5)*C + 32Use the functions above to write a program which converts from Celsius to Fahrenheit or fromFahrenheit to Celsius and displays the result. Your program should repeat as long as the user enters 1 or 2 as the choice. Sample run 1: Enter 1 to convert from Celsius to FahrenheitEnter 2 to convert from Fahrenheit to CelsiusSelect 1 or 2: 1Enter temperature in Celsius: 55.00 Celsius = 41.00 FahrenheitEnter 1 to convert from Celsius to FahrenheitEnter 2 to convert from Fahrenheit to CelsiusSelect 1 or 2: 2Enter temperature in Fahrenheit: 3333.00 Fahrenheit = 0.56 CelsiusEnter 1 to convert from…