Suppose a, b, and sum are int variables and c is a double variable. What value is assigned to each variable after each statement executes? Suppose a = 3, b = 5, and c = 14.1
Q: Write a function my_min(L) that takes an array L of real numbers or integers and returns the smalles...
A: Programming instructions: Define the array with values. Call the function and pass the array with i...
Q: Show the structure of the file of Figure 13.4 after each of the following steps: Insert (34556, Thom...
A: Explanation: When an insertion occurs, it will look for the first empty space of the file. Then att...
Q: What method do you call to open a text file to read data from it?
A: Text file: Text files are used to store the characters. The text files uses bits to store the cha...
Q: Answer only 3 parts: b, c and d.
A: b. Pretest loop: A pretest loop is one where the block needs to be repeated until the given conditio...
Q: The full stereo computer vision problem consists of taking two images of a scene (a left-eye image a...
A: Program code: def lcs(X, Y, m, n): # if any of the list is empty then return 0 if m == 0 or ...
Q: My homework is I have to write a java program that calculates how fast a bucket will fill up. I will...
A: Here, in this program, you need to calculates how fast a bucket will fill up. Program inputs which ...
Q: consider the udp header 05 31 00 0e 00 1a e3 11. what is the length of the data
A: The total length of the data from the given (05 31 00 0E 00 1A E3 11) UDP header is 18 bytes.
Q: A sales event at Trader Jane's is reducing some items by 25%. Store that value to a properly named c...
A: Since you are not mentioning the programming language, here we are using Python to complete the prog...
Q: please, solve this problem
A: The program prints Cube, Square and Square Root of the given number. It uses math.h library for usin...
Q: Answer in Python: 1. Write code that prints a greeting in the following format: Hi, xxx! where xxx...
A: Python language: Python is a high-level, object-oriented, and interpreted programming language. Prog...
Q: c++ data structures queue. write a function to remove the common items in the two queuesand save the...
A: The queue is data structure in C++. It operate in FIFO manner. Inside a queue we insert element from...
Q: Create an object called GSSArray. (It stands for growable self-sorting array)This object will manage...
A: Program: //GSSArray.java import java.util.*; class GSSArray { private int array[]; private i...
Q: Create a class called time that has separate int member data for hours, minutes, and seconds. One co...
A: #include <iostream> #include <conio.h> using namespace std; class Check{ private: in...
Q: Please help me understand how to solve.
A: The program takes ship weight in pounds as input from the keyboard. we know the values of the flat f...
Q: What is the peer-to-peer communication in the OSI Model?
A: Peer-to-Peer Communication: - The communication within layers is independent of other layers being u...
Q: Testing for SQL-injection vulnerability: Suggest an approach for testing an application to find if i...
A: An approach to test an application: The test approach here is to enter a string having a single quo...
Q: As the network administrator for your organization, you have been tasked to create a new network for...
A: For the above question, we have to find type of IP address that can be assigned to a workstation wit...
Q: Design a class named Fan to represent a fan. The class contains:■■ Three constants named SLOW, MEDIU...
A: Program: //Import necessary header files import java.util.*; //Declare the class public class Fan { ...
Q: What is the Resolution (Columns X Rows, in Pixels) of Mode 13h?
A: The Resolution (Columns X Rows, in Pixels) of Mode 13h is 320×200 pixels.
Q: what is Group box?
A: What is Group Box? A Group Box is also called a Frame. A Group Box is a special type of box which ha...
Q: With pipelined parallelism, it is often a good idea to perform several operations in a pipeline on a...
A: When two or more operations run concurrently on various processors in such a way that one operation ...
Q: Write a sequence of statements that use only PUSH and POP instructions to exchange thevalues in the ...
A: Write a sequence of statements to exchange the values in the EAX and EBX registers by using the PUSH...
Q: Give Description for ReadString
A: The current stream reads a string. The string is prefixed with the count, encoded seven bits at a ti...
Q: Write a driver program to test the function. - sum of first n positive integers - check if a number ...
A: C++ function : The function is used to repeat a set of statements or a set of instructions enclosed...
Q: What do you call a program that performs a specialized task, such as a virus scanner, a file-compres...
A: Utility Programs: The utility program is the system application that performs a specific function, ...
Q: Show using a cross-product construction that the class of regular languages is closed under set diff...
A:
Q: Create a Java program with the following outline: Recommendation: Please enter at least 12 records...
A: Here, in this program, you need to take input from user. To take input from user, you need to use 'S...
Q: As the network administrator for your organization, you have been tasked to create a new network for...
A: Solution: Network topology defines how the network components are arranged and how various links a...
Q: by using c++
A: Program: #include<iostream> using namespace std; int main() { int noOfRows, i, j, k, noOfCol; ...
Q: Define Logical address
A: Logical address: Logical address is a virtual address that doesn’t exists physically. It is genera...
Q: 9500 students are enrolled in a community college. Of 9500, 3350 have a Visa, 2200 have a MasterCard...
A: Total number of student enrolled in Community College n(T): 9500Number of Student who have Visa Card...
Q: Which of the following statements prevents a form from being closed? a. e.Cancel = False b. e.Cancel...
A: Preventing a form from being closed: The “Cancel” command is used to prevent the computer from clos...
Q: Some databases use magnetic disks in a way that only sectors in outer tracks are used, while sectors...
A: Benefits of processing with outer tracks: The data transfer rate of the disk will be greater on the...
Q: Given the radius, in inches, and price of a pizza, design an algorithm to find and display the price...
A: Consider the shape of a pizza is circle. An algorithm to find the price of the pizza per square inch...
Q: by using c++ solve following questions 1. Write a program that inputs ten numbers from the user in a...
A: 1. Array: An array is a homogeneous kind of elements or numbers stored in contagious memory locatio...
Q: Briefly explain pop operation
A: Stack: The stack is a type of container used to insert and remove an item according to the last-in-...
Q: 3 Fe ¥) Write a reverse integer function that takes an integer num as a reference parameter and then...
A: Below is the required program in C++ language. Approach: Essential header files are included and us...
Q: I am having trouble in CIS. This is my first class. Can you please explain?
A: Objective: This program determines the acceleration of gravity when a particular distance from the e...
Q: Add a private method simplify() to the following Java program that converts a fractionto its simples...
A: EXPLANATION: - To simplify the fraction there should be a private GCD method and private simplify t...
Q: Write a program that prompts the user to enter thecenter coordinates, width, and height of two recta...
A: Program Plan: Import required packages. Declare the main class named “Test” which extends the “Appl...
Q: Using C or C++ (Object oriented or functions), implement the following classes of data structures: o...
A: The program defines a struct as node and with data members as: info of type int next as a pointer o...
Q: what is Dim statement?
A: “Dim” statement: The “Dim” statement is used by the Visual Basic compiler to determine the variable’...
Q: Explain the concept and structure of support vector machines (SVM)
A: CONCEPT OF SUPPORT VECTOR MACHINE: Support vector is basically a classifier which is generally defi...
Q: Describe the Web analytics maturity model and its use cases.
A: Business Analysis assumes an indispensable function in each association. Breaking down business prer...
Q: Hello, my first time being here I actually stuck on this assignment that was given from last week. I...
A: Objective: Here four classes need to be created as Person.java(for reading details for a person), Co...
Q: Write the abstract and concrete RTN for the "shr" instruction.
A: The abstract RTN for the “shr” instruction: shr (:=op=26) → R[ra] <31..0> ← (n@0) #R[rb] <3...
Q: Explain the syntax of return statement.
A: Return statement: The statement which makes the function to end immediately is the return statement...
Suppose a, b, and sum are int variables and c is a double variable. What value is assigned to each variable after each statement executes? Suppose a = 3, b = 5, and c = 14.1
Step by step
Solved in 2 steps with 1 images
- (Statistics) This is the formula for the standard normal deviate, z, used in statistical applications: z=(X)/ X is a single value. refers to an average value. refers to a standard deviation. Using this formula, you need to write a program that calculates and displays the value of the standard normal deviate when X=85.3,=80,and=4. a. For this programming problem, how many outputs are required? b. How many inputs does this problem have? c. Determine a formula for converting input items into output items. d. Test the formula written for Exercise 7c, using the data given in the problem.Use C++ programming language A customer in a store is purchasing five items. The prices of the five items are:Price of item 1 = $15.95Price of item 2 = $24.95Price of item 3 = $6.95Price of item 4 = $12.95Price of item 5 = $3.95Write a program that holds the prices of the five items in five variables. Display each item’sprice, the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is7%.True or False? The result of a logical expression cannot be assigned to an int variable.
- 8. Total Purchase A customer in a store is purchasing five items. The prices of the five items are as follows: Price of item 1= $15.95 Price of item 2= $24.95 Price of item 3= $6.95 Price of item 4= $12.95 Price of item 5= $3.95 Write a program that holds the prices of the five items in five variables. Display each item's price, the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 7 percent.In Python Text-based adventure game: Pretend you are creating a text-based adventure game. At different points in the game, you want the user to select to fight, run, or hide from certain enemies. The selection variable must be sent as an argument into the choice() function. The user should enter 1 to fight, 2 to run, or 3 to hide in the main(). The choice() function should print one of the three options. Add an if statement in the choice() function to make the correct selection.Need help coding in Java Morgan’s Department Store distributes bonuses to its salespeople after the holiday rush. Table 9-6 shows the bonuses, which are based on full weeks worked during the season and the number of positive online customer reviews. Write a program that allows a user to continuously enter values for the number of weeks worked and the number of positive reviews received and displays the appropriate bonus until the user enter a sentinel value: 99.
- The Problem: You need to increment a variable in the fastest possible way.use C++ programming language 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…15. Speed Conversion ChartYour friend Amanda, who lives in the United States, just bought an antique European sports car. The car’s speedometer works in kilometers per hour. The formulafor converting kilometers per hour to miles per hour is:MPH = KPH * 0.6214In the formula, MPH is the speed in miles per hour and KPH is the speed in kilometersper hour. Amanda is afraid she will get a speeding ticket, and has asked you to write aprogram that displays a list of speeds in kilometers per hour with their values convertedto miles per hour. The list should display the speeds from 60 kilometers per hourthrough 130 kilometers per hour, in increments of 5 kilometers per hour. (In otherwords, it should display 60 kph, 65 kph, 70 kph, and so forth, up through 130 kph.) made in visual studio 2017
- use visual basic Depreciation to a Salvage Value of 0 . For tax purposes an item may be depreciated over a period of several years, n . With the straight-line method of depreciation , each year the item dpreciates by 1/nth of it original value. with the double-declining-balance method of depreciation, each year the item depreciate by 2/nths of its value at the beginning of that year.(In the final year it is depreciated by its value at the beginning of the year. ) Write a program that performs the following tasks:(a) Request a description of the item, the year of purchase, the cost of the item, the number of years to be depreciated (estimated life), and the method of depreciation. The method of depreciation should be chosen by clicking on one of two buttons.(b) Display a year- by-year description of the depreciation. See Fig. 6.15 .1: If the variable divisor is not zero, divide the variable dividend by the divisor, and store theresult in quotient. If divisor is zero, assign it to quotient. Then print all the variables. [ Assumethat divisor and dividend are integers and quotient is a double ]“As one variable goes up, the other variable goes down” is a description of: