Write a program that inputs the length of two pieces of wood in yards and feet (as whole numbers) and prints the total.

Hint: Change all of the inputs into feet first - remember there are 3 feet in each yard. Now that the wood is in feet, find the yards and feet similarly to the last practice, using regular and modular division.

Write A Program That Inputs The Length Of Two Pieces Of Wood In Yards And Feet (as Whole Numbers) And

Answers

Answer 1

The program will be:

yard1 = int(input("Enter the Yards: "))

feet1 = int(input("Enter the Feet: "))

yard2 = int(input("Enter the Yards: "))

feet2 = int(input("Enter the Feet: "))

#For the first step you need to convert the yard to feet.

wood1 = (yard1 * 3) + feet1

print(wood1)

wood2 = (yard2 * 3) + feet2

print(wood2)

yard3 = ((wood1+wood2) // 3) #total feet converted to Yards

feet3 = ((wood1+wood2) % 3)#This is the remainder of feet.

print("Yards: " + str(yard3) + " Feet: " + str(feet3))

What is a program?

A computer program is a set of instructions written using a programming language and executable by a computer. Software contains computer program as well as documentation and other intangible components.

To learn more about program

https://brainly.com/question/23275071

#SPJ13


Related Questions

rmed on a web application where a string of characters is entered and input validation is bypassed to display some additional information. which attack is being performed in the given scenario?

Answers

Without input validation, a user might take advantage of applications like setuid executables or web applications like CGIs to make them act badly by feeding them different kinds of data.

Format string vulnerabilities may be caused by this kind of issue. Any harmful action against a computer system that involves manually putting odd data into a typical user input field is known as an input validation attack. The user may see client-side validation in action. It entails using JavaScript for input form validation. A JavaScript validator, for instance, would provide an error if anything was submitted that did not conform to a phone number or email if the input was submitted for a phone number or email.

Learn more about vulnerabilities here-

https://brainly.com/question/28578902

#SPJ4

you require your users to log on using a username, password, and rolling 6-digit code sent to a key fob device. they are then allowed computer, network, and email access. what type of authentication have you implemented? select all that apply.

Answers

Single sign-on; Multi-factor authentication is the type of authentication have you implemented.

What is an authentication?

Authentication is the act of proving an assertion, such as a computer system user's identification. Authentication is the method of verifying a person's or thing's identity, as opposed to identification, which is the act of indicating that identity. It could entail validating personal identification documents, verifying the authenticity of a website with a digital certificate, carbon dating an artefact, or guaranteeing that a product or document is not counterfeit. Authentication is important in a variety of industries. A recurring difficulty in art, antiques, and anthropology is proving that a certain artefact was created by a specific individual or in a specific area or period of history. Verifying a user's identity is frequently required in computer science to give access to secret data or systems.

To learn more about authentication

https://brainly.com/question/14699348

#SPJ4

Someone help me please…

Answers

Answer:

<I> tag for italics <\I>

color for mark tag and

font sizes for css!

Explanation:

if you use vs code then use I tag for italics and color for mark tag, you need to use CSS for font sizes only. sorry that I don't have any explanation of font sizes because I am in phone rn

write a program to evaluate the following postfix expression. the value of each variable must be asked from the user during the execution time. suppose the postfix expression is tom jerry mickey 23 * - $ and variables tom, jerry, and mickey are int type

Answers

In this exercise we have to use the knowledge of computational language in C++ to write a code that program to evaluate the following postfix expression. the value of each variable must be asked from the user during the execution time.

Writting the code:

#include <bits/stdc++.h>

using namespace std;

// CREATED A CLASS STACK

class Stack

{

public:

int top;

unsigned sz;

int* ar;

};

// VARIOUS STACK FUNCTIONS

Stack* makeStack( unsigned sz )

{

Stack* stack = new Stack();

// BASE CONDITION

if (!stack) return NULL;

stack->top = -1;

stack->sz = sz;

stack->ar = new int[(stack->sz * sizeof(int))];

if (!stack->ar) return NULL;

// RETURNING THE STACK

return stack;

}

// CHECKING IF THE STACK IS EMPTY

int isEmpty(Stack* stack)

{

return stack->top == -1 ;

}

// CHECKING THE TOP OF THE STACK

int whatAtTop(Stack* stack)

{

return stack->ar[stack->top];

}

// POPPING OUT OF A STACK

int pop(Stack* stack)

{

if (!isEmpty(stack))

 return stack->ar[stack->top--] ;

return '$';

}

// PUSHING IN THE STACK

void push(Stack* stack, int op)

{

stack->ar[++stack->top] = op;

}

// EVALUATING POSTFIX STARTS HERE

int postfixEvaluator(string res)

{

// CREATING STACK

Stack* stack = makeStack(res.length());

int i;

// BASE CONDITION

if (!stack) return -1;

for (i = 0; res[i]; ++i)

{

 // CHECK FOR SPACES

 if (res[i] == ' ')continue;

 // CHECK FOR THE DIGIT

 else if (isdigit(res[i]))

 {

  int N = 0;

  // EXTRACT THE NUMBER OUT OF STACK

  while (isdigit(res[i]))

  {

   N = N * 10 + (int)(res[i] - '0');

   i++;

  }

  i--;

  // PUSH THE NUMBER IN STACK

  push(stack, N);

 }

 // POPPING AND ARITHMETIC OPERATIONS

 else

 {

  int pos1 = pop(stack);

  int pos2 = pop(stack);

  switch (res[i])

  {

  case '+': push(stack, pos2 + pos1); break;

  case '-': push(stack, pos2 - pos1); break;

  case '*': push(stack, pos2 * pos1); break;

  case '/': push(stack, pos2 / pos1); break;

  }

 }

}

return pop(stack);

}

// MAIN CODE

int main()

{

string tes;

getline(cin, tes);

string tmp = "";

string res = "";

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

 if (tes[i] <= 'z' and tes[i] >= 'a') {

  tmp += tes[i];

 } else if (tes[i] == ' ' and (tes[i - 1] <= 'z' and tes[i - 1] >= 'a')) {

  cout << "Enter the value of " << tmp << ": ";

  int x; cin >> x;

  res += (to_string(x));

  res += ' ';

  tmp = "";

 } else {

  res += tes[i];

 }

}

cout << "\nThe postfix expression is : " << res;

cout << "\nThe result is : " << postfixEvaluator(res);

return 0;

}

