Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project Challenge: Algebra Teacher The math teacher at Garfield High School, Mr. Escalante, is looking for new ways to help his students learn algebra. They

Project Challenge: Algebra Teacher

image text in transcribed

The math teacher at Garfield High School, Mr. Escalante, is looking for new ways to help his students learn algebra. They are currently studying the line equation ( y = m * x + b ). Mr. Escalante wants to be able to give his students a phone app that they can use to study for the midterm exam. This is what he'd like the program to do:

The user will be presented with the option to study in one of 3 modes, or to quit the program:

Solve for the value of y, given the values for m, x and b.

Solve for the value of m, given the values for y, x and b.

Solve for the value of b, given the values for y, m and x.

In each mode, all of the given values should be randomly generated integers between -100 and +100. This means that the correct answer must be calculated by the program.

Once the student selects a mode, the program will continue to present randomly generated questions until the student has correctly answered 3 questions in a row. If the student attempts more than 3 questions in a particular mode, a hint about how to solve the problem should be given before the next question is presented.

After the student has correctly answered 3 questions in a row, an overall score (the number of questions answered correctly divided by the total number of questions attempted) should be displayed, and the menu is presented again.

DIRECTIONS

Your program must

define and use custom methods (functions)

use if statements

use while loops

Things to think about when you're designing and writing this program:

Take some time to think about the problem, and break it down into several smaller problems.

Take some time to design and write an outline for your program using pseudo code.

Take some time to think about what methods you will need to design and write for this program.

Take some time to think about where you may use if statements and while loops in your program.

Once you have considered all of the above elements, then start to implement your design in Java.

Remember to choose your variable and method names carefully. Names should be descriptive, and well chosen names can make it much easier to solve the problem.

Project Challenge: Algebra teacher

The math teacher at Garfield High School, Mr. Escalante, is looking for new ways to help his students learn algebra. They are currently studying the line equation ( y = m * x + b ). Mr. Escalante wants to be able to give his students a phone app that they can use to study for the midterm exam. This is what he'd like the program to do:

The user will be presented with the option to study in one of 3 modes, or to quit the program:

Solve for the value of y, given the values for m, x and b. Solve for the value of m, given the values for y, x and b. Solve for the value of b, given the values for y, m and x.

In each mode, all of the given values should be randomly generated integers between -100 and +100. This means that the correct answer must be calculated by the program.

Once the student selects a mode, the program will continue to present randomly generated questions until the student has correctly answered 3 questions in a row. If the student attempts more than 3 questions in a particular mode, a hint about how to solve the problem should be given before the next question is presented.

After the student has correctly answered 3 questions in a row, an overall score (the number of questions answered correctly divided by the total number of questions attempted) should be displayed, and the menu is presented again.

DIRECTIONS

Your program must

define and use custom methods (functions) use if statements use while loops

Things to think about when you're designing and writing this program:

Take some time to think about the problem, and break it down into several smaller problems. Take some time to design and write an outline for your program using pseudo code. Take some time to think about what methods you will need to design and write for this program. Take some time to think about where you may use if statements and while loops in your program. Once you have considered all of the above elements, then start to implement your design in Java. Remember to choose your variable and method names carefully. Names should be descriptive, and well chosen names can make it much easier to solve the problem.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago