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
Triss [41]
3 years ago
7

Sara is writing a program to input her monthly phone bills and output the month name and amount for the month with maximum amoun

t. She has defined an array to hold the month names. Complete the pseudocode program. [6] # Program to output maximum month's phone bill MonthName ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] # Define an array to hold the phone bills for each month

Computers and Technology
1 answer:
guajiro [1.7K]3 years ago
3 0

Answer:

double [] phoneBills = new double[12];

Explanation:

Since the question has requested that an array be difined to hold phone bill for each month. Above declares an array that will hold floating point number (double) and it has been created to hold 12 values representing the months January to December

Values can be added in the array as shown in the program below.

<em>public class PhoneBill {</em>

<em>    public static void main(String[] args) {</em>

<em>    String []  MonthName = {"January", "February", "March", "April", "May", "June", "July", "August",</em>

<em>            "September", "October", "November", "December"};</em>

<em>    double [] phoneBills = new double[12];</em>

<em>        phoneBills[0] = 4.5;</em>

<em>        phoneBills[1] = 4.5;</em>

<em>        phoneBills[2] = 5.5;</em>

<em>        phoneBills[3] = 6.5;</em>

<em>        phoneBills[4] = 3.5;</em>

<em>        phoneBills[5] = 5.5;</em>

<em>        phoneBills[6] = 6.5;</em>

<em>        phoneBills[7] = 7.5;</em>

<em>        phoneBills[8] = 8.5;</em>

<em>        phoneBills[9] = 4.5;</em>

<em>        phoneBills[10] = 3.5;</em>

<em>        phoneBills[11] = 7.5;</em>

<em>        System.out.println("Months and corresponding phone bill");</em>

<em>        System.out.println(Arrays.toString(MonthName));</em>

<em>        System.out.println(Arrays.toString(phoneBills));</em>

<em>    }</em>

<em>}</em>

The output of this program is attached:

You might be interested in
Prime numbers can be generated by an algorithm known as the Sieve of Eratosthenes. The algorithm for this procedure is presented
Sidana [21]

Answer:

const MAXNR=150;

let candidates = {};

for(let i=2; i<=MAXNR; i++) {

   candidates[i] = true;

}

for(let p=2; p <= MAXNR; p++) {

   if (candidates[p]) {

       process.stdout.write(`${p} `);

       // Now flag all multiples of p as false

       i=2;

       while(p*i <= MAXNR) {

           candidates[p*i] = false;

           i++;

       }

   }

}

4 0
3 years ago
Match each storyboarding technique with its appropriate description.​
suter [353]

Answer:

Hierarchical – Option C

Linear – Option D

Webbed - Option A

Wheel - Option B

Explanation:

Hierarchical means something that follows the order from general to specific .  

Hierarchical – Option C

Linear means something that follows the order from general to specific .

Linear – Option D

Webbed – There is no order in flow of information or it is inconsequential. Hence, option A

Wheel - means the flow is sequential i.e as per the sequence

Wheel – Option B

5 0
3 years ago
Plz answer me will mark as brainliest ​
Vesnalui [34]
I’m pretty sure the answer for 1 is B.
And the answer for 2 is True.
4 0
3 years ago
Brainly Question 2.0
Klio2033 [76]

Answer:

Depends, but most of the time definitly  

:)

3 0
3 years ago
Who do you think first invented or used air crafts first??? If you have an answer that is deep then I will give you the BRAINLIE
vovangra [49]

Answer:

leonardo da vinci

He made the first hot air balloon witch is somewhat flight

and created a glider so

7 0
3 years ago
Read 2 more answers
Other questions:
  • Assign to avg_owls the average owls per zoo. Print avg_owls as an integer. Sample output for inputs: 1 2 4 3
    7·1 answer
  • How do air and ocean currents affect climate
    5·2 answers
  • Technician A says a modern automobile has more than 1 mile of wiring. Technician B says there could be more than 1,000 individua
    15·1 answer
  • Write a program that a C++ program that can be used to determine grades at the end of the semester. For each student, who is ide
    12·2 answers
  • What is a key reason for assignning permissiongs when configuring file and share access?
    7·1 answer
  • Which of these words does not describe factual data?
    8·2 answers
  • John just bought a used iPad from a friend who had lost the charging cable. John notices that the cable is like the charging cab
    10·1 answer
  • When a hoverboard's battery dies, does the hoverboard battery life get impacted the next time the battery is full?
    12·1 answer
  • Why do guys get jealous when u hangout with another guy that's not them
    6·2 answers
  • SOMEONE PLEASE HELP ME OUT WITH!!!!!
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!