Write a C program using if-else. The program reads one integer number k. Then it reads one real number f. According to k, the program will calculate the value of n and prints the result according to the following table: k Required Calculation 4 or 5 n= fraction numerator 3 f minus 6 over denominator 7 end fraction space. straight pi Any other value Wrong entered number
Q: Q1 (vs 2). Define and explain morals from the point of view of its definition from its various…
A: NOTE :- Below i explain the answer in my own words by which you understand it well. The moral…
Q: What do you know about the Meta Data Repository and where it is located in the DWH environment?…
A: Introduction: An Enterprise Data Warehouse (EDW) is another name for a Data Warehouse (DWH) (EDW). A…
Q: Write java a BinaryTreeUtils class with the following methods: • size(tree) – the number of nodes in…
A: In the following step, the input, output and the code screenshot along with the output has been…
Q: Metacognition means Select one: a. you can learn and grow academically with effort. b. thinking…
A: Metacognition is basically the process which helps in thinking about the one self's own thinking and…
Q: compute the result of each Java expressions 4 * 2 − 2
A: The expression given- 4*2-2
Q: There should be a list and description of four potential vulnerability intelligence sources. In your…
A: INTRODUCTION: What are sources of vulnerability intelligence available? Sites dedicated to…
Q: What if, despite your best efforts, there is no maximum flow algorithm that can handle parallel…
A: Introduction: We just add a new "super-source" s and a new "super-sink" t to handle this kind of…
Q: Make a list of the five database management functions. Explain the consequences of not fulfilling…
A: DBMS: A database management system (DBMS) is computing software that manages enormous amounts of…
Q: What is the background of Alan Turnig?
A: Alan Turing was one of the most persuasive British figures of the twentieth century. In 1936, Turing…
Q: Give an example of how the relationships between ODBC, OLE DB, and ADO are formed.
A: ODBC stands for Open Database Connectivity and it is a open source API for accessing the database.…
Q: Queue (in an application) that accepts as parame a1 and q2) to be filled as described above. Write…
A: The code is given as,
Q: Draw the Gantt Chart of the sequence of execution of the processes using Round Robin Scheduling…
A: Given quantum time is 3 and arrival time and also in the question it is explicitly mentioned…
Q: What are the four basic data types in C, and how many bytes do they usually take? How may the…
A: The four fundamental data types in C are as follows: int char float double
Q: Question 14 Which of the following applies to the IP address 127.10.10.130? O Multicast O Network…
A: Packet is a network layer protocol data unit however Frame is a data link layer protocol data unit.…
Q: Write a Java program to take a list of string from the user & print a list where each string has all…
A: i am giving you a example for sorting a string....try to follow that and then you can write your…
Q: Which of the following applies to the IP address 224.0.0.10? O Multicast O Network O Host O Private…
A: Let us see the answer below.
Q: How large was the computer when it was invented?
A: The Answer is in step-2.
Q: The topologies of five typical networks are to be outlined below. In your opinion, which one can you…
A: Introduction: Describe the topologies of five different types of networks. Which do you think is the…
Q: he tasks shown in the table late the Utilization he help of Gantt chart, prove that these tasks are…
A:
Q: 1. Create a script that will take 4 vertices (total 8 numbers) then make decision whether those…
A: The Answer for the given question is in step-2.
Q: In what year did the first personal computer become commercially available?
A: Introduction: Computer Personal A personal computer is a computer that is intended for use by a…
Q: What skills do you think are needed in the call center industry
A: 1. Lucidity in CommunicatingKeeping discussions clear and useful aides both in settling clients'…
Q: Computer Science You have been hired as a systems analyst to work with two other analysts. Your…
A: Name: apply for post office box Actors: user Description: For availing PO services user needs to…
Q: It's important to understand the advantages and disadvantages of cloud storage before deciding…
A: Cloud Computing:- Instead of buying a physical data centers and servers, cloud help you to access…
Q: 1/ Write a program in C++ to find and print the sum of the following series for n terms 11 2. 31 4.
A: Your C++ program is given below as you required with an output.
Q: نقطة واحدة The default appearance of the Desktop in MATLAB three windows :will appear. They are…
A: Option 1 is correct.
Q: The reason why storage businesses put their lockers up for sale without first exposing what's inside…
A: Introduction: Auction: An auction is a process used to buy and sell properties and products. The…
Q: What was the life narrative of Claude Shannon, and who was he?
A: What was the life narrative of Claude Shannon, and who was he?
Q: What skills do you think are needed in the call center industry
A: Communication skills (including continuous listening)The most important skill of a call center is…
Q: What qualities does Von Neumann's architecture possess?
A: INTRODUCTION: The CPU accepts instructions and data from an input or memory in most computer…
Q: wwhat capacitive touch is, or how it works.
A: Capacitive touch is a technology that uses capacitive sensors to detect or measure any thing that…
Q: Write a program that will calculate course and overall final mark (averages). You write a universal…
A: Algorithm: Step-1: StartStep-2: Declare two int variable courses and assignments and take input…
Q: Consider the relation R (A, B, C) with an index on attribute A. a. Give an example of a query that…
A: The answer is as follows.
Q: a) Explain what the program below performs line by line: import numpy as np import matplotlib.pyplot…
A: see the expiation of code line by line
Q: Distinguish between an impact printer and a non-impact printer. Give two examples for each person.
A: INTRODUCTION: Impact printer and Non-impact printer: Impact printers make images and figures by…
Q: 2. Fibonacci sequence is series of numerical terms where each term depends on two previous terms…
A: Solution: Given,
Q: Write a program that reads from the user the cinema ticket price and the number of history cinema…
A: Step 1 : Start Step 2 : In the main method , Take user inputs for the Ticket price and number of…
Q: Assume that you want to use WAN as your prefered wireless connection option. What makes this option…
A: Introduction: Arguments are statements that are backed up by reasons that are backed up by evidence.…
Q: An important part of every company's marketing strategy is enhancing and improving customer…
A: According to the definition of customer retention in marketing, it is the act of delighting current…
Q: Write a Python program that will ask the user for his/her weight (in kilograms), then compute and…
A: As given, we need to write a Python program that takes user weight(in kilogram) as input, compute…
Q: What does the acronym AGP stand for, and what does it mean?
A: Introduction: What exactly is an AGP (Aerosol Generating Procedure)We've all been bombarded with…
Q: Write a program that shows that the square of the normal is χ2
A: Given To know about the programming and program of square of number.
Q: Create a list of three kinds of hardware that are necessary to support a company's operations, and…
A: Introduction: Hardware Selection for Business: Choosing hardware for a business's operations…
Q: What exactly does the phrase "multitasking" refer to?
A: Multitasking refers to the simultaneously run multiple processes and tasks by software, hardware, or…
Q: The Network course There are four types of threats that exist to network management information…
A: Solution: The following four categories are typically used: Unstructured threats Structured…
Q: Is there anything more I need to know about the GPO deployment process?
A: Introduction: Group Policy Objects, or GPOs, are assigned in Active Directory by associating them…
Q: 3. Please provide professionally crafted solutions to the following: 1. For the following tree A B C…
A: Dear learner , hope you are doing well , I will try my best to answer this question. According to…
Q: Given the following infix expression: (A + B) / (C + (D - E)) Convert from infix to postfix…
A: Algorithm to convert Infix to Postfix Expression: Let, Y is an arithmetic expression written in the…
Q: Fill in the blanks by supplying the appropriate keywords, variables and symbols below. from math…
A: Ans : The code is from math import pi radius = int (input("What is the radius of the circle? "))…
Q: Make a list of the five database management functions. Explain the consequences of not fulfilling…
A: For the goal of providing an interface between the database, the user, and the applications, data…
Write a C program using if-else. The program reads one integer number k. Then it reads one real number f. According to k, the program will calculate the value of n and prints the result according to the following table:
k
Required Calculation
4 or 5
n= fraction numerator 3 f minus 6 over denominator 7 end fraction space. straight pi
Any other value
Wrong entered number
Step by step
Solved in 3 steps with 1 images
- 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 programming language, if the first and the second operands of operator + are of types int and float, respectively, the result will be of type A. int B. float C. char D. long intThis standard library function returns a random floating-point number within a specified range of values.a. randomb. randintc. random_integerd. uniform
- Homework 3: Write a program in c language to calculate two real numbers. The operation you are going to used are "add, subtract, multiple and division" and it is going to be optional to calculate the two numbers separately at cach time you are going to execute the program.In C++ Write a program that reads as inputs from the user: a bill amount number of people to split the bill with Calculate the following for tips from 18% to 22% inclusive: total tip amount total bill with tip amount per person total bill with tip per person The program will output the information as shown in the sample below Note: All money values should be displayed to 2 decimal places with a dollar sign to start. Output should read: Enter Bill Amount: 100.55Enter Number of People: 10 18% Total Tip: $18.10Total Amount: $118.65Tip / Person: $1.81Total / Person: $11.87 19% Total Tip: $19.10Total Amount: $119.65Tip / Person: $1.91Total / Person: $11.97 20% Total Tip: $20.11Total Amount: $120.66Tip / Person: $2.01Total / Person: $12.07 21% Total Tip: $21.12Total Amount: $121.67Tip / Person: $2.11Total / Person: $12.17 22% Total Tip: $22.12Total Amount: $122.67Tip / Person: $2.21Total / Person: $12.27Note:solution using c++ language Pre-Lab 01: Write a program that reads a positive integer x from the user. If x is even, the program prints all the odd numbers between 1 and x – inclusive - each on a separate line. If x is not even, the program prints all the numbers that are multiples of 4 between 1 and x+10 -inclusive -, each on a separate line. Note: As long as the user does not enter a positive number, the program will repeatedly ask the user to enter a positive number. The program must also print an error message "Error- TRY AGAIN – You should enter a positive integer to continue". Úe do.. while to insure the user input.
- this is a C++ question, not Python or Java Write a C++ program. A software company sells a package that retails for $109. Quantity discounts are givenaccording to the following table. Quantity Discount 10 - 39 10% 40 - 65 18% 66 - 90 27% 91 - 120 35% 121 – 199 42% 200 or more 48% Write a program using the if/else if/else statement that asks for the number of units soldand computes the total cost of the purchase and the savings due to the discountapplied. The program should also display the number of units purchased and thediscount in percentage. The output should include the following text:Number of units purchased is:Discount applied is:Total savings due to discount is:The total cost of the purchase is:Do NOT use the switch statement, any logical operator or anything that looks likeone in the program. You will not receive credit for the program if you do.Qn1: You are asked to write a simple C program that will accept an integer value in the range of 5-95 and as a multiple of 5 representing the number of cents to give to a customer in their change. The program should calculate how many coins of each denomination and display this to the user. Valid coin values are 50, 20, 10 and 5. Your solution (program and algorithm) should be modular in nature. This requires the submission of a high-level algorithm and suitable decompositions of each step. Note that for this problem the principle of code reuse is particularly important and a significant number of marks are allocated to this. You should attempt to design your solution such that it consists of a relatively small number of functions that are as general in design as possible and you should have one function in particular that can be reused (called repeatedly) in order to solve the majority of the problem. If you find that you have developed a large number of functions which each performs…Programing in c This program will calculate how pricy two products will be in 2030. It will begin by asking the user for the current price of the products. Then, it will print these values out, so the user knows the values were saved correctly. Next, it will ask the user for the inflation rate. After this, the program should multiply the current prices by the inflation rate. When done, it should print out the estimated-inflated values. For this task, you will need to define a structure with two members. These two members will be the products whose inflated price will be calculated. In the example I chose salt and soap. You will also need a local variable in main that holds the value of the inflated rate. Lastly, this process should be ran twice, each time for a different country. Therefore, you will need to declare two variables of the same structure type. One declaration for country1 and one for country2. The example is running estimated values for Mexico and Canada. You may implement…
- In C++, Write a program that asks the user to enter two numbers, obtains the two numbers from the user and prints the sum, product, difference, and quotient of the two numbers.Homework 3: Write a program in c language to calculate two real numbers. The operation you are going to used are "add, subtract, multiple and division" and it is going to be optional to calculate the two numbers separately at each time you are going to execute the program. Note / use : Printf , scanf, if , else if // instead of : cout, cinC++ PROGRAM Write a program that accepts an integer and prints the range of numbers starting from 1 to the input (inclusive). Prime numbers will be skipped. Sample Input: Enter a number: 10 Output: 1 4 6 8 9 10