See more about C++ at brainly.com/question/19705654

#SPJ1

why would the ai programmer choose to only calculate an approximate intercept with bounded (clamped) extrapolation for marlena's future truffle position prediction instead of an exact intercept with no extrapolation limit? select all that apply.

Answers

1. The player can change the Truffle direction at any time, so there is little benefit in calculating an exact future intercept.

2. An exact intercept requires sampling the Truffle's position over multiple frames before a prediction can be made, but an approximate intercept can be calculated in a single frame.

What is a truffle ?

Truffle is a world-class development environment, testing framework, and asset pipeline for Ethereum Virtual Machine (EVM)-based blockchains designed to make developers' lives easier. Truffle is widely recognized as the most popular tool for blockchain application development, with over 1.5 million lifetime downloads.

learn more about truffles here :

brainly.com/question/7163966

#SPJ4

A group worker is planning a group that will be conducted over the internet with web-conferencing software that allows people to meet together at a designated time. What type of specialty group is the group worker designing?.

Answers

A Webinar is a type of Web conferencing that resembles a conference but is conducted web - based.

A sort of web conferencing is a webinar. It is exactly like attending a seminar online. For seminars, lectures, workshops, or product and service demos, webinars are useful.

What varieties of web conferencing are there?

Five types of online conferencing

Webinars. This is the name for online seminars, also known as webcasts and web meetings. Web meetings are virtual gatherings that promote conversation among the attendees.Collaboration online.Electronic presentations

In that they occur in real-time, online, and contain a ton of content, video conferences and webinars have a lot in common. But unlike webinars, which are often one-to-many information encounters, video conferences do not.

To learn more about webinars refer to:

https://brainly.com/question/4139475

#SPJ4

A Webinar is a type of Web conferencing that resembles a conference but is conducted web - based. A sort of web conferencing is a webinar. It is exactly like attending a seminar online. For seminars, lectures, workshops, or product and service demos, webinars are useful.

What varieties of web conferencing are there?

Five types of online conferencing Webinars. This is the name for online seminars, also known as webcasts and web meetings.

