Please provide the language you're using when you ask for programming help, otherwise you aren't going to get the answer that you are looking for.
Here it is in Java, and I'm assuming the number is given via user input? Otherwise, just remove the user input function and replace the integer with a value of your choice. Note, that this isn't the full code; only what is relevant to the question.
public static void main(String[] args) {
int num = numInput(10);
printDoubles(num, 100); // You can create a user input function for
// maxValue if you wanted to.
}
/**
* Receives user input between 0 and the absolute value of maxInput.
* @param maxInput The largest absolute value that can be input.
*/
private static int numInput(int maxInput) {
Scanner sc = new Scanner(System.in);
maxInput = Math.abs(maxInput);
int num = 0;
while (!(num > 0 && num <= maxInput)) {
num = sc.nextInt();
if (!(num > 0 && num <= maxInput)) {
System.out.println("Input too small or too large");
}
}
return num;
}
/**
* Continues to print out num doubled until maxValue is reached.
* @param num The number to be printed.
* @param maxValue The maximum value (not including in which num can be doubled to.
*/
private static void printDoubles(int num, int maxValue) {
if (num >= maxValue) {
System.out.println("No output.");
}
while (true) {
if (num >= maxValue) {
break;
}
if (num < maxValue) {
System.out.print(num + " ");
}
num *= 2;
}
System.out.println();
}
Please post detailed answers to the following questions. Please use complete sentences t two artists from the following list: Phil Borges,Lee Jeffries.
<h3>What are photography opportunities?</h3>
The taking of constant or nevertheless snap shots furnished a brand new medium with which to seize reality, and modified the manner humans in general, and artists in particular, noticed the arena and created new inventive opportunities. Learning from the technological know-how of photography, artists evolved a selection of the latest portrayal techniques.
Photography modified our imaginative and prescient of the arena with the aid of using presenting greater get entry to to greater snap shots drawn from greater locations and instances withinside the global than ever before. Photography enabled snap shots to be copied and mass-distributed. The media-sphere became burgeoning.
Read more about the internet :
brainly.com/question/2780939
#SPJ1
Answer:
Option B: DNS
Explanation:
Domain Name Server (DNS) is analogous to a phone book where people can look up a person name through numerical phone number. A DNS server is a database that host a database of public IP addresses (e.g. 64.233.160.0) and their associated hostname (e.g. google.com).
Whenever we type domain name in the address bar of our browser (e.g. google.com), that domain will be delivered to DNS server. Inside DNS server the URL will be mapped with its corresponding IP address making it possible for the web request to reach the the target server.
It would be a table...most likely in a CRM or Sales database
MySQL is a relational database management system based on the structured query language, JavaScript, Ruby and Python are programming languages used largely in web development.
<h3>What is MySQL?</h3>
It is a system that allows database management, that is, it is a database query language that is used to define relational database structures.
<h3>Characteristics of MySQL</h3>
- The system works on the client-server principle, where the server represents the actual database management system and is responsible for storing and distributing the data.
- It can be used on Windows, Linux, Unix and some other operating systems.
Therefore, we can conclude that MySQL is a relational database management system based on the structured query language, JavaScript, Ruby and Python are programming languages used largely in web development.
Learn more about MySQL here: brainly.com/question/4964005