write a java method called printavg that takes in two floating point numbers and prints out the average of them.

Answers

Answer 1

Answer:

public class Main {

   

   public static void printAvg(float a, float b) {

     float avg = (a + b) / 2;

     System.out.println("The average between " + a + " and " + b + " is: " + avg);

 }

   

public static void main(String[] args) {

 printAvg(10.5f, 20.6f); //these numbers are just examples.

}

}

Explanation:

you can use double instead of float, that way you don't have to put the 'f' next to the values


Related Questions

Prompt the user for the name of their favorite hobby and store it in a variable
java

Answers

Below is an example of how you can prompt the user for their favorite hobby and store it in a variable in Java:

import java.util.Scanner;

public class Main {

 public static void main(String[] args) {

   Scanner input = new Scanner(System.in);

   System.out.print("What is your favorite hobby? ");

   String hobby = input.nextLine();

   System.out.println("Your favorite hobby is: " + hobby);

What is the java about?

This code imports the Scanner class from the java.util package, which allows the program to read input from the user. Then, it creates a new Scanner object called input, which reads input from the standard input stream (usually the keyboard).

The System.out.print() method is used to display the prompt "What is your favorite hobby? " on the screen, and the input.nextLine() method is used to read the input from the user and store it in the variable hobby.

So, After the user inputs their hobby, the program will then print the variable hobby to confirm the input.

Learn more about java from

https://brainly.com/question/26789430

#SPJ1

which cellular technology is compromised of hspa and ev-do to provide higher data speeds than previous cellular data protocols?

Answers

The cellular technology that is compromised of HSPA and EV-DO to provide higher data speeds than previous cellular data protocols is called HSPA+ and EV-DO Rev A. Cellular technology refers to the various technologies and standards used for mobile telecommunication.

HSPA, which stands for High-Speed Packet Access, is a 3G (third generation) cellular technology that provides faster data speeds than previous 2G technologies. It uses a combination of Time Division Multiplexing (TDM) and Code Division Multiple Access (CDMA) to increase data transmission rates. HSPA is an evolution of WCDMA (Wideband Code Division Multiple Access), which is the technology used in 3G networks. HSPA+ is an enhanced version of HSPA, which provides even faster data speeds.

Learn more about HSPA, here https://brainly.com/question/14455214

#SPJ4

How would you select a column you want to sort using the A-Z command?
Pilihan jawaban
Select the whole column.
Select several cells in the column.
Select any cell in the data.
Click on a cell in the column.

Answers

To use the A-Z command to sort a column, we should choose any square in the data.

What is a computer command with an example?

A command is a term or phrase that instructs the computer to carry out a certain action whether typed or spoken. For instance, the user would get a listing of files and folders in the subdirectory after running the "dir" command at an MS-DOS prompt and clicking Enter.

What does command mean in Windows?

Sometimes the Command key is utilised similarly to the Windows Control key; for instance, pressing Command-P and Control-P will both print a document. The Logitech's Option key may, however, also perform Windows Control key duties. Look up Control key.

To know more about Command visit:

https://brainly.com/question/28497863

#SPJ4

A technician is writing a batch file script and wants to use a variable called Students and set the starting value to 0. Which command would be used

Answers

Answer:

Batch files can also be run in a command prompt or the Start-Run line. variable-name is the name of the variable you want to set. value is the value.

Explanation:

you have several computers in a domain network. your company develops software that runs on both windows 7 and windows 10. programmers need to have computers that can dual-boot between windows 7 and windows 10. you need to configure each system to meet the programmer's requirements. what should you do?

Answers

Windows 7 and Microsoft 10 dual-boot capable machines are required for programmers. The requirements of the programmer must be configured for each system.

Describe Windows 7 for me?

The goal of Windows 7 was to improve Microsoft Windows incrementally   and address the negative reviews of Windows Vista. By including a redesigned taskbar that supports pinned applications  features, Windows 7 made further advancements to the Windows Aero user interface.

What does Microsoft Windows mean?

Microsoft, the company that created Windows, has registered a number of trademarks, each of which designates a group 

Microsoft, the company that created Windows, has registered a number of trademarks, each of which designates a group 

To know more about the  Window visit :

https://brainly.com/question/8112814

#SPJ4

8.0% complete question an engineer troubleshooting a network connection identifies a port flapping problem. what should the engineer investigate as a possible cause? (select all that apply.)

Answers

An engineer troubleshooting a network connection identifying a port flapping problem should investigate all the possibilities.

What can be different possibilities?

A. Port Security: Port flapping can be caused by port security issues such as a violation of the maximum number of MAC addresses allowed on a port.

B. Ethernet cable: A flapping issue could be caused by a faulty or loose cable, causing the link to go up and down frequently.

C. NIC port: Port flapping could also be caused by an issue with the NIC (network interface card) on the device, such as a hardware failure or driver issue

D. Switch port: The issue could also be caused by a problem with the switch port, such as a configuration error or a malfunctioning port.

What other phrase is used to describe a network of networks?

The Internet is referred to as a network of networks since it is a global system of computers that can communicate with one another thanks to telephone and cable connections. A worldwide network made up of over a million smaller diverse computer networks can be used to define it.

To know more about Troubleshooting visit:

https://brainly.com/question/29736842

#SPJ4

what must hr practices do in order to implement a successful talent management program? (select all that apply.)

Answers

HR procedures must coordinate with one another and support the business requirements of the company in order to successfully implement a talent management program.

What do programs on computers do?

A series of instructions written in a language for a machine to follow is referred to as a computer program. Software, which also contains documents and other intangible components, comprises computer programs as one of its components.

What are software vs. computer programs?

A instructions used to create a computer algorithm to use a software package is known as a computer program. A software package of programs enables hardware to carry out a certain function.

To know more about Program visit:

https://brainly.com/question/14618533

#SPJ4

The data in the MPG Data worksheet were downloaded from the Web site https:/ wiwufuele con any go fegrdowiload, shtml The greenhouse gas scores range from 0 to 10 . where 10 is best. The vehides with the best scores on both ain pollution and greenhouse gas receive the Smortway designation. Use custom filtering to find cars in this data set that meet youncriteria and then copy the smaller data set to another worksheet wherg-you can work with it further. create a custom text filter to show only rows where the trans column contains the word auto.

Answers

A Data Worksheet is a type of spreadsheet that contains information organized in rows and columns. The data in a Data Worksheet is typically used for analysis, manipulation, and visualization purposes.

How to create a custom text filter to show only rows where the trans column contains the word auto?

To filter the data in the MPG Data worksheet and find the cars that meet your criteria:

Select the data range you want to filterGo to Data > Filter > Custom FilterIn the "Trans" column, select "Contains" in the drop-down list and type "Auto" in the input field.Click OK to apply the filterThe resulting filtered data set will show only the rows where the "Trans" column contains the word "Auto".

To copy the filtered data set to another worksheet:

Select the filtered data setRight-click and select "Copy" or use the keyboard shortcut (Ctrl + C)Go to the new worksheet where you want to paste the dataRight-click and select "Paste" or use the keyboard shortcut (Ctrl + V)The filtered data set will be copied to the new worksheet where you can work with it further.

To know more about Data worksheet visit:

https://brainly.com/question/28522697

#SPJ4

How to fix the Apple ‘a server with the specified hostname’ error

Answers

Answer:

A server with the specified hostname could not be found

1. Open the settings of your Apple Device (iPad/iPod/iPhone)

2. Tap on Wi-Fi, then on the "i" behind the Wi-Fi name.

3. Tap on "Configure DNS" and select "Manual".

4. Enter 1.1.1.1.1 and 8.8.8.8.

5. Save & that's it.

Explanation:

who do we blame for the filter bubble? on the roles of math, data, and people in algorithmic social systems

Answers

the weighted algorithms used by social media platforms, marketers, and search engines to customize user experience (UX).

Algorithmic strategy: what is it?

In order to accomplish the desired, which in the present case is described in a sequence of accurate mathematical operations in solving the problem, the Algorithm Technique is a collection of approaches or ways to solve problems.

What do algorithms talents entail?

A byproduct of computer science is the act of writing code and creating programs, which is known as algorithmic thinking. By developing a sequence of systematic, logical stages that take in a certain set of inputs and generate a predetermined set of outputs depending on them, this method automates the problem-solving process.

To know more about algorithmic visit:

https://brainly.com/question/22984934

#SPJ4

You are going to open a file in your program to use what is already in the file.

The program is saved in a folder, which has a subfolder called "dataFiles."

In the textFiles folder is a text file called "games.txt."

Which line of code will open games.txt?


fileIn = open("dataFiles/games.txt","r")
fileIn = open("dataFiles/games.txt","r")

fileIn.open("games.txt","r")
fileIn.open("games.txt","r")

fileIn = open("games.txt","r")
fileIn = open("games.txt","r")

fileIn.open("dataFiles/games.txt","r")

Answers

The line of code that will open games.txt is option  A: fileIn = open("dataFiles/games.txt","r")

What is the program about?

The line of code fileIn = open("dataFiles/games.txt","r") is used to open the file "games.txt" that is located in the subfolder "dataFiles" using the built-in Python function open().

The first argument passed to the open() function is the file path, "dataFiles/games.txt", which tells the program where the file is located. The second argument, "r", specifies that the file should be opened in read mode. This means that the program can read the contents of the file but cannot write to it.

In summary, this line of code opens the file "games.txt" located in the "dataFiles" subfolder and assigns the reference to this opened file to the variable fileIn.

Learn more about programming    from

https://brainly.com/question/26134656

#SPJ1

Answer:

A

Explanation:

question 28 options: a machine learning algorithm that aims to predict the discrete group that an observation belongs to is an example of a problem

Answers

A classification algorithm is a machine learning technique that aims to predict the discrete group to which an observation belongs.

What prediction techniques are used with machine learning?

Based on the learning methodologies, machine learning algorithms are divided into four categories: supervised, semi-supervised, unsupervised, and reinforcement learning.

What algorithms are employed to forecast the values of discrete classes?

Regression and classification algorithms are used to predict and classify discrete values such as Male or Female, True or False, Spam or Not Spam, whereas classification algorithms are used to predict and classify continuous variables such as price, wage, age, etc.

To learn more about machine learning algorithm visit:

brainly.com/question/29769020

#SPJ4

Identify the correct software or hardware applications in the passage below

Answers

Answer: software is a generic term used to refer to applications scripts and programs that run on a device.

Explanation:

how to stop notifications from interrupting music iphone

Answers

put phone on silent

stops phone from making noise

You can put on dnd(do not disturb) and you won’t get while still playing ur music

what should you use with a laptop to avoid frequent insertion and removal of external input and video devices?

Answers

The best way to avoid frequent insertion and removal of external input and video devices with a laptop is to use a docking station.

Docking stations allow you to connect peripheral devices to your laptop without having to plug them in and unplug them each time.

This helps to reduce wear and tear on the ports and connectors, as well as saving time. Additionally, docking stations allow you to use multiple external devices while keeping them all organized and easily accessible.

An external input (EI) is an elementary process that processes data or control information that comes from outside the application boundary .

Learn more about external input

https://brainly.com/question/1245638?source=archive

#SPJ4

true or false: virtual machines do not require dedicated space, and can make direct use of the file system of a host for storing operating system files.

Answers

False. virtual machines do not require dedicated space, and can make direct use of the file system of a host for storing operating system files is a false statement.

Is an operating system necessary for a virtual machine?

Even when they are all running on the same host, each virtual machine has its own operating system and operates independently of the others. This implies that a physical PC may, for instance, host a virtual MacOS system.

What is necessary for the operation of a virtual machine?

To install the system and application software you wish to run, you typically need to have a fast CPU, enough RAM, and a large enough hard drive, just like you would if you were installing it directly on your physical machine.

Without virtualization, can I run a virtual machine?

Using QEMU x86 emulation, it is feasible to operate a virtual computer without hardware virtualization capability. That, however, will imitate every piece of hardware, and the performance won't even come close to native. Additionally, GPU emulation will be exceedingly slow.

To know more about virtual machine visit:

https://brainly.com/question/19743226

#SPJ4

which of the following is not a function of a dbms? a. data storage management b. data presentation management c. user management d. security management

Answers

c. user management. It is not a function of a dbms. Concurrency, security, backup and recovery, integrity, and data descriptions are just a few of a DBMS's features.

What are the DBMS's functions?

Users must be able to store, retrieve, and change data in the database using a DBMS. A DBMS must provide users with access to a catalog where user-accessible descriptions of data items are stored. a source of data outlining the data in the database. likewise called a data dictionary.

A DBMS what is it?

A collection of connected data that includes tools to store and access that data in a quick and efficient way is known as a database management system, or DBMS.

How many different kinds of functions exist in DBMS?

In SQL Server, there are three categories of user-defined functions: Simplified Functions (Returns A Single Value) Table Valued Functions Inline (Contains a single TSQL statement and returns a Table Set) Multi-Statement Valued Table Functions (Contains multiple TSQL statements and returns Table Set).

To know more about database visit:

https://brainly.com/question/518894

#SPJ4

i put windows 11 on a haswell xeon processors. i want to go back to windows 10. do i have to do a complete new install?

Answers

You only have ten days to roll back to Windows 10 after downloading and installing Windows 11. You won't have to worry about any files disappearing if you switch back to the previous operating system because everything on your computer will be immediately repopulated there.

What is a intel processor?

The most widely used CPUs for desktops and laptops worldwide are Intel processors. A variety of model families are available, with names like Core, Xeon, Pentium, and Celeron. They are divided into several generations, such as the ninth, tenth, and eleventh, also known as Coffee Lake, Comet/Ice Lake, and Rocket/Tiger Lake. Additionally, Intel CPUs deliver the finest performance at a reasonable cost. The 13th-generation range of Intel CPUs offers the best value and is more than adequate for the majority of users, even though AMD may be the best CPU in terms of overall power. For computer system producers including Acer, Lenovo, HP, and Dell, Intel provides processors. In addition to CPUs, Intel also produces motherboard chipsets, network interface controllers, flash memory, graphics chips, embedded processors, and other components.

To know more about intel processor visit:

https://brainly.com/question/28905560

#SPJ4

The intersection of a column and a row on a spreadsheet is called a _____.

Answers

Answer:

Cell: A cell is a rectangular area formed by the intersection of a column and a row. Cells are identified by the Cell Name (or Reference, which is found by combining the Column Letter with the Row Number. For example the cell in Column "C" in Row "3" would be cell C3.

Explanation:

Which best describes the arts, a/v technology, and communication cluster?careers that are focused on performing for and communicating with otherscareers that combine technologies to make video recordings possiblecareers that report information to the publiccareers that allow people to express themselves through art.

Answers

The best way to describe the arts, audiovisual technology, and telecommunication grouping is as occupations that centre on exhibiting for and sharing with others.

What are the four main types of communication?

Each person has a distinctive speaking style that they employ while conversing with and teaching to others. There are four straightforward communication styles: strong, aggressive, passive-aggressive, and passive. Understanding each communication technique and the factors that went into its choice is crucial.

Why is communication so important?

In daily life, communicating helps us connect with others, share our needs and experiences, and strengthen our relationships. It allows us the possibility to exchange knowledge, voice our opinions, and feel our feelings.

To know more about Communication visit:

https://brainly.com/question/14665538

#SPJ4

how to fix firestick keeps optimizing storage and applications

Answers

We advise making a backup copy at least once each day. The more duplicates you can actually make, though, the better.

The 3-2-1 rule, which states that you should have at least 3 copies of your data, backup your data to 2 distinct storage devices, and find at least 1 copy offshore, is the best-recommended backup storage method. You were informed that you needed at least three copies of your data via the 3-2-1 backup plan; Data that has been backed up on TWO separate forms of storage, with at least ONE copy offshore. You should have a minimum of three copies of your data overall, including one in your live environment. This implies that you will always have backup copies in the event of a catastrophe. We advise making a backup copy at least once each day. The more duplicates you can actually make, though, the better.

Learn more about Backup storage method here:

https://brainly.com/question/29023776

#SPJ4

. If something is copyrighted, how can it be used?
Pilihan jawaban
Only with credit.
Only with permission.
With credit or in certain "fair use" cases.
With permission or in certain "fair use" cases.

Answers

The Institute was established at the initiative of a group of academics, educators, and researchers.

programs to harmonize politics, economics, education, culture, morals, and ethics. It was believed that the required both discipline mastery and a profound awareness of the Divine Patterns that Allah has outlined in His creation (SWT). The International Institute of Islamic Thought (IIIT) USA's publication of Dr. Ismail Raji al Faruqi's idea on the "Islamization of Knowledge" served as the foundation for this argument. The Book provides the viewpoint of several interested and devoted academics. The Institute was established at the initiative of a group of academics, educators, and researchers.

Learn more about argument here-

https://brainly.com/question/12951100

#SPJ4

with a tenancy at will, either party can terminate without notice. group of answer choices true false

Answers

A tenancy-at-will is a real estate tenure that has neither a written lease nor other contractual obligations and is terminable at any time by either the landlord or the tenant.

What is group ?

A group is really just a collection of people. It can be viewed as a group of people—two or more—who work together and communicate with one another to accomplish the goals of the organisation. They serve as an organization's building blocks. When two or more people band together to work toward a shared objective, a group is formed. The group may be formally established through procedures to assist the organisation in managing its affairs or through simple interaction. Social existence is fundamentally based on groups. They can be extremely small—only two people—or very enormous, as we shall discover.

To know more about group visit:

https://brainly.com/question/14146013

#SPJ4

Vector is the term used to describe the image format that uses digitized pixels to recreate a visual image as readable computer data Points ) True False


Hurry !

Answers

Vector images don't use pixels and they're created with mathematical equations, lines, and curves — using points fixed on a grid.

What is Vector images?Vector artwork is art that's made up of vector graphics. These graphics are points, lines, curves and shapes that are based on mathematical formulas. When you scale a vector image file, it isn't low resolution and there's no loss of quality, so it can be sized to however large or small you need it to be. It's an excellent tool for putting company logos on business cards, creating poster designs, and when photo-shopping in Adobe Photoshop. Any art made with vector illustration software like Adobe Illustrator is considered vector art.In comparison, raster art (also referred to as bitmaps or raster images) is created using colorized pixels. When you enlarge a raster file with pixel-based art too much, the edges look jagged and the quality is lost. The resolution independence vector art displays allows it to be used in a variety of forms, from small illustrations to massive billboards.

To learn more about pixels refer to:

https://brainly.com/question/2894159

#SPJ1

could not initialize class com.android.sdklib.repository.androidsdkhandler

Answers

This error message is indicating that there is a problem initializing the class "com.android.sdklib.repository.androidsdkhandler. This class is a part of the Android SDK, and is used to handle interactions with the Android SDK repository.

The error message suggests that there is an issue with the class being properly initialized, which could be caused by a variety of things such as a missing or outdated SDK, incorrect configuration, or a problem with the class itself. Try to update the Android SDK, check that the SDK path is set correctly, and ensure that the class is included in the project's classpath. If the problem persists, check the Android SDK and developer community for more information and possible solutions.

Learn more about error message, here https://brainly.com/question/29580898

#SPJ4

which component of a data model describes methods and calculations that can be performed on data, such as updating and querying data? question 4 options: data structure operations integrity rules file structure

Answers

Answer:operations

Explanation:

what is the correct way to sort list 'b' using a method? the result should not return a new list, just change the list 'b'.

Answers

The correct way to sort list 'b' using a method where result should not return a new list, just change the list 'b' are:

b = [2, 4, 8, 1, 3]b.sort()

What is method?

Method is a process of collecting, analyzing and interpreting data to answer questions, solve problems and inform decisions. It is an organized approach to problem solving that involves a series of steps including defining the problem, gathering information, analyzing data, drawing conclusions and making recommendations. It is a systematic approach to understanding the behavior of a system, process or phenomenon.

Method is used in all areas of research, from the natural sciences to the social sciences. It is used to identify patterns and trends in data, as well as to develop theories and draw conclusions. Method is an important part of the research process, as it helps researchers to gain a better understanding of the phenomenon they are studying.

To learn more about method

brainly.com/question/27415982

#SPJ4

realistically how long does it take to get rid of bed bugs

Answers

Answer:

you would have to clean the side of your bed or you could just get a new mattress

how to move toolbar in outlook from side to bottom

Answers

To move toolbar in outlook from side to bottom, simply right click on any of the icons and use the Move Up, Move Down, Unpin or Pin commands from the context menu.

The toolbar, also known as a bar or standard toolbar, can be described as a row of buttons, often near the top of an application window, that controls software functions. The boxes are below the menu bar and often contain images corresponding with the function they control. A toolbar mostly provides quick access to functions that are commonly performed in the program. For instance, a formatting toolbar in Mc Excel gives you access to things like making text bold or changing text alignment with other common buttons. In an Inter net browser, toolbars add functionality that may not come pre-installed. For instance, with the G toolbar, you can access exclusive G features.

Here you can learn more about toolbar in the link brainly.com/question/11496721

#SPJ4

When you are entering text, what is the most efficient way to remove the previous four characters to correct a word that you entered incorrectly?
answer choices
Press the DELETE key four times.
Finish typing the word, and then run a spell check.
Press the BACKSPACE key four times.
Double-click the word to select it, then retype it correctly.

Answers

Press the BACKSPACE key four times is is the most efficient way to remove the previous four characters to correct a word that you entered incorrectly.

The BACKSPACE key is a key found on most computer keyboards that is used to delete characters that were previously typed. When pressed, it will delete the character immediately to the left of the cursor. Pressing the backspace key multiple times will delete multiple characters to the left of the cursor. So, if you typed a word incorrectly and you want to remove the last four characters, you can press the BACKSPACE key four times to delete those four characters, and then type the correct word.

A key is a mechanical or virtual component of a computer keyboard that is used to input information into a computer or other electronic device. Keys are typically labeled with letters, numbers, and symbols, and are used to type text, input commands, and control various functions of the computer. There are several types of keys on a keyboard, including letters, numbers, function keys, and special keys such as the SHIFT, ALT, and CTRL keys. Some keys have a specific function, like the Enter key, the Backspace key, and the Delete key, that are used to control the flow of text or input information. The keys on a keyboard can be mechanical or membrane, and they can be used to press and release the switches to send electrical signal to the device.

Learn more about BACKSPACE key here:

https://brainly.com/question/4058287

#SPJ4

Other Questions
A clothing store is having a going out of business sale where every purchase is 35% off the original purchase price, p. Four of the stores cashiers write expressions to determine the same price of any purchase. apply for walmart credit card online instant reply Calculate the rate of return for Walmart under the following scenario: Buy 1 share at $145 per share, sell 1 share at $147 per share. Remember to use the "N-OOO!" equation, and don't forget to multiply your answer by 100 to convert to a percentage. the power or right to act speak or think as one wants without hindrance or restraint an organization that wishes to achieve a competitive advantage through innovation should . multiple choice question. find creative ways to deliver new or improved goods and services figure out how to copy what their competitors do attempt to offer higher-quality goods and services than competitors strive to produce goods and services as quickly as possible using fewer employees The blue curve is the plot of the data. The straight orange line is tangent to the blue curve at t = 40 s. A plot has the concentration of A in molar on the y axis and time in seconds on the x axis. A curve contains the points (0, 0. 52), (20, 0. 43), (40, 0. 35), (60, 0. 29), (80, 0. 24), and (100, 0. 20). A line touches the curve at (40, 0. 35) and has a y intercept of (0, 0. 48). Approximate the instantaneous rate of this reaction at time t = 40 s Made a mess Identify the correct sentence fragment A sticky messThe teenager made a messMade a mess Made a gigantic mess How do you give a guy a love bite? consider a firm that has returns that vary with the economy. it predicts that there is a 20% probability of a strong economy, a 50% probability of a normal economy, and a 30% probability of a weak economy. given a strong economy, the firm expects a 30% return, given a normal economy, argo expects a 10% return, and given a weak economy, argo expects to lose 10%. what is the expected return? in another life i would have been happy doing laundry and taxes with you which is the country where red cable club launched first? for a given non-zero vector v in r3 there is a unique unit vector parallel to it. is it true or false? explain your answer. 31.2.3.Write three sentences describing people you know. Use the verb ser and the indefinitearticles un, una, unos, unas. the period of oscillation of a spring and mass system is 0.54 seconds and the amplitude is 4.900 cm. what is the magnitude of acceleration at the point of maximum extension of the spring 11. What are assets?Oa business organization owned by two or more persons who agree on a specific division of responsibilities and profitsOassessments on a partnership such as taxesmoney and other valuables belonging to an individual or businessa type of partnership in which partners share equally in both responsibilities and liabilities 5 Best No Credit Check Loans With ""Guaranteed Approval"" in 2023 From Direct Lenders selecting a target market involves all of the following steps except 5 DRAWING CONCLUSIONS What was the alternative to the War for Independence? Was the warinevitable? given right triangle ABC with altitude BD down to hypotenuse AC if AC = 25 and BC = 15, what is the length of DC? assume that the united states faces an 8 percent inflation rate, while no (zero) inflation exists in japan. according to the purchasing-power parity theory, the dollar would be expected to