Web meetings are virtual gatherings that promote conversation among the attendees.

Collaboration online.

Electronic presentations

In that they occur in real-time, online, and contain a ton of content, video conferences and webinars have a lot in common. But unlike webinars, which are often one-to-many information encounters, video conferences do not.

To learn more about webinars refer to:

brainly.com/question/4139475

#SPJ4

in a certain game, a player may have the opportunity to attempt a bonus round to earn extra points. in a typical game, a player is given 1 to 4 bonus round attempts. for each attempt, the player typically earns the extra points 70% of the time and does not earn the extra points 30% of the time. the following code segment can be used to simulate the bonus round.

Answers

The option that is not a possible output of the above simulation in the game is С The player had 3 bonus round attempts and 7 of them earned extra points.

What does simulation mean in games?

Games in the simulation genre are made to resemble actions you could observe in everyday life.

Therefore, note that the game's goal may be to impart some knowledge on you. You could, for instance, learn how to fish. Some simulation games simulate running a business, like a farm or an amusement park.

Learn more about game simulation from

https://brainly.com/question/24030756
#SPJ1

See full question below

In a certain game, a player may have the opportunity to attempt a bonus round to earn extra points. In a typical game, a player is given 1 to 4 bonus round attempts. For each attempt, the player typically earns the extra points 70% of the time and does not earn the extra points 30% of the time. The following code segment can be used to simulate the bonus round.

success - 0

attempts - RANDOM 1, 4

REPEAT attempts TIMES

IF (RANDOM 110 s 7

success - success + 1

DISPLAY "The player had"

DISPLAY attempts

DISPLAY "bonus round attempts and"

DISPLAY success

DISPLAY "of them earned extra points."

Which of the following is not a possible output of this simulation?

А. The player had 1 bonus round attempts and 1 of them earned extra points.

B The player had 2 bonus round attempts and of them earned extra points.

С The player had 3 bonus round attempts and 7 of them earned extra points.

D The player had 4 bonus round attempts and 3 of them earned extra points.

an access tool that walks you step by step through the creation of a report and that gives you more flexibility in the design, layout, and number of fields in a report.

Answers

We can use a program to help you create complex reports called the Report Wizard. When a report has been generated, whether using the Report Wizard or the Report command.

The name given to objects and controls that are built using data found in tables. bound management. A control that gets its information from a query or underlying table; a text box control is an illustration of a bound control.

Access automatically constructs a primary key for you, gives it the field name ID, and the AutoNumber data type when you create a new table in Datasheet view. The primary key can be modified, removed, or set for a table that doesn't currently have one in Design view.

Learn more about Control here-

https://brainly.com/question/14782348

#SPJ4

What affect does friction have on a machine

Answers

Answer:

The friction generates heat, which is an energy that should be converted in movement. That energy, by the form of heat, is a loss.

Decreasing the friction, by lubrication, you will

How did inventors like lee deforest and edwin howard armstrong fund their initial research and development ventures into radio technologies?.

Answers

Government financing was provided for Marconi (England = public mandate; taxes)

- The United States raised funds from investors in capital.

What is meant by radio technologies?

Radio technology, the transmission and reception of communication signals made of of electromagnetic waves that bounce off the ionosphere or a communications satellite or pass through the air in a straight line.

Radio broadcasts that are available 24 hours a day and provide real-time information allow listeners to acquire the most latest news. Radio has the ability to cross international borders and can be a valuable source of news in places where reputable news is difficult to come by.

Radio equipment requires electromagnetic waves to transmit and receive in order to function. The radio signal is an electrical current that moves very quickly. An antenna is used by a transmitter to broadcast this field; a receiver takes it up and transforms it into the audio heard on a radio.

The complete question is : How did inventors like Lee Deforest and Edwin Howard Armstrong fund their initial research and development ventures into radio technologies? How was this different from the funding used by inventors like Guglielmo Marconi in Europe?

To learn more about radio technology refer to:

https://brainly.com/question/4348815

#SPJ1

In which type of computer, data are represented as discrete signals?

Answers

Answer:

Digital computer.

Explanation:

A digital signal is a type of continuous signal (discrete signal) consisting of just two states, on (1) or off (0).

you are working on research for a 3-5 page paper and want to search for books in the library and ebooks. which is the best tool to use for this type of search? group of answer choices films on demand database library catalog/ primo- searching everything ebook collection (ebsco) database you can't search for both books in the library and ebooks

Answers

The best tool to use for this type of search is: library catalog/Primo.

What is a research?

A research is also referred to a study and it can be defined as an investigation which typically involves the process of gathering (collecting) necessary information about a particular thing of interest through the use of various search tools, in order to reach a logical conclusion with results.

What is a library catalog?

A library catalog is also referred to as library catalogue and it can be defined as a register (database) which typically comprises a list of all bibliographic items and resources that are found in a library or group of libraries, usually situated at several locations such as a network of libraries.

In this context, we can reasonably infer and logically deduce that a library catalog or Primo is one of the best tools to use in searching for books in the library, including ebooks.

Read more on library catalog here: https://brainly.com/question/3460940

#SPJ1

31) use scanning software to look for known problems such as bad passwords, the removal of important files, security attacks in progress, and system administration errors. a) stateful inspections b) intrusion detection systems c) application proxy filtering technologies d) packet filtering technologies e) firewalls

