Write a program that takes as input: - the current hour - the number of hours to add and outputs the new hour. For example, if the inputs are 2 (as the current hour) and 51 (as the number of hours to add), your program should output the answer from part (a) of this problem. Note that your program should always output an integer between 1 and 12. We will get you started with this program with the two lines that gather the input from the user. You'll need to write the rest.

Answers

Answer 1

Answer:

The program in Python is as follows:

cTime = int(input("Current Hour: "))

while(cTime <1 ):

   cTime = int(input("Current Hour: "))

aTime = int(input("Additional Hours: "))

while(aTime <0):

   aTime = int(input("Current Hour: "))

tTime = cTime + aTime

tTime%=12

print("New:",tTime,"hours")

Explanation:

This gets input for current time

cTime = int(input("Current Hour: "))

The following ensures that the user enters a time greater than 0

while(cTime <1 ):

   cTime = int(input("Current Hour: "))

This gets input for additional time

aTime = int(input("Additional Hours: "))

The following ensures that the user enters a positive time

while(aTime <0):

   aTime = int(input("Current Hour: "))

This calculate the new hours

tTime = cTime + aTime

This gets the hour equivalent between 1 and 12

tTime%=12

This prints the new hour

print("New:",tTime,"hours")


Related Questions

A large amount of data is stored in secondary storage is it true

Answers

Since it’s more cost efficient, it’s better to store more data in the secondary storage. Yes true!

A large amount of data is stored in secondary storage is true

What do you call a commercial transaction beyween a buisness and buisness thatis transactedd online?
A.B2B - commerce
B.B2.B commerce
C. B2b digital transaction
D.B2B e - commerce

E. Non of the above

Answers

Answer:

c.B2b digital transaction

Explanation:

yan lang po sana makatulong

SOMEONE HELP 60 POINTS!!!!! When creating business publications, these two factors must be determined before planning the layout.

Answers

Answer:Audience and Goals

Explanation:

Answer:

I hope This will help you... Please mark me as Brilliant

Please

Explanation:

You want to make sure you prepare thoroughly before starting a business, but realize that things will almost certainly go awry. To run a successful business, you must adapt to changing situations.

Conducting in-depth market research on your field and the demographics of your potential clientele is an important part of crafting a business plan. This involves running surveys, holding focus groups, and researching SEO and public data.

Before you start selling your product or service, you need to build up your brand and get a following of people who are ready to jump when you open your doors for business.

This article is for entrepreneurs who want to learn the basics steps of starting a new business.

Tasks like naming the business and creating a logo are obvious, but what about the less-heralded, equally important steps? Whether it's determining your business structure or crafting a detailed marketing strategy, the workload can quickly pile up. Rather than spinning your wheels and guessing at where to start, follow this 10-step checklist to transform your business from a lightbulb above your head to a real entity.

1. Refine your idea.

If you're thinking about starting a business, you likely already have an idea of what you want to sell online, or at least the market you want to enter. Do a quick search for existing companies in your chosen industry. Learn what current brand leaders are doing and figure out how you can do it better. If you think your business can deliver something other companies don't (or deliver the same thing, only faster and cheaper), or you've got a solid idea and are ready to create a business plan. 

Define your "why."

"In the words of Simon Sinek, 'always start with why,'" Glenn Gutek, CEO of Awake Consulting and Coaching, told Business News Daily. "It is good to know why you are launching your business. In this process, it may be wise to differentiate between [whether] the business serves a personal why or a marketplace why. When your why is focused on meeting a need in the marketplace, the scope of your business will always be larger than a business that is designed to serve a personal need." 

Consider franchising.

Another option is to open a franchise of an established company. The concept, brand following and business model are already in place; all you need is a good location and the means to fund your operation.

Diana has created a graphic design portfolio for a major project. What kind of portfolio would increase Dlana's chances of getting selected?
OA
a portfolio with some case studies of her graphic design work
OB.
a portfolio with graphic designs in her favorite theme
Ос.
a portfolio containing contact numbers of references
OD.
a portfolio that emphasizes large images and many colors
OE. a portfolio that emphasizes her qualifications and experience

Answers

Answer:

Hello There!!

Explanation:

I believe the answer is O A. a portfolio with some case studies of her graphic design work.

hope this helps,have a great day!!

~Pinky~

iii. Write the pseudocode for a program to take two integer inputs and the operator from user and
display the answers of four basic arithmetic operations ( +- */).

Answers

Answer:

The pseudocode is as follows:

Input num1, num2

input operator

print num1 + num2

print num1 - num2

print num1 * num2

if num2 != 0

    print num1 / num2

else

    print "Cannot divide by 0"

Explanation:

This gets input for both numbers

Input num1, num2

This gets input for the operator

input operator

This prints the sum

print num1 + num2

This prints the difference

print num1 - num2

This prints the product

print num1 * num2

This prints the division if the divisor is not 0

if num2 != 0

    print num1 / num2

else

    print "Cannot divide by 0"

Isa wants to find out if his co-worker Alexis is available for an event on Wednesday, February 10th. Which calendar
view should he use?

O Schedule View

O Day View

O Week View

O Appointment View


Please help ASAP!!!!!!!!!!!

Answers

Appoint view
Hope this helps

Using computers can cause problems for the health and safety of users. Name three
health issues and causes associated with your use of computers. For each issue describe a way
of minimizing the risk. *​

Answers

Answer:

Muscles

Obesity

Muscle and joint problems

Nyatakan dua maklumat yang perlu dilabelkan pada lakaran perkembangan idea.

1.______________________________________________.
2._____________________________________________.​

Answers

Answer:

i don't understand a thing

Kiko loves to surf the internet and check on different websites. One day he received an email from unknown source. When he opens it, he was directed to a site and logged using his credit card number. After a few days,he learned that his card was use by someone in purchasing an expensive item. What internet threat did Kiko experience and what can you do to avoid it.​

Answers

He experienced phishing

Phishing is a method of trying to gather personal information using deceptive e-mails and websites.

Here are some measures to avoid phishing. You can pick up the one you liked the most

Always check the spelling of the URLs in email links before you click or enter sensitive informationWatch out for URL redirects, where you're subtly sent to a different website with identical designIf you receive an email from a source you know but it seems suspicious, contact that source with a new email, rather than just hitting reply. Don't post personal data, like your birthday, vacation plans, or your address or phone number, publicly on social media

describe what impact your personal vision could have your community or on society​

Answers

A personal vision statement is a mission statement of what you want to accomplish in your life, both personally and professionally. This statement can be used as a guide when determining the career to pursue, making important life decisions, planning how you'll accomplish goals, and realizing your life dreams.

My personal vision will have a positive impact on my community by solving the problems around my community and my society at large.

What is a personal vision?

A personal vision is a written description of your goals, strengths, and ambitions. It could perhaps be oriented towards one's long-term aspirations and could be focused on life or career goals.

As an educationist, my vision, persistence, and determination to study stem from a desire to excel in my work as an educator, as well as to inspire and serve as a role model for my community and the world at large.

Growing up in a typical setting taught me about the effects of educational reform on livelihood, economics, environment, and human existence. I learned as a youngster the bad consequences of not being educated and being illiterate owing to the fact that people cannot just afford the high cost of learning.

Since then, I've dedicated my life to educating the public and teaching students in my community and society as a whole. My vision is to raise awareness of the negative consequences of illiteracy in our society and to promote action to combat it by giving free education to students and the general public.

Learn more about vision here:

https://brainly.com/question/4269555

SPJ2

Select the three reasons that the gaming industry is set to grow.

A) more colleges offering jobs in game design

B) a decrease in the average age of gamers

C) an expanding market on mobile phones

D) expanding markets in Asia

E) new accessories that will attract more players

Answers

The answers are A, C, E

Answer:

expanding markets in Asia, new accessories that will attract more players, an expanding market on mobile phones

Explanation:

. Create a java File call Sales.Java contains a Java program that prompts for reads in the sales for each of 5 salespeople in a company. It then prints out the id and amount of sales for each salesperson and the total sale. 2. Compute and print the average sale. 3. Find and print the maximum and minimum sale. 4. After the list, sum, average, max and min have been printed, ask the user to enter a value. Then print the id of each salesperson who exceeded that amount, and the amount of their sales. Also print the total number of salespeople whose sales exceeded the value entered. 5. Instead of always reading in 5 sales amounts, in the beginning ask the user for the number of sales people and then create an array that is just the right size. The program can then proceed as before

