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
seraphim [82]
4 years ago
6

Who knows coding questions? Please help! Thanks.

Computers and Technology
1 answer:
Brut [27]4 years ago
6 0
<span>Write a program that prints ‘Hello World’ to the screen.Write a program that asks the user for her name and greets her with her name.Modify the previous program such that only the users Alice and Bob are greeted with their names.<span>Write a program that asks the user for a number n and prints the sum of the numbers 1 to n</span><span>Modify the previous program such that only multiples of three or five are considered in the sum, e.g. 3, 5, 6, 9, 10, 12, 15 for n=17</span><span>Write a program that asks the user for a number n and gives him the possibility to choose between computing the sum and computing the product of 1,…,n.</span>Write a program that prints a multiplication table for numbers up to 12.<span>Write a program that prints all prime numbers. (Note: if your programming language does not support arbitrary size numbers, printing all primes up to the largest number you can easily represent is fine too.)</span>Write a guessing game where the user has to guess a secret number. After every guess the program tells the user whether their number was too large or too small. At the end the number of tries needed should be printed. I counts only as one try if they input the same number multiple times consecutively.<span>Write a program that prints the next 20 leap years.</span></span>
You might be interested in
4. Describe a report that a company might want to create and run on a regular basis. (1-3
gulaghasi [49]

Answer:

A report,.. hmm.. maybe about their company.=

A report that they would like people to see. One that says who they are. Also, what they do there, and why.

Explanation:

8 0
3 years ago
Please help!!
Likurg_2 [28]

Answer:

D. Server

Explanation:

A server is a computer or system that provides resources, data, services, or programs to other computers, known as clients, over a network. In theory, whenever computers share resources with client machines they are considered servers.

If this helps, mark me Brainliest!!

8 0
2 years ago
Read 2 more answers
When you right-click a word with a red squiggly line under it, which of the following displays?
katovenus [111]
A spelling menu appears after right clicking 
5 0
3 years ago
Read 2 more answers
Write a RainFall class that stores the total rainfall for each of 12 months into an array of doubles. The program should have me
RSB [31]

Answer:

Explanation:

The code provided worked for the most part, it had some gramatical errors in when printing out the information as well as repeated values. I fixed and reorganized the printed information so that it is well formatted. The only thing that was missing from the code was the input validation to make sure that no negative values were passed. I added this within the getMonths() method so that it repeats the question until the user inputs a valid value. The program was tested and the output can be seen in the attached image below.

import java.io.*;

import java.util.*;

class Rainfall

{

   Scanner in = new Scanner(System.in);

   private int month = 12;

   private double total = 0;

   private double average;

   private double standard_deviation;

   private double largest;

   private double smallest;

   private double months[];

   public Rainfall()

   {

       months = new double[12];

   }

   public void setMonths()

   {

       for(int n=1; n <= month; n++)

       {

           int answer = 0;

           while (true) {

               System.out.println("Enter the rainfall (in inches) for month #" + n + ":" );

               answer = in.nextInt();

               if (answer > 0) {

                   months[n-1] = answer;

                   break;

               }

           }

       }

   }

   public void getTotal()

   {

       total = 0;

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

       {

           total = total + months[i];

       }

       System.out.println("The total rainfall for the year is " + total);

   }

   public void getAverage()

   {

       average = total/12;

       System.out.println("The average monthly rainfall is " + average);

   }

   public void getLargest()

   {

       double largest = 0;

       int largeind = 0;

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

       {

           if (months[i] > largest)

           {

               largest = months[i];

               largeind = i;

           }

       }

       System.out.println("The largest amount of rainfall was " + largest +

               " inches in month " + (largeind + 1));

   }

   public void getSmallest()

   {

       double smallest = Double.MAX_VALUE;

       int smallind = 0;

       for(int n = 0; n < month; n++)

       {

           if (months[n] < smallest)

           {

               smallest = months[n];

               smallind = n;

           }

       }

       System.out.println("The smallest amount of rainfall was " + smallest +

               " inches in month " + (smallind + 1));

   }

   public static void main(String[] args)

   {

       Rainfall r = new Rainfall();

       r.setMonths();

       r.getTotal();

       r.getSmallest();

       r.getLargest();

       r.getAverage();

   }

}

8 0
3 years ago
Using the _______ list, you can select the number of photos that will appear on each slide.
Softa [21]

i think its D but i am not exactly sure


8 0
3 years ago
Read 2 more answers
Other questions:
  • Which Internet appliance can take action to potentially stop a network attack from taking place?
    6·1 answer
  • In a(n) ________ either one condition or some other condition must be met in order for an event to take place.
    11·1 answer
  • is family mobile and boost mobile the same? if not whats the difference? (btw this is a random question)
    12·2 answers
  • You are working on a router that has established privilege levels that restrict access to certain functions. you discover that y
    5·1 answer
  • How can I use internet if data is turned off​
    5·2 answers
  • Random letter of the alphabet for Python coding
    11·2 answers
  • What is interest? How does interest affect credit card purchases?
    11·1 answer
  • Will created an entry in his calendar and marks it as an all day instance which item has he created
    9·1 answer
  • While creating a digital portfolio, Harry wants to add documents that authenticate his skills, experience, and knowledge in digi
    11·1 answer
  • MODERATOR DELETE MY ACC
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!