Answers

    The logic circuitry that reacts to and processes the fundamental commands that power a computer is known as a processor (CPU). Given that it interprets the majority of computer commands, the CPU is regarded as the primary and most important integrated circuits (IC) chip in a computer.

Which of the following terms describes preventative policies, processes, and technology?

     Information systems are protected from illegal access, modification, theft, and physical damage through rules, procedures, and technology safeguards.

Disaster recovery strategies

        Disaster recovery plans are largely concerned with the technical aspects of maintaining systems, such as whether files should be backed up and how backup computer systems or disaster recovery services should be maintained.

      Identity theft occurs when cybercriminals access a database that contains your personal information.

      Keyloggers: A sort of spyware that keeps track of user activities is a keylogger. Keyloggers can be used in acceptable ways by businesses to keep an eye on employee behavior and by families to monitor their children's online activities.

         Resources are protected by a variety of techniques and technologies, including encryption, intrusion detection systems, passwords, firewalls, and antivirus software. To find intrusion, detection systems are positioned at a network's most vulnerable spots.

To Learn more About  logic circuitry, Refer:

https://brainly.com/question/24708297

#SPJ4

Alchool is a

Please let me know thanks it should be a Depressant or both not sure thanks!.

Answers

The answer should be C. Both A and B

I’m gonna go with C

what conditional programming construct allows a program to select one of three or more distinct outcomes by placing one conditiional construct inside another? question 32 options: loop statement declaration statement nested if statement counting statement

Answers

A conditional programming construct allows a program to select one of three or more distinct outcomes by placing one conditional construct inside another is: C. nested if statement.

The types of control structure.

In Computer programming, there are different types of conditional programming construct and these include the following:

Loop statementNested if statementFor LoopWhile LoopIf/Else StatementIf Statement

What is an if statement?

An if statement can be defined as a type of conditional statement that is written by a computer programmer to handle decisions by running a different set of statements, depending on whether an expression is either true or false.

Similarly, a nested if statement refers to a type of conditional programming construct that is placed inside another if statement in order to test a combination of conditions before selecting the distinct outcomes.

Read more on nested if statement here: https://brainly.com/question/26500953

#SPJ1

ethical hacking chapter 1 what penetration model should a company use if they only want to allow the penetration tester(s) partial or incomplete information regarding their network system?

Answers

A form of security test called penetration testing involves a business hiring a qualified specialist to evaluate the effectiveness of its defense against cyber threats.

These are often carried out by on-site audits of the concerned company. By quickly identifying security flaws in a program, white hat hackers primarily utilize this kind of security testing to defend against black hat hackers. Cyber attacks are now commonplace for businesses. While ethical hacking is a much broader role that employs a greater variety of approaches to avoid different forms of intrusions, penetration testers are mostly focused on doing penetration tests as specified by the customer (EC-Council, 2021b). Web application hacking is a potential area of ethical hacking. hacking a system.

Learn more about hacking here-

https://brainly.com/question/14835601

#SPJ4

you have an azure storage account named storage1. three users use the following methods to access the data in storage1: user1 uses the azure portal user2 uses the azure storage explorer user3 uses file explorer in windows 11 you generate a storage access signature named sas1 for storage1. which user or users can access storage1 by using sas1?