Answers

Answer:

The program is as follows:

import java.util.*;

public class Sales{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 int salesPeople;

 System.out.print("Number of Sales People: ");

 salesPeople = input.nextInt();

 int[] salesID = new int[salesPeople];

 float[] salesAmount = new float[salesPeople];

 float total = 0;

 for(int i = 0; i<salesPeople;i++){

     System.out.print("ID: ");      salesID[i] = input.nextInt();

     System.out.print("Amount: ");      salesAmount[i] = input.nextFloat();

     total+=salesAmount[i];  }

 System.out.println("ID\t\tAmount");

 for(int i = 0; i<salesPeople;i++){

     System.out.println(salesID[i]+"\t\t"+salesAmount[i]);  }

 System.out.println("Total Sales: "+total);

 System.out.println("Average Sales: "+total/salesPeople);

 Arrays.sort(salesAmount);

 System.out.println("Minimum Sales: "+salesAmount[0]);

 System.out.println("Maximum Sales: "+salesAmount[salesPeople-1]);

 float sales;

 System.out.print("Print records that exceed: ");      sales = input.nextFloat();

 System.out.println("\nID\t\tAmount");

 int count = 0;

 for(int i = 0; i<salesPeople;i++){

     if(salesAmount[i]>sales){

         System.out.println(salesID[i]+"\t\t"+salesAmount[i]);

         count++;      }  }

 System.out.print("Total sales records that exceed "+sales+" are: "+count);

}

}

Explanation:

See attachment for program source file where comments are used as explanation

Identify the error and write correct HTML program 5 Cyber Bullying Tips<\head>Don't Respond Talk to a trusted adult <|html>

Answers

Answer:

<html>

<head> Cyber Bullying Tips </head>

<body>

Don't Respond, Talk to a trusted adult

</body>

</html>

What is the cpu used for

Answers

Answer:

A central processing unit (CPU), also called a central processor, main processor or just processor, is the electronic circuitry that executes instructions comprising a computer program. The CPU performs basic arithmetic, logic, controlling, and input/output (I/O) operations specified by the instructions in the program.

What is a simulation?

A) a computer-based program that tests knowledge in important areas

B) a computer-based program that can be used to solve problems

C) a computer-based program that designs other programs

D) a computer-based program that mimics a real-life event

Answers

the answer is D : a computer based program that mimics a real-life event

Answer:

a computer-based program that mimics a real-life event

Explanation:

An example of computer hardware is ? A. keyboard B. app C. web browser D. operating system

Answers

Answer:

D. Operating system

Explanation:

A keyboard is a secondary item like a mouse and is not apart of computer hardware and app is also not a computer hardware because its coding not hardware. Web Browser is a Internet thing not hardware.

Answer:

option A

Explanation:

Computer hardware is the physical parts or components of a computer, such as the monitor, mouse, keyboard.

A ____ is an icon that does not directly represent a file, folder or application but serves as a link to it?​

Answers

Answer:

Shortcut

Explanation:

A file can be defined as a computer resource that avails end users the ability to store or record data as a single unit on a computer storage device.

Generally, all files are identified by a name, icon, size, and type (format) such as audio, image, video, document, system, text, etc.

Furthermore, files are organized or arranged in directories. These directories are paths that describes the location wherein a file is stored on a computer system.

A software can be defined as a set of executable instructions (codes) or collection of data that is used typically to instruct a computer on how to perform a specific task and solve a particular problem. Thus, it's a computer program or application that comprises of sets of code for performing specific tasks on the system.

In Computer science, it's possible to create a shortcut in several directories (locations) on a computer, so as to reference a file, folder or software application and serve as an executable link.

Hence, a shortcut is an icon that does not directly represent a file, folder or application but serves as a link to it.

Additionally, deleting the shortcut of a data file, folder or software application would not permanently delete or uninstall the main data file respectively.

There are eight primitive data types in Java. If the the size of 4 different datatype sizes are as follows then what is maximum value they can store? Show using the chart as in our example.

Answers

Answer and Explanation:

The eight primitive data types in Java include:

byte , short , int , long , float , double , boolean and char.

By size of datatype we mean the amount of memory the data type occupies. For a 32-bit processor/CPU,

The size of int data type(with whole numbers from -2,147,483,648 to 2,147,483,647) in Java is 4 bytes

The size of byte data type is 1 byte

The size of short data type is 2 bytes

The size of long data type is 8 bytes

You are a network administrator for your company. The network consists of a single Active Directory domain. All servers run Windows Server 2016. Windows Server Update Services (WSUS) is installed on two servers, SERVERA and SERVERB. SERVERA receives software updates from Microsoft Windows Update servers. You manually synchronized SERVERB with the Windows Update servers, and now you need to complete the WSUS configuration on SERVERB. Which of the following is not a step you might take to complete the configuration of WSUS on SERVERB?
A. Approve the current updates.
B. Set SERVERB to receive updates from SERVERA and automatically synchronize with approved updates on SERVERA.
C. Set SERVERB to draw updates automatically from whichever sources SERVERA is set to draw from.
D. Set SERVERB to receive daily updates automatically at a given time

Answers

Answer:

The answer is "Choice C"

Explanation:

The server is a computer or network which supplies other devices called clients through a net with resources, data or applications, or programs. Source Server allows a client can retrieve the cells are attached to the source code for a program. All required source control files were retrieved by the source server. Its app must've been indexed to source in enabled to use source server.

Which is a true statement about automation?

A)human intervention is needed to control all sequences of operations of a task.

B)human intervention is not needed at anytime in initiating or controlling sequences of operations.

C)using computer to control sequences of operations without human intervention.

D)computers are not needed to initiate or control any sequence of operations of a task.

Answers

Answer:

im guessing its a?

Explanation:

what is an operating system​

Answers

Answer:

An operating system is the primary software that manages all the hardware and other software on a computer. The operating system, also known as an “OS,” interfaces with the computer’s hardware and provides services that applications can use.

the software that supports a computer's basic functions, such as scheduling tasks, executing applications, and controlling peripherals

What is the explanation of line 21-25

Answers

Answer:

The code is checking if a word in the word list matches a certain length and the first letter matches a certain letter... the for loop is what increments through the word list checking each word one by one for the specified conditions. If the word meets the conditions it is added to an array called filteredWordList.

Explanation:

One of the following is NOT a type of Intellectual Property

Answers

Group of answer choices.

a) Copyright

b) Trademark

c) Trade Secrets

d) Privacy​

Answer:

d) Privacy​

Explanation:

An intellectual property can be defined as an intangible and innovative creation of the mind that solely depends on human intellect.

Simply stated, an intellectual property is an intangible creation of the human mind, ideas, thoughts or intelligence. They include intellectual and artistic creations such as name, symbol, literary work, songs, graphic design, computer codes, inventions, etc.

Generally, there are different types of intellectual property (IP) and this includes;

a) Copyright

b) Trademark

c) Trade Secrets

However, privacy is a type of intellectual property.

Programming Exercise 11 in Chapter 8 explains how to add large integers using arrays. However, in that exercise, the program could add only integers of, at most, 20 digits. This chapter explains how to work with dynamic integers. Design a class named largeIntegers such that an object of this class can store an integer of any number of digits. Add operations to add, subtract, multiply, and compare integers stored in two objects. Also add constructors to properly initialize objects and functions to set, retrieve, and print the values of objects. Write a program to test your class.

Answers

Answer:

Explanation:

The following is written in Java. It creates a class called largeIntegers that creates objects of the built-in BigInteger class to handle operations on very large numbers. The class contains the add, subtract, multiply, compare, toString methods as well as the getter and setter method for the BigInteger. A test class has been provided and the output can be seen in the attached picture below where two numbers are created and added together. Due to technical difficulties, I have added the code as a txt file below.

In cell L2, enter a formula using the IF and AND functions, as well as structured references to determine if Adam Moriarty can be a bunk leader. a. The logical test in the IF function should determine if the staff member’s Service Years is greater than 4 AND the staff member’s Leadership Training status is "Yes". Remember to use a structured reference to the Service Years and the Leadership Training columns. b. The function should return the text Yes if a staff member meets both of those criteria. c. The function should return the text No if a staff member meets none or only one of those criteria.

