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
Alona [7]
3 years ago
11

Write a program to find all integer solutions to the equation 4x + 3y -9z = 5 for values of x, y, and z between 0 to 100.

Computers and Technology
1 answer:
rjkz [21]3 years ago
8 0

Answer:

Following are the code to the given question:

#include <iostream>//header file

using namespace std;

int main()//main method

{

  int c= 0;//defining integer variable to count number of solutions

  int x,y,z;//defining integer variable which is used in the loop

  for (x = 0; x <= 100; x++)//defining for loop to x value

     for (y = 0; y <= 100; y++)//defining for loop to y value

        for (z = 0; z <= 100; z++)//defining for loop to z value

           if (4 * x + 3 * y - 9 * z == 5)//use if to check given condition

           {

              c++;//increment count value

              cout << "(" << x << "," << y << "," << z << ")";//print solutions  

              cout << (c % 11? " " : "\n");//use for add file solution in a row

           }

  cout << "\n\nThere are " << c << " solution(s)\n";//print solution couts

  return 0;

}

Output:

Please find the attached file.

Explanation:

In the above-given code four integer variable "x,y,z, and c" is declared, in which "x,y, and z" is used in the for loop with the if conditional statement that checks the given condition and prints the solution and the "c" variable is used to counts the number of solution, and at the last, it uses the print method to print its values.  

You might be interested in
Use the horizontal scroll bar to navigate through the _______.?
soldier1979 [14.2K]
The answer is B, rows. 

You cannot scroll through tabs, you always click them. Worksheets just doesn't make sense and collums are vertical. This leaves your only answer as rows.
7 0
4 years ago
When you insert an object in a document, word always inserts it as a floating object. true or false.?
wolverine [178]
Not always. If you have text wrapping on, it will snap to the text.
3 0
3 years ago
Which of the following is not a standard method called aspart of the JSP life cycle*
Kazeer [188]

Answer:

*jspService()

Explanation:

These are the steps in JSP life cycle.

1. Conversion JSP page to Servlet .

2.Compilation of JSP page(test.java)

3.Class is loaded (test.java to test.class)

4.Instantiation (Object is created)

5.Initialization (jspInit() method is only called once at the time of servlet     generation )

6.Request processing(_jspService() method is used for serving requests by JSP)

7.JSP Cleanup (jspDestroy() method is used for removing JSP from use)

There is no *jspService() method in the JSP life cycle.

8 0
4 years ago
Describe the five components of a computer
Anna [14]

Answer:

Input, Processing, Storage, Output and Communication devices.

Explanation:

Input devices of computer are like Keyboard, Mouse, Scanner. Output devices of a computer are printers, monitors, and headphones.

There are two storages of computer one of them is REM, which can be lost if computer shutdown/closes. Data stays written on the disk until it's erased or until the storage medium fails (more on that later). An example of a communication device is the microphone.

7 0
2 years ago
George is only familiar with VGA connector for monitors. What should you tell him are the main differences between VGA and DVI c
lara [203]

Answer:

That a DVI connector looks different and that it support more monitors.

Explanation:

3 0
3 years ago
Other questions:
  • 1. Which markup language adds the ability to use video without requiring the user to download add-ons?
    13·1 answer
  • Slmething about device for defrosting windscreen?
    5·1 answer
  • Which magazine loved their alienware test pc so much they didn't want to send it back?
    11·1 answer
  • Whatisthebestlocationapp for my androidphonebesidesgoogle maps?
    9·1 answer
  • In today's computers, the CPU tells _______________ the clock speed it needs, and the clock chip then automatically adjusts for
    6·1 answer
  • LAB: Formatted output: Hello World! Write a program that outputs "Hello World!" For ALL labs, end with newline (unless otherwise
    10·1 answer
  • Match the expenses to their respective categories.
    6·2 answers
  • How can a user remove or delete a Pivot Table?
    8·1 answer
  • True or false with reason :- carriage inword is carriage on purchases​
    6·1 answer
  • Tools such as microsoft's word, excel, and powerpoint are examples of ________ software. question content area bottom part 1 a.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!