Answers

On Windows, macOS, and Linux, Microsoft Azure Storage Explorer is a stand-alone application that makes working with Azure Storage data simple.

One of Microsoft's most economical storage options, Azure storage offers accessible, reliable, redundant, and scalable storage. The solution to the current storage dilemma is Azure storage. Azure storage's ability to secure your data or applications is one of the main factors contributing to its popularity. The adaptability, simplicity, and ease of scalability of Microsoft Azure storage further contribute to its popularity. Cloud storage management is a simple service.

Although there are many cloud storage choices on the market, businesses strongly favor Azure cloud storage. Azure cloud storage is in high demand because of its scalability, dependability, and enormous storage capacity.

To know more about Azure storage click on the link:

https://brainly.com/question/17086843

#SPJ4

work place communication can suffer when individuals

Answers

You didn’t list any options? But they can suffer when individuals are disrespectful or if they lie about certain things

write a function named safe input(prompt,type) that works like the python input function, except that it only accepts the specified type of input. the function takes two arguments:

Answers

Earlier in Python 2, this function was known by the name raw input. Later, in Python 3, it was given the name "input," which is far simpler. The raw input function is no longer supported in Python 3, thus you won't be able to use it if you're using the most recent Python release.

User input is taken using the input() method in Python. It typically returns user input as a string by default. Python utilizes the input() function to take input from the keyboard. An optional prompt parameter, also known as a string that will be printed on the screen whenever the function is called, is available for this function. A function is defined in Python by using the def keyword, followed by the function identifier (name), parentheses, and a colon.

Learn more about Python here-

https://brainly.com/question/13437928

#SPJ4

For function isreverse, write the two missing base case conditions. Given two strings, this function returns true if the two strings are identical, but are in reverse order. Otherwise it returns false. For example, if the inputs are tac and cat, then the function should return true.

Answers

Answer:

def isrreverse(str1, str2):

       return str1 == str2[::-1]

Explanation:

the following pseudocode contains several nested if- then- else statements.unfortunately, it was written without proper alignment and indentation. rewrite the code and use the proper conventions of alignment and indentation.

Answers

In this exercise we have to use the knowledge of computational language in pseudocode to write a code that several nested if- then- else statements.unfortunately, it was written without proper alignment and indentation.

Writting the code:

If myScore < 60 Then

Display “Your grade is F. ”

Else

If myScore < 70 Then

Display “Your grade is D. ”

Else

If myScore < 80 Then

Display “Your grade is C. ”

Else

If myScore < 90 Then

Display “Your grade is B. ”

Else

Display “Your grade is A. ”

End If

End If

End If

End If

See more about pseudocode at brainly.com/question/13208346

#SPJ1

This process improves system performance by acting as a temporary high-speed holding area between a secondary storage device and the cpu.

Answers

Disk caching improves system performance by acting as a temporary high-speed holding area between a secondary storage device and the CPU.

What is CPU?

A central processing unit (CPU), often known as a central processor, main processor, or simply processor, is the electrical circuitry that processes computer programme instructions. The CPU executes basic arithmetic, logic, controlling, and input/output (I/O) operations provided by programme instructions. This is in contrast to external components like main memory and I/O circuits, as well as specialised processors like graphics processing units (GPUs).

Disk caching boosts hard-disk speed by compressing files. External hard drives are typically used to supplement an internal hard disc. Blu-ray Discs are designed for high quality and have significantly higher storage than DVDs. The actual physical material that contains the data and programmes is referred to as media.

To learn more about CPU

https://brainly.com/question/474553

#SPJ4

computer-assisted questionnaire design refers to software that allows users to use computer technology to develop and disseminate questionnaires and to retrieve and analyze data gathered by the questionnaire. true false

Answers

The statement of computer technology is true.

What do you mean by technology?

Technology is the application of knowledge to achieve practical goals in a predictable and repeatable manner. The term technology can also refer to the outcome of such an undertaking. Technology is widely used in medical, science, industry, communication, transportation, and everyday life. Physical objects such as utensils or machinery are examples of technologies, as are intangible instruments such as software. Many technological advances have resulted in societal shifts. The earliest known technology is the stone tool, which was used in the prehistoric era, followed by fire use, which led to the development of the human brain and language throughout the Ice Age.

