1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lisa [10]
3 years ago
11

Define a function CoordTransform() that transforms the function's first two input parameters xVal and yVal into two output param

eters xValNew and yValNew. The function returns void. The transformation is new = (old + 1) * 2. Ex: If xVal = 3 and yVal = 4, then xValNew is 8 and yValNew is 10.
Computers and Technology
1 answer:
WARRIOR [948]3 years ago
6 0

Answer:

Check the explanation

Explanation:

#include <iostream>

using namespace std;

void CoordTransform(int x, int y, int& xValNew,int& yValNew){

  xValNew = (x+1)*2;

  yValNew = (y+1)*2;

}

int main() {

  int xValNew = 0;

  int yValNew = 0;

  CoordTransform(3, 4, xValNew, yValNew);

  cout << "(3, 4) becomes " << "(" << xValNew << ", " << yValNew << ")" << endl;

  return 0;

}

You might be interested in
Stella is a bank executive. She is preparing a spreadsheet on the loan repayment schedules of customers. Which function can she
den301095 [7]

Answer: The function Stella can use to calculate the periodic payments of a loan is:

The Excel PMT function or NPER function.

Explanation: 1. The Excel PMT function is a financial function that returns the periodic payment for a loan.

2. The NPER function to figure out payments for a loan, given the loan amount, number of periods, and interest rate.

7 0
3 years ago
List 5 ways by which Artificial intelligence (AI) can be used to drive our business.​
andreyandreev [35.5K]

Answer:

start a website

Explanation:

true

5 0
3 years ago
Which of the following is not ways to fix software in windows 8
RideAnS [48]
Well, this is pretty tricky so lets define all the purposes of these

Safe mode - troubleshoots windows ; determines HARDWARE malfunctions

Check device manager - Highlights malfunctioning hardware that is connected to the P.C.

Refreshing pc - practically nothing

resetting your pc - removes all programs, files, etc. and starts as a new Windows.

I will have to go with answer C.) Refresh your P.C.
7 0
3 years ago
If the floating-point number representation on a certain system has a sign bit, a 3-bit exponent, and a 4-bit significand. What
vekshin1

Answer:

Normalization of storage is a typical method of storing the floating point number by shifting the decimal after the first figure of the number such as 1101.101 is normalized to 1.101101x23.

If the number that is in hovering point representation has 1 sign bit, 3-bit exponent with a 4-bit significant:

whenever the storage is normalized, then the biggest positive floating spot number in 2`s and the complement notation is 0.11112 x 23 = 111.12 =7.5

If the storage is returned to normal, then the minimum positive floating point number is 0.12 x 2-4 =0.000012 =1/32 = 0.03125.

Explanation:

Whenever the floating figure is keyed into the computer memory, then the first bit will be the sign bit, the next 8 bits are for exponent and 23 bits are used for storing significand. The array of exponents is from -127 to 128. While Exponent 127 stands for 0 and positive figures can be represented by values bigger than 127. The biggest floating point number will be represented as 0.111111.... 1111x 211111111

7 0
3 years ago
In which scenario would someone want to use the Paste Link option?
rosijanka [135]
I believe it is A and C! 

Good luck!
3 0
3 years ago
Other questions:
  • Why are computer programs so much longer now than they were in the late 1980?
    8·1 answer
  • Gunther is filling in his own input mask. He wants to format the Social Security numbers of his clients. The field must contain
    5·1 answer
  • You are the CISO of a company and you need to create logging policies. Please review NIST SP800-92, specifically sections 4–3 th
    12·1 answer
  • How do you turn on the Track Changes feature in a word-processing document?
    12·1 answer
  • AtlasNow Construction Company, a general contractor, plans to place a bid for building a hospital. It requests bids from subcont
    12·1 answer
  • Think of an example in your life where a number could be described as data, information, and knowledge
    14·1 answer
  • Which term best describes a popular marketing strategy that centers
    7·1 answer
  • How do I find a back door password on my computer?
    12·1 answer
  • What is a focus of Accenture's point of view on blockchain in the marketplace?
    12·1 answer
  • According to the mil-std-6016 what are the requirements for information to be passed between and among joint forces and organiza
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!