You are working on a ticketing system. A ticket costs $10. The office is running a discount campaign: each group of 5 people is getting a discount, which is determined by the age of the youngest person in the group. You need to create a program that takes the ages of all 5 people as input and outputs the total price of the tickets. Sample input: 55 28 15 38 63 sample output: 42.5 the youngest age is 15, so the group gets a 15% discount from the total price, which is $50 - 15% = $42.5

Answers

Answer 1

Answer:

Explanation:

The following program is written in Java. It takes 5 inputs of int values for the ages of each member in the group. Then it loops through all of the ages and chooses the youngest age. Finally, it applies that age as a discount to the final price which would be $50, outputting the final discounted price. The output for the test case provided can be seen in the attached picture below in red.

import java.util.Scanner;

class Brainly

{

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       int[] person = new int[5];

       System.out.println("Enter age of individual 1: ");

       person[0] = in.nextInt();

       System.out.println("Enter age of individual 2: ");

       person[1] = in.nextInt();

       System.out.println("Enter age of individual 3: ");

       person[2] = in.nextInt();

       System.out.println("Enter age of individual 4: ");

       person[3] = in.nextInt();

       System.out.println("Enter age of individual 5: ");

       person[4] = in.nextInt();

       int youngest = person[0];

       for (int x = 0; x < person.length; x++) {

           if (person[x] < youngest) {

               youngest = person[x];

           }

       }

       double discount = 1 - (((double)youngest) / 100);

       double output = 50 * discount;

       System.out.println("Total Price: " + output + " the youngest is " + youngest);

   }

}

You Are Working On A Ticketing System. A Ticket Costs $10. The Office Is Running A Discount Campaign:

Related Questions

Lorann sends messages to Aiden that always go into Aiden’s Junk E-mail folder. Which process would best correct this problem so that Lorann’s messages no longer go into Aiden’s Junk E-mail folder?
A. adding Aiden to the Safe Senders list
B. adding Aiden to the Safe Recipients list
C. adding Lorann to the Safe Senders list
D. adding Lorann to the Safe Recipients list

Answers

C doing this for points

Answer:

b

Explanation:

Why does a compiled-language program need more memory than an equivalent interpreted-language program during program execution
OA to store source code
O B. to store object code
Ос. to store machine code
D. to debug the program​

Answers

Answer:

The answer is B

Explanation:

subscribe to twomad or you are cringe for the rest of your life kid

Answers

Answer:

What if I don't want to?..........

click on the _____button to move the selected text in the centre of the page (justify /centre)​

Answers

Answer:

centre

Explanation:

Which line of code converts 3 to 3.0?

int(3)

type(3)

float(3)

single(3)

Answers

Answer:

float

Explanation:

Kevin is scanning old images from his college library. He might use these scanned images in the college magazine. He might also use them on the college website. What is the best practice for Kevin to follow when scanning the images?
A.
scan the images with 72 DPI
B.
scan only the images that are ideal for a website
C.
scan the images with 150 DPI
D.
scan the images with 600 DPI
E.
scan the images that are ideal for a magazine

Answers

Answer: D. Scan the images with 600 DPI

Explanation:

Answer: D. Scan the images with 600 DPI

Explanation: Correct for Plato/Edmentum

I CANT DO SKIN MODS ON BRAWLHALLA RIGHT!!!! IM SO MADDDDDDDDDDD

Answers

I'm better then u in brawhlla

You were recently hired by a small start-up company. The company is in a small office and has several remote employees. You have been asked to find a business service that would accommodate the current size of the company, but would also be able to scale as the company grows. The service needs to provide adequate storage, as well as additional computing power. Which cloud service model should you use

Answers

Answer:

Infrastructure as a Service (IaaS)

Explanation:

Infrastructure as a Service, are services based online that provide a client with required server infrastructures including networking services, storage services, virtual environment services, security, processing services based, and scaling by using high-level API's that redirects the low-level data of the underlying network on a leasing or rent arrangement, such that the operation and maintenance cost of the servers are taken care of by the service provider.

