Write a C program that calculates the Total Money to be paid by a customer of a supermarket if she/he has bought a Quantity (q) of an item with a Unit Price (p). Sample Dialog Format: Enter bought quantity : Enter the unit price in OMR: 8.4 Total money to be paid: 25.2 OMR Program 3.
Q: In the context of multimedia, what is a stage? Justify each of them. computer science
A: In the context of multimedia, what is a stage?
Q: What are the best practices for lowering the energy usage of computer devices?
A: Introduction: Acquiring an 80 percent + certified power adapter is the simplest and most effective…
Q: Describing the process of planning and developing an excellent Web site is a good way to start.
A: Introduction Before launching an internet site, the look method is important to making sure…
Q: Discuss five security best practices for online applications.
A: Introduction: It is software programmes that are the weakest link in its security stack. According…
Q: When it comes to communication, what is the protocol?
A: Introduction: Telecommunication Network Protocol: Telecommunication protocols play a significant…
Q: Write a C++ program that reads in temperature in Celsius and displays temperature in Fahrenheit;…
A:
Q: List and briefly describe three different sorts of reports (outputs) that may be generated by a…
A: INTRODUCTION: Requirements: Identity and briefly discuss three distinct types of system reports…
Q: Explain why encrypting the passwords on the router is necessary, and write down the relevant command…
A: Introduction: When a person or device attempts to connect, it is asked for a password or network…
Q: Describe the relationships between the Isa and Hasa classes. When creating a class design, how would…
A: EXPLANATION: Because a specialized class "is" another class, it shares the ISA relationship with…
Q: Maite a Cpp prognam to check whether a wsen entened string endo with ly" or noti
A: INTRODUCTION: Here we need to write a c++ program to check whether a user entered string ends with…
Q: Make a list of things to think about while buying a mobile computer. Explain why built-in ports and…
A: Computer on the go: It's a portable computer that we can take with us wherever we go. Consider the…
Q: In a few words, explain what memberwise assignment entails.
A: Solution: Given, explain what memberwise assignment entails.
Q: What are the ramifications of a data leak on cloud security? What are some examples of possible…
A: What are the ramifications of a data leak on cloud security? What are some examples of possible…
Q: What does IAM (identity and access management) and the shared responsibility model imply for cloud…
A: Introduction: A cloud security paradigm specifies the security duties of both the cloud computing…
Q: Is there a significant difference between embedded systems and general-purpose computers?
A: The embedded systems are used to control a specific function within a device. A…
Q: Mrite a Cpp program to check whether a woen entered otring enda with ly" on noti
A: substr() is used to find the substring of string it takes two parameters one is position and size…
Q: What's the difference between version control software that's distributed and software that's…
A: Introduction: Version control is a technique for tracking code changes so that if anything goes…
Q: Suppose you have the following set of clauses: CNF = {1,2,3},{1,2},{2,3,4},{-1,2,-3,-4),{1,-2,-3,…
A: According to the information given:- We have to apply DPLL algo in order to check the clause set can…
Q: limits the number of times that other processes allowed to enter their critical sections after a…
A: Given:
Q: Describing the process of planning and developing an excellent Web site is a good way to start.
A: Introduction: It may sound like common sense, but you'd be amazed how many e-commerce operations are…
Q: Six characteristics of Information are listed below.
A: Following is the 6 characterstics of information. Accuracy. Validity. Reliability. Timeliness.…
Q: What is the type of computer memory and how does t work?
A: Introduction: Provided: The background of the subject we must consider is given to us.The goal is to…
Q: Prove that ⊢ (∃x)(A → B) → (∀x)A → (∃x)B.
A: ⊢(∃x)(A → B) → (∀x)A → (∃x)B. Any alphabetic character is allowed as a propositional constant,…
Q: Discuss situations where the least frequently used (LFU) page-replacement algorithm generates fewer…
A: The Answer is in step2
Q: What is the meaning and function of the central processing unit (CPU)? Explain your point of view!
A: Explanation : According to the question, we must describe the meaning and purpose of the central…
Q: What strategies and technologies are available for dealing with pre- and post- release defects?
A: The Answer is in given below steps
Q: 1. Create a file called QuicksortTester.java in which to write your code. 2. Copy the skeleton code…
A: Quicksort Quicksort is a recursive algorithm, that breaks the original array into smaller arrays…
Q: Hardware is the phrase used to describe all of the input and output devices in a computer system.…
A: Computer hardware refers to all of the physical components of a computer, whether it's analogue or…
Q:
A: Begin Take the two values x and y. Compute the sum. Print the sum. End
Q: John's barn has a fence consisting of N consecutive sections numbered from left to right from 1 to…
A: Process of Code Execution: Firstly we take the input for the test case and run the loop over it.…
Q: Hardware is the phrase used to describe all of the input and output devices in a computer system.…
A: Computer Hardware is any part of the computer that we can touch these parts.
Q: Using the hash function hash( s, M) = (so * a' + s1 * a'¬1+ •… + St-1 * a + s; * 1) %M where a=37,…
A: According to the information given:- We have to use hash function and calculate the first index…
Q: How can a database be made more user-friendly for both administrators and programmers?
A: Introduction : This may refer to anything from web browsers to browser plug-ins. Because this is the…
Q: The tripwire program is an example of a host-based intrusion detection system. This tool examines…
A: The answer is given in the below step
Q: Give a non-recursive version of the binary search tree operations findMin, findM
A: c++ code : // C++ program find maximum and minimum element #include <bits/stdc++.h> using…
Q: Write a Matlab code to find the angle (theta) between two vectors
A: The angle between two vectors is the inverse cosine of ratio of dot product of the vectors to the…
Q: What is a good configuration for each server if the operating system is not patched on a regular…
A: Introduction: Configuration of the server network: Reasonable Server configuration responsibilities…
Q: In System Design, you should be able to identify four design models.
A: The answer of this question is as follows:
Q: A string is given that contains digits only. Write a C++ function that takes a string as the…
A: Given: A string is given that contains digits only. Requirement: Write a C++ function that takes a…
Q: Opening new branches across the country, a tiny manufacturing company expands. Currently, each…
A: According to the information provided in the above question that A Small manufacturing company is…
Q: b. Suppose you are gifted a collection of 3" pokéballs; all of the the pokéballs have the same size…
A:
Q: Demonstrate the understanding and use of the technology layers
A: The solution to the given problem is below.
Q: Describe the steps required in translating a C program into a representation that can be run…
A: A compiler is used to convert the code written in a high level programming language into a binary…
Q: Q1) Write a script MatLAB program to find : 1. print the variable (x) as approximation by ratio of…
A: 1. Code: x=pi r=rat(x) Screenshot: Output:
Q: Why do we need network architecture in the field of telecommunications?
A: Introduction: The design of a computer network is known as network architecture. It is a…
Q: computer is an electrical device capable of swiftly and correctly storing, retrieving, and…
A: A computer is an electrical device capable of swiftly and correctly storing, retrieving, and…
Q: While internet or electronic banking has enabled borderless, more efficient, and lower cost banking…
A: Introduction: The Internet is the most convenient and effective way to get important information for…
Q: can obtain the remainder of this division by using the % operator. For example, 10 % 3 is 1. In C++,…
A: I give the code , screenshot as well as explanation in c++
Q: How does a software handle the conversion of a non-numeric text to a number when it employs the…
A: ALGORITHM:- 1. Declare and initialise a string with some value and it becomes non-numeric. 2.…
Q: What strategies and technologies are available for dealing with pre- and post- release defects?
A: Introduction: A post-release issue is discovered after the public release of the associated software…
Step by step
Solved in 4 steps with 2 images
- 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 Hospital medication charges • Charges for hospital services (lab tests, etc.) The program should ask for the following data if the patient was an outpatient: • Charges for hospital services (lab tests, etc.) • Hospital medication charges 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 information. Both functions should return the total charges and display it for the user. After the total charges have been calculated and displayed, write the result to a file, PatientReport.txt. You can use the techniques you learned in Chapter…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• Charges for hospital services (lab tests, etc.)• Hospital medication charges.If the patient was an out-patient 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 re-entered 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 in-patient data, while the other function accepts arguments for out- patient data. Both functions should return the total charges.JAVA CODE PLEASE Functions With No Parameters and Return Values Quiz by CodeChum Admin Create a function named banner that prints “CodyChum” with a newline. In the main function, write a program that accepts an integer input which would serve as an inclusive stopping point of a loop iteration that starts at the value of 1. If the number that loops through the range is divisible by either 2 or 3, then call the banner function, otherwise just print the number. Input 1. One line containing an integer Output First line is the integer user input. Succeeding multiple lines containing an integer or “CodyChum” 10 1 CodyChum CodyChum CodyChum 5 CodyChum 7 CodyChum CodyChum CodyChum
- Write a c++ program to assign passengers seats in an airplane. Assume a small airplane with seat numbering as follows: 1 A B C D 2 A B C D 3 A B C D 4 A B C D 5 A B C D 6 A B C D 7 A B C D The program should display the seat pattern, with an 'X' marking the seats already assigned. For example, after seats 1A, 2B, and 4C are taken, the display should look like this: 1 X B C D 2 A X C D 3 A B C D 4 A B X D 5 A B C D 6 A B C D 7 A B C D After displaying the seats available, the program prompts for the seat desired, the user types in a seat, and then the display of available seats is updated. This continues until all seats are filled or until the user signals that the program should end. If the user types in a seat that is already assigned, the program should say that that seat is occupied and ask…C++: Create a basic contact book where you can store and then retrieve contact information.The information that (at least) should be able to be stored is name (postal) address e-mail address telephone number Birthday, other. It should work as follows. The user should be able to choose what he wants to do, for example : add contact or find the phone number of a given contact. There are several ways to implement this, for example: • To have a menu where the user can choose by entering a number corresponding to one of the menu options. Exit should be one of the options. • where the user gives commands for what to do. The functionality that must exist is • to add a contact, • to delete a contact, • to search for a contact. The contact book should be saved in a file so that it does not disappear between runs of the program.Design a program to do the administration for a fun run competition. Participants can run a distance of 5 kilometers, 10 kilometers or 15 kilometers. Ask the user if they wish to register a participant (Y or N). Ask whether the person is a member (Y or N)Ask the distance that the person wishes to run (5, 10, 15). Registration fees for club members are as follows:5km = R 65.0010km = R 100.0015km = R 150.00 Non-members:For the 5 and 10 kilometers distances, the participation fees must be increased by 25%For the 15 kilometer distance the registration fee is double that of club members. Use the given criteria and input information to calculate the registration fee. The program must keep track of the total number of participants per distance category, the total amount received per distance category and total amount received.The program must also calculate the total number of participants and the total number of club members who registered.The program must identify the category with the…
- Design a program to do the administration for a fun run competition. Participants can run a distance of 5 kilometers, 10 kilometers or 15 kilometers. Ask the user if they wish to register a participant (Y or N).Ask whether the person is a member (Y or N)Ask the distance that the person wishes to run (5, 10, 15). Registration fees for club members are as follows:5km = R 65.0010km = R 100.0015km = R 150.00 Non-members:For the 5 and 10 kilometers distances, the participation fees must be increased by 25%For the 15 kilometer distance the registration fee is double that of club members. Use the given criteria and input information to calculate the registration fee.The program must keep track of the total number of participants per distance category, the total amount received per distance category and total amount received.The program must also calculate the total number of participants and the total number of club members who registered.The program must identify the category with the…write a program in python Write a program that will allow a student to enter their name and then ask them to solve 10 mathematical equations. The program should display two random numbers that are to be added, such as: 247 + 129 The program should allow the student to enter the answer. The program should then display whether their answer was right or wrong, and accumulate the right values. After the 10 questions are asked, calculate the average that was correct. Then display the student name, the number correct, and the average correct in both decimal and percentage format. In addition to any system functions you may use, you might consider the following functions: A function that allows the student to enter their name. A function that gets two random numbers, anywhere from 1 to 500. A function that displays the equation and asks the user to enter their answer. A function that checks to see if the answer is correct and accumulates the number correct. A function that calculates the…Write a C++ program that creates a word-search puzzle game where the user should find the hiddenwords in a square array of letters. Your program should first read from the user their choice for thegame: a) easy, b) medium, c) hard, d) exit the game. If the user selects easy, then the 6x6 puzzle,shown in Figure 1, will be generated and displayed to the user. If the user selects medium, then the14 x 14 puzzle shown in Figure 2 should be generated and displayed and lastly, if the user selectsthe hard choice, the program should generate a random puzzle, filling the square array of 20 x 20using random characters/words. Then your program should repeatedly read from the user, a word to be searched for in the puzzle,the row and column number where the word starts from and which orientation to search for. Thewords can be searched vertically (top to bottom), horizontally (left to right), diagonally (upper leftto lower right) and diagonally (upper right to lower left)
- Write a C++ program that creates a word-search puzzle game where the user should find the hiddenwords in a square array of letters. Your program should first read from the user their choice for thegame: a) easy, b) medium, c) hard, d) exit the game. If the user selects easy, then the 6x6 puzzle,shown in Figure 1, will be generated and displayed to the user. If the user selects medium, then the14 x 14 puzzle shown in Figure 2 should be generated and displayed and lastly, if the user selectsthe hard choice, the program should generate a random puzzle, filling the square array of 20 x 20using random characters/words.Then your program should repeatedly read from the user, a word to be searched for in the puzzle,the row and column number where the word starts from and which orientation to search for. Thewords can be searched vertically (top to bottom), horizontally (left to right), diagonally (upper leftto lower right) and diagonally (upper right to lower left) Words to look for in…Create a C++ hotel reservation program with a class that ask the user to enter a room number, the number of guests to occupy a room and also change the status of the room to reflect the number of guests that just checked in. Additionally, implement a loop asks the user if they want to search for a different room number. Display the information about the room in a nice format. The output should look something like this: Please enter the room number: 104 Please enter the number of guests: 10 Room number: 104 Guests in the room: 4 Room status: 4 occupants Would you like to search for another room number ? Yes/NoWrite a C# program that plays a guessing game with the user. Your program should select a random number between 1 and 50 and then let the user try to guess it. The program should continue asking the user for a number until he guesses correctly. (See below for some tips on random numbers). CHALLENGE #1: Modify your program so that it only allows the user 10 guesses, and then declares them to be an inadequate guesser if they haven’t gotten it correct. Your program should output the random number chosen. CHALLENGE #2: Modify your program so that after they guess a number (or get declared inadequate, if you do Challenge #1) that it asks them if they want to play again, and responds accordingly.