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 C program that reads the income of a person and calculates his total tax according tothe following conditions: if his income is between 3 lac and 5 lac, then his tax-rate is 5% of hissalary; for the next 5 lac, tax-rate is 6%, for the next 10 lac tax is 7%, afterwards it is 8%.For e.g., if a person’s income is 22 lac, then his total tax = Tk. 0.05 *5 lac + Tk. 0.06 * 5 lac +0.07*10 lac + 0.08 * 2 lac = Tk. 1.41 lac.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 calculates and prints the bill for a cellular telephone company. The company offers two types of services: regular and premium, each with varying rates based on usage.The rates are computed as follows:Regular service:- $10.00 base charge with the first 50 minutes being free.- Charges for usage beyond 50 minutes are $0.20 per minute.Premium service:- $25.00 base charge with different rates for day and night usage: a. For calls made from 6:00 a.m. to 6:00 p.m., the first 75 minutes are free, and charges for usage beyond 75 minutes are $0.10 per minute. b. For calls made from 6:00 p.m. to 6:00 a.m., the first 100 minutes are free, and charges for usage beyond 100 minutes are $0.05 per minute.The program should prompt the user to enter an account number, a service code (as a character), and the number of minutes the service was used. A service code of 'r' or 'R' represents regular service, while 'p' or 'P' represents premium service. Any other character should be…
- Write a C/C++ program that asks the user for threeinteger marks. These are the student marks out of25 for class tests.Subsequently the program should ask the user fora big test mark out of 50. The final mark iscalculated with 50% class tests and 50% test mark.Test all values for validity. If a value is invalid, amessage should be displayed, and the user shouldbe repeatedly given chance to correct the input.The program should display the final mark, as wellas the symbol of the student (see Table 1.2).The program should repeat until the user enters“-1” for the first class test.After the user has entered “-1”, the program shoulddisplay a summary of the marks, i.e. the averagefinal mark, highest final mark, and lowest finalmark. The program also displays the number ofstudents that pass (mark>=50), pass withdistinction (mark>=75), and the number of studentsthat fail (mark<50).See Figure 1.2 for example outputWrite a c program that calculates the potential energy of 3 charges q1=1, q2=2, q3=3 located at points (1,2,3), (3,−4,−5), and (−4,2,−6) respectively. The units are coulombs forcharge and meters for coordinates. The energy is given by the expression; U=k(q1q2/r12+q2q3/r23+q1q3/r13) where rij is the distance between the charges qi and qj, and k= 9×109in SI units.Your program should print the result on the screen.Write a complete C++ program that reads a positive and non-zero integer then do the following: 1. Print all odd divisors (factors) of that integer in decreasing order. 2. Print the count of all even divisors. 3. Keep dividing the previous number by 2 until that number reaches zero then print how many times the division was executed. • Example: If the number 20 The odd divisor of 20 is 5, 1 in decreasing order The count of all even divisor is 4 The division was executed 10 times
- Create a program in c++ 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 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.73Write a c++ program that asks the user to enter a number and then prints all the divisors of thatnumber. A divisor of an integer, also called a factor of , is an integer that can be multiplied bysome other integer to produce . An integer is divisible by another integer if is a factor of , so thatdividing by leaves no remainder. For example:Enter a number: 12The divisors of 12 are = 1, 2, 3, 4, 6, 12Enter a number: 7The divisors of 7 are = 1, 7Write 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.
- Write a C program that reads an integer from the user (keyboard), namely n. Your program should print all positive numbers that are smaller than n and satisfy the following condition: If we denote the number with a and sum of its digits b then a+b is a perfect square. You should print the numbers in ascending order and print their digits separated by “-“ symbol from the least significant to the most significant on the same line as the number. At the end of each line you should also print a+b. Example: If the user enters n : 150, then the output should be as follows: 2 2 4 8 8 16 17 7-1 25 27 7-2 36 38 8-3 49 72 2-7 81 86 6-8 100 135 5-3-1 144Write a C program that reads an integer from the user (keyboard), namely n. Your program should print all positive numbers that are smaller than n and satisfy the following condition: If we denote the number with a and sum of its digits b then a+b is a perfect square. You should print the numbers in ascending order and print their digits separated by “-“ symbol from the least significant to the most significant on the same line as the number. At the end of each line you should also print a+b. Example: If the user enters n : 150, then the output should be as follows: 2 2 4 8 8 16 17 7-1 25 27 7-2 36 38 8-3 49 72 2-7 81 86 6-8 100 135 5-3-1 144 but i cannot use while loop and #include <math.h>Write a C++ program that Ask user to enter an integer number and then determine whether the number is prime or not? Note: a number is prime that it is only divisible by 1 and itself. such as 3,5,7,13,..