Examples of hardware that computes on a network can share are the operating system and the web browsers

Answers

Answer:

False.

Explanation:

The hardware component of a computer can be defined as the physical parts or peripherals that enables it to work properly. Some examples of hardware components are monitor, speaker, central processing unit, motherboard, hard-drive, joystick, mouse, keyboard, etc.

A software component of a computer comprises of software application or program that are used by the computer to manage or control software application, computer hardware and user processes. Some examples of software components are operating system, registry keys, antivirus, media player, word processor, etc.

In conclusion, the hardware components of a computer are the physical parts that can be seen and touched while the software components cannot be touched but rather are installed as a program.

Hence, examples of software but not hardware that computers on a network can share are the operating system and the web browsers

Which of the following are causes of a run-time error. Choose all that apply.
A user enters a numeric value when a text value was expected.
A user enters text and numeric values.
A user enters a text value when a numeric value was expected.
A user enters a negative number when a positive number was expected.

Answers

Answer:

A C D

Explanation:

just did it

Answer:

A.  A user enters a numeric value when a text value was expected.  

C. A user enters a text value when a numeric value was expected.

D. A user enters a negative number when a positive number was expected.

Explanation:

what is computer assisted translation​

Answers

Answer:

the use of software to assist a human translator in the translation process.

Explanation:

In today's e - commerce world, 'Disintermediation' may only affect intermediaries who are not performing value added services to customers. Do you agree with this statement? Explain why?

Answers

Answer:

No

Explanation:

Although 'Disintermediation' does affect these intermediaries I believe it also affects those that 'are' providing valuable services. This is because many other factors come into play when deciding to reduce intermediaries. Sometimes when a company has various intermediaries, a single one can provide the same value as two, therefore, for the company, it is more valuable to reduce the number of intermediaries that they have and provide more resources to fewer intermediaries so that they perform better for less pay. This is one of a few reasons why it can affect any intermediary, not just the ones that do not provide value.

Which of the following images illustrates safe driving?

Answers

Answer:

bottom left

Explanation:

Answer:

keep your eyes on the road!!!!

Who has gotten a random file link from someone? What file does it contain?

Answers

Answer:

those are bots , just report those

Explanation:

I got it but I didn’t download it cuz it looks sketchy he literally posted that same link to everyone who has made a question so I would advise not to download it

She goes to look at her
HTML code to see what is wrong line by line until she can figure out what she
messed up. Which process is Ana using?

A. Fragmentation
B. Identification
C. Pinpoint
D. Debugging

Answers

Debugging is the answer

The process is Ana using is Debugging. Check below to see what the term is all about.

What is debugging used for?

Debugging is known to be the act of working on how a given program runs, and also how it creates data so as to be able to defects and know issues in a given code.

Note that since she goes to look at her HTML code to see what is wrong line by line until she can figure out what she messed up, she is engaged in debugging.

Learn more about Debugging from

https://brainly.com/question/163290

#SPJ2

what's wrong with this python code i don't know what's wrong with both of them

Answers

Answer:

Keep it in the format

first one:

def swapping_stars():

   line_str = ""

   for line in range(6, 8):

       for char in range(0, 6):

           if line % 2 == char % 2:

               line_str = line_str + "*"

           else:

               line_str = line_str + "-"

           print(str(line_str))

swapping_stars()

second one:

if you want it to go:

23456

def print_numbers(list):

   for i in range(1, len(list)):

       print(str(list[i]))

num_list = [1, 2, 3, 4, 5, 6]

print_numbers(num_list)

if you want it to go

123456

def print_numbers(list):

   doneONE = False

   for i in range(1, len(list)):

       if not doneONE:

           print(str(list[i] - 1))

           doneONE = True

       print(str(list[i]))

num_list = [1, 2, 3, 4, 5, 6]

print_numbers(num_list)

Explanation:

Need help:(!!!! I’ll mark brainliest if correct

Select the correct answer.
Which software development team member would make the most use of the tool, Load Runner?
A.
software engineer
OB.
programmer
OC.
business analyst
OD
tester

Answers

Answer:

software engineer is the answer

Explanation:

g

(50 POINTS) A folder has been shared with other users and set to read-only. What does this mean for users?
Users can only read the name of the shared folder.
Users cannot add new folders or files.
Users can read and edit files.
Users can add new files but not new folders.

Answers

i believe it would be “users cannot add new folders or files” i think they can only read what’s in the folder.

Answer:

B

Explanation:

Imagine you are the human resource director for a small video game company that employs around 20 coders, managers, artists, etc. You're in charge of writing the safety rules and regulations for the company. Provide at least four discrete rules you would implement

Answers

Answer: maybe not put cheats no secret or easter eggs or hard challenges im not sure

Explanation:

The four discrete rules one  would implement can be

Provide no confidential company information to anyone who is not an employee of the company.Acknowledge sources obtained from other people's games or anything else with a copyright claim.Avoid abusing your power by cheating or abusing the games to benefit yourself or your associates.Maintain a positive workplace culture and show the utmost respect to everyone to increase productivity.

What is a  manager?

A manager refers to a person who is responsible head of any project and helps in arranging the resources, checking the progress, and timely completion of it in order to achieve the vision and goal of the organization.

Preventing workplace diseases and injuries, as well as the suffering and financial burden they can bring on employees, their families, and employers are the fundamental objective of safety and health initiatives.

Learn more about managers, here:

brainly.com/question/29023210

#SPJ5

How do we know if we can believe the things on the internet?

Answers

Answer:

you have to check for reliability

Explanation:

Answer:

you can't always believe the internet some stuff is false are bended

Explanation:

yea

The cell is intersection of column and row. true or false

Answers

Answer:

True

Explanation:

where a row and column meet. Columns are identified by letters (A, B, C), while rows are identified by numbers (1, 2, 3). Each cell has its own name—or cell address—based on its column and row

~Hope this helps

Answer:

True

Explanation:

i really want to know the best way to deal as much heart as possible plz tell me

Answers

Answer:

Set aside time every day for doing something that feels positive, whether that’s journaling, meeting up with a close friend, or watching a show that makes you laugh. Scheduling in moments that bring you joy is vital for healing a broken heart. It’s important to talk about your feelings with others and not numb yourself out.

Explanation:

secgcdesxeeeddfsexdddffdf

Stages of reverse engineering

Answers

Answer:

Capture Data, Refine the Model, and then Manufacture it.

Explanation:

What form of infrastructure improved trade and communication among Roman cities?

aqueducts
canals
reservoirs
roads

Answers

Answer:

aqueducts

Explanation:

Answer:

c

Explanation:

How is the OR (||) logical operator used?
PLS HURRY

Answers

Answer:

The answer is below

Explanation:

A logical operator is a symbol or word used to connect two or more expressions such that the value of the compound expression produced depends only on that of the original expressions and on the meaning of the operator. Common logical operators include AND, OR, and NOT.

What is the check digit for the following original product number: 140501941 ? *

a)10
b)7
c)5
d)2

Answers

Explanation:

I think it is 7, but I could be wrong..... sorry

Irene is creating a wireframe of a website she is working on to show her client. In which phase of the development process is she?

A. planning

B. design

C. development

D. testing

Answers

Answer:

The Answer Is B: Design

Explanation:

I took the test on edmentum and it was correct your welcome m8 :)

Select the correct answer from each drop-down menu.
Complete the following sentences.

_________ effort is an important and necessary factor for the success of any project. In software development projects,
_______team members carry out several tasks to ensure the quality of the process and the final product.

Options for the first box are: managers, A teams, an individuals

Options for the second box are:internal, specific, external

Answers

Answer:

First, A teams, Second ,Specific

Explanation:

the _____tool is used to move the selected text to the right of the page ( align text right. / Align text left)​

Answers

Answer:

align text right

Explanation:

A(n) ________ HTML tag is used to mark information about the page.

Metadata

Mead

img

Hyperlink