Answers

Answer:

Enter the following formula in L2

=IF(AND([Service Year]>4,[Leadership Training]="Yes"),"Yes","No")

Explanation:

Analyzing the formula:

[tex]= \to[/tex] Begin the formula with an equal to sign

IF [tex]\to[/tex] This indicates that the formula uses an "IF" function

AND [tex]\to[/tex] This indicates that there are at least 2 conditions in the function; all of which must be true for the function to return true.

The conditions in the formula are:

[Service Year]>4;  and [Leadership Training]="Yes"

Notice that the column names (service year and leadership training) are called and not the cell names (e.g. K2); this is what is referred to as structured referencing.

Having said that, both conditions must be true for the function to return true (because we use the AND clause to join both functions)

The possible results in the formula are:

"Yes","No"

If both conditions are true, then the value of L2 will be "Yes"

If otherwise, then the value of L2 will be "No"

In what way, if any, are scripting languages different from markup languages?

A) Markup languages tell the computer what content to present, while scripting languages make things run faster.

B) Markup languages tell a single computer what to do, while scripting languages help computers communicate with each other.

C) Scripting languages tell the computer what content to present, while markup languages make things run faster.

D) Scripting languages tell a single computer what to do, while markup languages help computers communicate with each other.

Answers

Answer:

Markup languages tell the computer what content to present, while scripting languages make things run faster. A

Answer:

It's most likely A in edge.

Explanation:

My father works in IT, and I am taking a Fundamentals of Dig. Media class. If I remember correctly, the lesson for markup languages said that markup is used for online documents, like Wiki for example. Thus, I believe it is A.

After a business transaction has been analyzed, which of the following must occur for the analysis to have been done correctly?

A. Equity must equal the difference between assets and liabilities.
B. Equity must be greater than the sum of assets and liabilities.
C. Equity must be greater than the difference between assets and liabilities.
D. Equity must equal the sum of assets and liabilities.​

Answers

Answer:

A. Equity must equal the difference between assets and liabilities.

Explanation:

Assets are things a company or business owns while liabilities are things person or company owes.

Thus, Equity is the difference between the assets and the liabilities.

So, option A which is Equity must equal the difference between assets and liabilities is the answer.

which of the following is the best example of an installation issue

Answers

Answer:

A user made an error while trying to set up a software program.

Answer:

A computer can't find the file that it needs to perform an operating system function. A computer displays error messages, and then the Blue Screen of Death appears. A user made an error while trying to set up a software program.

Explanation:

I just need some help working out this Java code! I can list the instructions below:
Modify the CountSpaces program so that contains a String that holds your favorite inspirational quote. Pass the quote to the calculateSpaces method and return the number of spaces to be displayed in the main method.

We're given this to start however I have been struggling as there are two classes and it's been confusing me. Thanks so much for any help! All good and God Bless!

public class CountSpaces
{
public static void main(String[] args)
{
// write your code here
}
public static int calculateSpaces(String inString)
{
// write your code here
}
}

Answers

Answer:

public class CountSpaces

{

   public static void main(String[] args)

   {

       String quote = "The concept of infinity is meaningless inside of an insane human mind.";

       int nrSpaces = calculateSpaces(quote);

       System.out.println("Nr spaces in your quote is " + nrSpaces);

   }

   

   public static int calculateSpaces(String inString)

   {

       int count = 0;

       

       for (int i = 0; i < inString.length(); i++) {

           if (inString.charAt(i) == ' ') {

               count++;

           }

       }

       return count;

   }

}

Explanation:

In this example there is only one class, and since all methods are static the true concept of the class is not even being used.

Emilio has created a document in Word and needs to print labels. He is shopping at a store and finds Avery labels
and another brand that is less expensive. What does Emilio need to do before buying the less expensive labels?
O He needs to make sure the number of labels is the same.
O He needs to make sure that the dimensions match the Avery labels.
O He needs to check to see if they are compatible with Word.
O He needs to check to see if Word has a setting for that label.

Answers

Answer:

He needs to check to see if they are compatible with Word

Explanation:

