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
shusha [124]
3 years ago
8

1.5 code practice question 3

Computers and Technology
1 answer:
Svetach [21]3 years ago
4 0

Answer: What the hell is that 243 suppose to be

Explanation:uhg

You might be interested in
Why are computer messages encapsulated?
Tcecarenko [31]

Answer:

I think the answer is to translate messages from one machine’s programming language into another

Explanation:

6 0
3 years ago
Typing into a text _____
anyanavicka [17]

Answer:  Box?

Explanation:

3 0
3 years ago
Given coins of denominations (value) 1 = v1 < v2< … < vn, we wish to make change for an amount A using as few coins as
astraxan [27]

Answer:

Answer given below

Explanation:

a) 10 coins ( 25*8 + 1*2)

b) 14 coins (27*10 + 12*1 + 7*1 + 3*1 + 1*1)

<u></u>

<u>Source Code in C++: </u>

#include <iostream>

using namespace std;

//main function

int main()

{

int n,n1;

cout << "Enter the amount : "; //taking amount as input

cin >> n;

if(n<=0)

{

cout << "Fatal Error : Input Failure." << endl;

return 1;

}

cout << "Enter the number of denominations : "; //taking number of denominations as input

cin >> n1;

if(n1<=0)

{

cout << "Fatal Error : Input Failure." << endl;

return 1;

}

int a[n1],c[n1],sum=0; //array to keep count of each amount, and sum to store total coins

cout << "Enter the denominations in descending order : ";

for(int i=0;i<n1;i++)

{

cin >> a[i];

}

for(int i=0;i<n1;i++)

{

c[i]=n/a[i];

sum=sum+c[i];

n=n%a[i];

}

for(int i=0;i<5;i++)

{

cout << a[i] << " : " << c[i] << endl;

}

return 0;

}

3 0
3 years ago
Which components in your computer store data?
tresset_1 [31]

Answer:

mother board hope this helps

6 0
4 years ago
Read 2 more answers
A file named numbers.txt contains an unknown number of lines, each consisting of a single integer. Write some code that computes
Schach [20]

Answer:

The code is given below with necessary comments for understanding

Explanation:

#Open the input file.

infile = open("numbers.txt", "r")

#Declare and initialize the required variable sum

#to store the sum of integers read from the file.

sum = 0

#Declare and intialize a variable to store the current

#number read from the file in the integer form.

curNum = 0

#Traverse the input file using for loop.

for curLine in infile:

   #Assign the number read from the file to the

   #variable curNum in the integr form.

   curNum = int(curLine)

   #Add the numbers read from the file to the

   #variable sum to get the sum of all the

   #numbers read from the file.

   sum += curNum

# Display the value of the variable runsum.

print(sum)

3 0
3 years ago
Other questions:
  • Individually or in a group find as many different examples as you can of physical controls and displays.a. List themb. Try to gr
    15·1 answer
  • Ben works at a top accounting firm in Salt Lake City and his responsibilities include developing individual and departmental goa
    9·1 answer
  • When using a spreadsheet, sum in the expression =sum(b10:b16), is called a(n) ________?
    8·1 answer
  • The first widely adopted windows product, ____, featured a standardized look and feel, similar to the one made popular by apple'
    11·1 answer
  • Jacobson furniture pseudo-code
    8·1 answer
  • What is a DreamScape?<br> Explain <br> and give example (if you want)
    10·1 answer
  • The internet has provided great opportunities for fundraising. true/false
    5·1 answer
  • Required skills,training,education for dentist
    7·1 answer
  • Help me
    8·1 answer
  • Write a program that will make a copy of a text file, line by line. Read the name of the existing file and name of the new file(
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!