To learn more about technology
https://brainly.com/question/13044551

#SPJ4

the basic structure of a involves a perpetrator who sends e-mail messages to a large number of recipients who might have an account at a targeted web site.

Answers

The basic structure of a phishing attack involves a perpetrator who sends e-mail messages to a largenumber of recipients who might have an account at a targeted Web site.

What is a phishing attack?

Phishing attack is a type of cyber attack whereby an email or pop up that appears legitimate is used in asking a victim to share their bank details or credit card information is used to maliciously steal data about the victim for fraud purposes. It done in such a way that it appears like the bank or financial institution is asking for such details.

Here's the complete question:

The basic structure of a _____ involves a perpetrator who sends e-mail messages to a largenumber of recipients who might have an account at a targeted Web site.

a.due diligence process

b.money laundering process

c.chargeback scheme

d.phishing attack

Learn more phishing attack from:

https://brainly.com/question/23993383?referrer=searchResults

#SPJ4

why is optimizing your ad rotation when setting up your ads recommended? users will be able to see more of your ads. you'll be able to serve multiple ads per query. will select the best ad for each auction. users will be able to review your ads more quickly.

Answers

You can choose how frequently the ads within your ad group should be delivered in relation to one another by using the "Ad rotation" parameter.

What role does optimization play?

The goal of optimisation is to provide the "best" solution in relation to a list of constraints of objectives. These include maximising elements like output, fortitude, reliability, endurance, effectiveness, or usage.

What does the workplace optimization process entail?

Optimisation is the art of modifying a system to maximise a given set of characteristics while abiding by some limitations. Reducing costs and maximising throughput and/or efficiency are among the most typical objectives.

To know more about Optimizing visit:

https://brainly.com/question/15319802

#SPJ4

What output will be produced by this Java statement?

System.out.print("3" + (1+6));

A. an error is produced
C. 9
B. 37
D. 10

Answers

A. An error is produced

write a program that takes three integers as input: low, high, and x. the program then outputs the number of multiples of x between low and high inclusive. python

Answers

Using the knowledge of computational language in python it is possible to write a code that program that takes three integers as input: low, high, and x. the program then outputs the number of multiples of x between low and high inclusive.

Writting the code:

low = int(input())

high = int(input())

x = int(input())

count = 0

for i in range(low,high+1):

   if i%x==0:

       count += 1

print(count)

See more about python at brainly.com/question/18502436

#SPJ1

You are working as a software developer for a large insurance company. Your company is planning to migrate the existing systems from Visual Basic to Java and this will require new calculations. You will be creating a program that calculates the insurance payment category based on the BMI score.



Your Java program should perform the following things:



Take the input from the user about the patient name, weight, birthdate, and height.
Calculate Body Mass Index.
Display person name and BMI Category.
If the BMI Score is less than 18.5, then underweight.
If the BMI Score is between 18.5-24.9, then Normal.
If the BMI score is between 25 to 29.9, then Overweight.
If the BMI score is greater than 29.9, then Obesity.
Calculate Insurance Payment Category based on BMI Category.
If underweight, then insurance payment category is low.
If Normal weight, then insurance payment category is low.
If Overweight, then insurance payment category is high.
If Obesity, then insurance payment category is highest.

Answers

A program that calculates the insurance payment category based on the BMI score is given below:

The Program

import java.io.FileWriter;

import java.io.IOException;

import java.io.PrintWriter;

import java.util.ArrayList;

import java.util.Scanner;

public class Patient {

   private String patientName;

   private String dob;

  private double weight;

   private double height;

   // constructor takes all the details - name, dob, height and weight

   public Patient(String patientName, String dob, double weight, double height) {

       this.patientName = patientName;

       this.dob = dob;

       if (weight < 0 || height < 0)

           throw new IllegalArgumentException("Invalid Weight/Height entered");

       this.weight = weight;

       this.height = height;

   }

   public String getPatientName() {

       return patientName;

   }

   public String getDob() {

       return dob;

   }

   public double getWeight() {

       return weight;

   }

   public double getHeight() {

       return height;

   }

   // calculate the BMI and returns the value

   public double calculateBMI() {

       return weight / (height * height);

   }