Answers

An Metadata HTML tag is used to mark information about the page.

What are HTML element?

An HTML element are known to be a kind of HTML document parts, one of plenty types of HTML nodes.

Note that an HTML document is made up of a tree of some specific HTML nodes, example is text nodes, and HTML elements, that are said to add semantics and formatting to some areas of document. And so, Metadata HTML tag is used to mark information about the page.

Learn more about HTML tag from

https://brainly.com/question/9069928

Answer: metadata

Explanation: got it right on edgen

Other Questions
the cost of 5 DVDs and a $15 Qu estudia la qumica orgnica? Which of the following is the most historically accurate assessment of the Theory of Divine Rights?A. People in the 15th Century knew it was an absurd theory, but were powerless in the face of a Church supported monarchy.B. That God created an orderly world and would place certain people in positions as monarchs, to rule in his behalf was a logical idea based on the beliefs of the 15th Century.C. Divine Rights for most people made sense because people were incapable of the kind of logical and reasoned thought we have today.D. Divine Rights of Kings mimicked what people saw in nature, where certain animals such as the lion appeared to rule as if by divine right. Which expression is equivalent to -6(3x-2/3) How many grams of carbon dioxide will be produced if 76.4 grams ofC2H3Br3 reacted with 49.1 grams of O2? How many grams of theexcess reactant will be left after the reaction is over? Consider the equation: C2H3Br3+O2 -> CO2+H2O+Br2 11Select the correct answer.Who did the speaker think was "rapping at the chamber door?.an illusion.a raven.a maidenODa visitorby Edgar Allen Poe (adapted excerpt)Once upon a midnight dreary, while I pondered weak andwearyOver many a quaint and curious volume of forgotten lore,While I nodded, nearly napping suddenly there came atappingAs of some one gently rapping rapping at my chamber door.Tis some visitor,' muttered, tapping at my chamber door-Only this, and nothing more.Ah distinctly I remember it was in the bleak DecemberAnd each separate dying ember wrought its form upon thefloorEagerly I wished the morrow: -- vainly I had sought toborrowFrom my books surcease of sorrow - sorrow for the lostLenoreFor the rare and radiant maiden whom the angels nameLenoreNameless here for evermore,And the silken sad uncertain rustling of each purple curtainThrilled me filled me with fantastic terrors never feltbeforeSo that now, to still the beating of my heart. I stood repeatingTis some visitor entreating entrance at my chamber door-Some late visitor entreating entrance at my chamber door-This it is, and nothing more.ResetNext 2. PLS HELP NO LINKS JUST ANSWERS THANKS 4. Why was John Q made the doctor? In what county and state did Harriet collect most of her slaves fugitives? guys, can I have some help? Study the equation below.25 = 2x + 3Which equation has the same solution A 28 = 2xB 22 = 2xC 50 = x + 3D 25/2 = x + 3 I need help please help me!!!! 9xy + 6ab + 2xbThe expression consists of ? terms, and each term contains ? factors Which statement best describes the Louisiana Purchase?The US sent two representatives to buy the Louisiana Territory from France in 1803.Napolon bought the Louisiana Territory from the US in 1803 and began governing immediately.President Jefferson and Napolon fought over the Louisiana Territory in 1803, and the US won.President Jefferson stopped the sale of the Louisiana Territory in 1803 because it was unconstitutional. why the German citizens loved the message that Adolf Hitler was saying to them? Please help me I really need this thanksWill give brainiest what type of triangle is shown below check all that apply In the above figure, mP = 125 and mQ = (5x). If angles P and Q are supplementary angles, what are the value of x and the measure of angle Q? Read the following lines from "The Simulacra":bluish tinge of the elms, steepnessof the other's eyes, glowworm hidden in its own glint...Which best explains the technique the author is using?A. The poet compiles a list of strange images to create an interestingtone.B. The poet focuses on describing a single object to make it seemcomplexC. The poet emphasizes intimate feelings by using commonsymbols. Why was Elizabeth I one of the greatest English rulers in history?