What's new

Reviewer Coursehero- Twice Unlocking - Services

Status
Not open for further replies.
pa unlock Po

You do not have permission to view the full content of this post. Log in or register now.
Here is your file G O Z A R U sorry sa pag aantay
Keep safe po


Step-by-step explanation
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.TextView;
import android.widget.Toast;


public class MainActivity extends ActionBarActivity {

Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}


Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}

Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();

//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}

return super.onOptionsItemSelected(item);
}

public void calculateTip(View view){

// find the input area and get its contents as a string
EditText input = (EditText) findViewById(R.id.bill);
String inputBill = input.getText().toString();

// if the area is empty, the display a message and return
if (inputBill.matches("")) {
Toast.makeText(this, "You did not enter a bill amount", Toast.LENGTH_SHORT).show();
return;
}

// the input is not empty, so we cast the string to a float
float bill = Float.valueOf(inputBill);

// get the radio button objects to check if they are selected
RadioButton low = (RadioButton) findViewById(R.id.tip_radio_low);
RadioButton mid = (RadioButton) findViewById(R.id.tip_radio_mid);

// declare our tip variable
float tip;

// calculate the tip according to button is selected
if (low.isChecked())
tip = bill * 13 / 100;
else if (mid.isChecked())
tip = bill * 15 / 100;
else
tip = bill * 18 / 100;


// get the text view we are going to fill with the tip
TextView tipView = (TextView) findViewById(R.id.display_tip);

// set it to empty (in case this is the second time someone is calculating a tip
// we want to make sure it is empty)
tipView.setText(String.format(""));

// fill it with the tip we calculated
tipView.setText(String.format("Your tip will be $%.2f.", tip));
}

}
 
Paps pwede po bang magpaunlock kahit mga 6 or 7 files? Medyo alanganin kase ako sa finals activity namen sa programming di kinaya ng brain cells ko

pwede po ba lods Lopyy-chann ? 🥺😟

Salamat in advance po kung makakaunlock
 
lods pa unlock po maraming salamat po in advance
You do not have permission to view the full content of this post. Log in or register now.
Here is your unlock Yezzer sorry po sa pag-aantay
Keep safe po ^^

Answer & Explanation
WRITING

Step-by-step explanation
1.Discuss the cartoons below.

The two cartoons are both presented in black and white. The first one is of two people sited across each other probably in a restaurant having a conversation. They are having a drink as they communicate with each other. The second cartoon is of a child sited on the couch thinking a loid and their mother is sited on a chair beside them jotting down something. The child seems to be deep in thoughts. She seems to be so much engrossed on her writing.

2.What is wrong with statements in the two cartoons?

The statement of the first cartoon, where they are sited across conversing, is based on assumption. They consider that the reason for a warmer climate is global warming while there are many other factors that could cause this. The rate of global warming does not necessarily determine how hot an area will be.

The second statement on the other hand is a generalizing one. The child considers all logic classes difficult just because them and their friend find it hard. Just because it is difficult for the two of them does not necessarily mean that it is entirely difficult. They seem to have been thinking hard about it before coming to this conclusion which is not entirely through.
 
Status
Not open for further replies.
Back
Top