A label is a attachment to an object, with the aim of identifying the object such as the mail to address on an envelop, In MS Word, there several label templates to choose from, which are located under the Mailings tab

To create a label in MS Word, we have the following steps

1) Select Labels under the Mailings tab

2) Select the Options button in the Labels dialogue box, then select the label vendor and the product of the vendor to be used

3) Enter the address of the mail in the Address box after selecting the vendor

Therefore, Emilo being at the shopping center rathe then on his computer will only have access to check if the cheaper label is also compatible with MS Word, from the label vendor's specifications

Other Questions
What are the free moving, charged particles in a molten mixture of aluminium oxide and cryolite? Divide * -3x 10x+ 24 by X-2 HURRYY, 50 PTS AND ILL MARK AS BRAINLIST !!describe the interrelationships between the skeletal systems and the integumentary, muscular, cardiovascular and urinary systems Some people support the idea of an extra tax on junk food. Advocates for these taxes say that makingunhealthful food more costly would mean people would buy and eat less of it. They point to studies showing thatincreases in the cost of junk food lead to decreases in its consumption. Advocates say that these studies indicatethat a junk food tax would reduce caloric intake, because junk food is high in calories. It would therefore reducethe rate of obesity. Obesity has been linked to health problems such as diabetes and heart disease. A tax wouldmean a healthier population. It would also mean that people spend less money on doctor visits.Do It!They think that the tax willmore healthful choices.ApromoteBindicateC discourageDoverlook How is everyone today?! Comment your favorite positive Quote For the trait of color in these beetles, where brown (B) is dominant to green (g), what is the phenotype ratio of the possible offspring of two heterozygous beetles? Convert the following indoor air quality standards, established by the U.S. Occupational Safety and Health Administration (OSHA), from ppmv to mg/m3 (at 25C and 1atm) or vice versa.a. Carbon dioxide (CO2), 5,000 ppmv b. Formaldehyde (HCHO), 3.6 mg/m^3 c. Nitric oxide (NO), 25 ppmv True or False: The following sentence correctly uses a colon.Her usual advice: I remember, was "Keep your head up as you push the ballup the court." The circumference of a circle is 20 pi inches. What is the area in square inches of the circle express your answer in terms of pi Please answer thiss!!!! What is Percy able to do while in the Mississippi River? there are four consecutive even numbers. The second number is represented by x. find the sum of four numbers in term of x critically evaluate the mechanisms that people use to deal with cyberbullying Suppose that a population parameter is 0.3, and many samples are taken from the population. As the size of each sample increases, the mean of the sample proportions would approach which of the following values? O A. 0.4 O B. 0.1 O C. 0.3 O D. 0.2 SUBMIT BRANLIEST FOR CORRECT ANSWER ASAPComplete the statement about the tables below. Then, choose a rule for each.xy0517.5211.25This table represents a(n) relationship.Rule: xy0-6112230This table represents a(n) relationship.Rule: Question 14 of 14Which expression gives the distance between the points(1,-2) and (2, 4)?O A. (1+23 +(2-47O B. (1-2)*+(-2-4)O c. 111-23 +4:32-47O D. Hit+2y +(2-479 CHECK MY ANSWERS PLEASEKevin's savings account balance changed from $1140 in January to $1450 in April. Find the average rate of change per month. Round your answer to the nearest dollar.$78 per month$50 per month$310 per month$103 per month***** Which of the expressions are equivalent to the one below? Check all thatapply.2. (4+9)-(3.2)A. (3.2)-(2.4) + (29)O B. (2+4). (2 + 9)-3.2C. 2.4 +9-3.2D.2.4+ (2.9) - (2.3) A farmer has developed a new type of fertilizer. This new fertilizer costs 20percent more to produce than the old fertilizer but has better results: Thesame land now produces 25 percent more crops each year.Which statement best describes one way the farm will be affected by usingthis new fertilizer?A. The farm's marginal cost for fertilizer will decrease.B. The farm's marginal cost for fertilizer will increase.C. The farm's opportunity cost for using fertilizer will decrease.D. The farm's opportunity cost for using fertilizer will increase. 5. Masasabi mo bang pinahalagahan ng mga taga Visayas ang kanilang panitikan?Bakit?