   public static void main(String[] args) {

       ArrayList<Patient> patients = new ArrayList<Patient>();

       Scanner scanner = new Scanner(System.in);

       // loop until user presses Q

       while (true) {

           System.out.print("Enter patient name: ");

           String patientName = scanner.nextLine();

           System.out.print("Enter birthdate(mm/dd/yyyy): ");

           String dob = scanner.nextLine();

           System.out.print("Enter weight (kg): ");

           double wt = scanner.nextDouble();

           System.out.print("Enter height (meters): ");

           double height = scanner.nextDouble();

           try {

               Patient aPatient = new Patient(patientName, dob, wt, height);

               patients.add(aPatient);

           } catch (IllegalArgumentException exception) {

               System.out.println(exception.getMessage());

           }

           scanner.nextLine();

           System.out.print("Do you want to quit(press q/Q):");

           String quit = scanner.nextLine();

           if (quit.equalsIgnoreCase("q")) break;

       }

       try {

           saveToFile(patients);

           System.out.println("Data saved in file successfully.");

       } catch (IOException e) {

           System.out.println("Unable to write datat to file.");

       }

   }

   // takes in the list of patient objects and write them to file

   private static void saveToFile(ArrayList<Patient> patients) throws IOException {

       PrintWriter writer = new PrintWriter(new FileWriter("F:\\patients.txt"));

       for (Patient patient : patients) {

           double bmi = patient.calculateBMI();

           StringBuilder builder = new StringBuilder();

           builder.append(patient.getPatientName()).append(",");

           builder.append(patient.getDob()).append(",");

           builder.append(patient.getHeight()).append(" meters,");

           builder.append(patient.getWeight()).append(" kg(s), ");

           if (bmi <= 18.5) builder.append("Insurance Category: Low");

           else if (bmi <= 24.9) builder.append("Insurance Category: Low");

           else if (bmi <= 29.9) builder.append("Insurance Category: High");

           else builder.append("Insurance Category: Highest");

           builder.append("\r\n");

           writer.write(builder.toString());

           writer.flush();

       }

       writer.close();

   }

}

Read more about java programming here:

https://brainly.com/question/18554491

#SPJ1

Which software would be most appropriate for creating a short movie that looks as if it is three-dimensional?

Question 7 options:

A) LightWave


B) Adobe PhotoShop


c) CorelDraw


d) Vector Magic

Answers

Answer:

Should be A.

LightWave is a 3d suite.

money counting game create a change-counting game that gets the user to enter the number of coins required to make exactly $1. the program should prompt the user to enter the number of pennies, nickels, dimes, and quarters. if the total value of the coins entered is equal to $1, the program should congratulate the user for winning the game. otherwise, the program should display a message indicating whether the amount entered was more than or less than $1.

Answers

The general-purpose, interactive, object-oriented, and high-level programming language Python is particularly well-liked.

def main():

   pennies=int(input("Enter the Number of pennies : "))

   nickels = int(input("Enter the Number of nickels : "))

   dimes = int(input("Enter the Number of dimes : "))

   quarters =int(input("Enter the Number of quarters : "))

   pennies1=pennies*1

   nickels1=nickels*5

   dimes1=dimes*10

   quarters1=quarters*25

   total=pennies1 +nickels1+dimes1+quarters1

   cash=total//100

   change=total-cash*100

   computeValue(pennies1,nickels1,dimes1,quarters1)

def computeValue(pennies1,nickels1,dimes1,quarters1):

   print("You entered")

   if (pennies1 == 1):

       print ("You have exactely 1 dollar")

   elif (pennies1 < 1):

       print ("You have",pennies1,"which is less than 1 dollar")

   elif (pennies1 > 1):

       print ("pennies:",pennies1,"\nnickels:",nickels1,"\ndimes:",dimes1,

       "\nquarters:",quarters1,"\nYou have",pennies1,"dollars and",pennies1,"cents")

main()

Learn more about nickel here-

https://brainly.com/question/3542561

#SPJ4

