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
asambeis [7]
2 years ago
15

Create detailed pseudocode for a program that calculates how many days are left until Christmas, when given as an input how many

weeks are left until Christmas. Use variables named weeks and days.
Computers and Technology
1 answer:
Sedaia [141]2 years ago
6 0

Answer:

Following are the Pseudocode for the above problem:

Explanation:

  • Declare weeks and days As Variables
  • Output: "Enter the input for weeks are left until Christmas."
  • Set weeks = user answer
  • Set days = weeks *7
  • Output: “The days left until Christmas is ”
  • Output: days.

Output:

  • If the user inputs 2 then the output is "The days left until Christmas is 14"
  • If the user inputs 3 then the output is "The days left until Christmas is 21"

Pseudocode Explanation:

  • Pseudocode is the solution to any problem which is written in the form of the English language.
  • The only difference between the algorithm and Pseudocode is that the algorithm is only written in English and the Pseudocode is written in the form of input and output.

You might be interested in
Write a program that estimates how many years, months, weeks, days, and hours have gone by since Jan 1 1970 by calculations with
Rzqust [24]

Answer:

Explanation:

The following code is written in Java. It uses the LocalDate import to get the number of seconds since the epoch (Jan 1, 1970) and then uses the ChronoUnit import class to transform those seconds into years, months, weeks days, and hours. Finally, printing out each value separately to the console. The output of the code can be seen in the attached picture below.

import java.time.LocalDate;

import java.time.temporal.ChronoUnit;

class Brainly {

   public static void main(String[] args) {

       LocalDate now = LocalDate.now();

       LocalDate epoch = LocalDate.ofEpochDay(0);

       System.out.println("Time since Jan 1 1970");

       System.out.println("Years: " + ChronoUnit.YEARS.between(epoch, now));

       System.out.println("Months: " + ChronoUnit.MONTHS.between(epoch, now));

       System.out.println("Weeks: " + ChronoUnit.WEEKS.between(epoch, now));

       System.out.println("Days: " + ChronoUnit.DAYS.between(epoch, now));

       System.out.println("Hours: " + (ChronoUnit.DAYS.between(epoch, now) * 24));    

   }

}

6 0
2 years ago
When internet techonology was developed in the 1970s by the department of defense?
Scorpion4ik [409]
TRUE. The internet began as a military infrastructure project for communication purposes.  
3 0
3 years ago
HELP !!! Prompt <br> What is formatting text?
Svetach [21]

Answer:

Formatting text is how something is specifically layed out. Specific style.

Explanation:

7 0
2 years ago
Read 2 more answers
Select all the correct answers. Which two statements are true about an OS? translates the user's instructions into binary to get
lubasha [3.4K]

Answer:

all

Explanation:

4 0
3 years ago
Why should you try out a camera bag before taking it on a vacation?
Triss [41]

Answer:

b or c

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • What is html?
    9·2 answers
  • Reggie has hired you to design a home network. The home network will share a printer but will mainly be used to stream movies to
    7·1 answer
  • What can I do if my mouse on my laptop keeps freezing on me for 5 minutes
    11·1 answer
  • What pressure will be shown on the high side peessure gauge (ac system on)
    12·1 answer
  • (TCO C) When a remote user attempts to dial in to the network, the network access server (NAS) queries the TACACS+ server. If th
    14·1 answer
  • ______allow you to select elements that are in a certain state, such as when the mouse if hovering over an element
    14·1 answer
  • What is the long tube on a microscope called​
    15·1 answer
  • Generally speaking, what is a “best practice"?
    13·1 answer
  • Gn guys have an Amazing day!
    12·2 answers
  • can you guys plz answeer this i need help rrly bad and plz no viruses or links or answers that have nun to do with this
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!