Other Questions
4x + 6 -1 x Solve for variable c6c x 88 - 93 = 67 what was a benfit of a grant. In the lab, Jane has two solutions that contain alcohol and is mixing them with each other. She uses 400 milliliters less of Solution A than Solution B. Solution A is 12% alcohol and Solution B is 20% alcohol. How many milliliters of Solution B does she use, if the resulting mixture has 176 milliliters of pure alcohol? Why are your responsibilities as a citizen just as important as your rights? A wheel on Ivan's bicycle is 1.1 m in diameter. Ivan races the bicycle for 165 m. How many times does the wheel turn as the bicycle travels this distance?Use the value 3.14 forn. Round your answer to the nearest tenth. Do not round any intermediate steps. joseph can ride his bike 32 miles in 5 hours. kyle can ride his bike 20 miles in 3 hours who would ride farther in 15 hours explain . Which diagram correctly shades the f-block of the periodic table in blue? Which expression is equivalent to the given expression?2x^2 14r + 24A. (2x 12) (x - 2)B. 2(x 3)(x 4)C. 2(x - 5)(x - 2)D. 2(x 8) (x + 3) What animal would be a prides best option to hunt if the pride requires 106,000 kcals per day if there are 4 hunters that can expend up to 15,000 kcals per day I am stuck on what to do after graphing points A, B and C As a teenager, whenever you have gone out with friends or traveled away from home, you've likely been asked to call and check in every once in a while. Most of us probably don't think much about doing so. We may even talk on the phone with friends or family members several times a day. But pretend for a moment that you are a soldier in the military. You have been sent overseas for several months, away from all of your family and friends, in order to serve your country. You might imagine that the ability to call home and talk with your loved ones would be something to look forward to. But what if those phone calls left you with a $7,600 phone bill? When 14-year-old Brittany Bergquist and her 12-year-old brother Robbie, of Norwell, Massachusetts, saw a news story about a soldier who found himself with just this problem, they decided to help. Robbie recalls, "We were taken aback and wanted to make sure he didn't have to pay that cell phone bill!" They began by raising money. Brittany and Robbie donated 14 dollars of their own savings and collected seven dollars from friends. A local bank heard about what they were doing and donated $500. But $521 was nowhere near the amount needed to help the soldier pay his bill. So Brittany decided to send donated cell phones to the soldiers. This way, they would have their own phone to use when calling home, which would be less expensive. Brittany and Robbie collected as many old cell phones as they could. But there was a problem. Because of security concerns, the Pentagon would not allow phones to be sent overseas. Brittany and Robbie were determined, so they came up with another idea. They found a cell phone recycler in Michigan who would pay them five dollars for each phone they sent in to be recycled. Using that money, they could buy pre-paid phone cards to send to the troops.It didn't take long for the Cell Phones for Soldiers program to take off. Today, there are over seven thousand locations to drop off your old cell phone. The program has recycled over ten million phones since it was started in 2004. Over 180 million minutes of talk time have been given to the soldiers, and each week, about twelve thousand calling cards are sent. The Bergquist family still runs the program largely on their own. Brittany says that her involvement with the charity has helped her learn how to build awareness for a cause, and form relationships with companies that can help. Although she admits that she gets nervous when she has to do something that is out of her comfort zone, she has learned that it is important to overcome her fear so that her charity can continue to grow. She says founding Cell Phones for Soldiers "... has been the most positive and motivating experience of my life..." and that, "It's unbelievable and overwhelming to know that we've been able to help out families that we're never going to see; that we've had an impact on their lives." please compare and contrast it thanks Had Britain taken over lands more than Germany in WW1? Hailey read 48 pages of a book this week. Blake read half as many as Hailey. How many pages did they read combined?A)24B)60C)72D)96 Two countries, the United States and the United Kingdom, produce only one good, saying wheat. Suppose the price of wheat is $2 in the United States and is 1 in England. b) Suppose the price of wheat over the next year is expected to rise to $3.50 in the United States and to 1.5 in the United Kingdom. What should the one-year $: forward rate be? (8marks) Calculate the molarity of a carbonic acid solution given the following titration results: 47.00 mL of the carbonic acid solution was neutralized to a phenolphthalein endpoint with 23.82 mL of 0.1250 M ammonium hydroxide. that I will speak words of encouragement to others because? Provide an example of a situation that can be explained by each of Newton's Three Laws of Motion. -6(x) + y - 8. For x = 3For y = 2 What is a rift science how old the ro A And one simple send a fact! What the rock farther from rift tour right on the edge