Home » 1) What are the values of the variables m and n after the following statements have been executed? int m

1) What are the values of the variables m and n after the following statements have been executed? int m

1) What are the values of the variables m and n after the following statements have been executed? int m = 63; for (int n = 0; m > 0; n ) m = m / 2;2) What is the value of y after the following sequence of statements? What is the value of x?int y = 3; y–; int x = y ;

Need to understand where I am getting error: Given an integer representing a 10-digit phone number, output the area code,
Need to understand where I am getting error: Given an integer representing a 10-digit phone number, output the area code, prefix, and line number using the format (800) 555-1212.Ex: If the input is:8005551212 the output is:(800) 555-1212 Hint: Use % to get the desired rightmost digits. Ex: The rightmost 2 digits of 572 is gotten by 572 % 100, which is 72.Hint: Use // to shift right by the desired amount. Ex: Shifting 572 right by 2 digits is done by 572 // 100, which yields 5. (Recall integer division discards the fraction).For simplicity, assume any part starts with a non-zero digit. So 0119998888 is not allowed.This is what I have so far for this -phone_number = int(input())if (len(phone_number) == 10): print(phone_number[0] phone_number[1] phone_number[2] ‘-‘ phone_number[3] phone_number[4] phone_number[5] ‘-‘ phone_number[6] phone_number[7] phone_number[8] phone_number[9])else: print(‘invalid phone number’)

The next two questions refer to this method: public void switchMethod(String input){ switch(input){ case “apple”: System.out.println(“sauce”); break; case “orange”: System.out.println(“julius”);
The next two questions refer to this method: public void switchMethod(String input){ switch(input){ case “apple”: System.out.println(“sauce”); break; case “orange”: System.out.println(“julius”); case “banana”: System.out.println(“split”); break; case “pear”: System.out.println(“juice”); default: System.out.println(input); }1.What is the output to System out after the following method call: switchMethod(“orange”);Select one:a. sauceb. juliusc. splitd. juicee. None of the Above2.What is the output to System out after the following method call: switchMethod(“strawberry”);Select one:a. sauceb. juliusc. juiced. strawberrye. None of the Above

can you help me meet the listed requirements with the code that ive supplied? REQUIREMENTS the fewest number of guesses
can you help me meet the listed requirements with the code that ive supplied? REQUIREMENTS the fewest number of guesses used in any single gamethe maximum number of guesses used in any single gameimport java.util.*;public class Guess { public static final int maxRange = 2; public static void main(String[] args) { Scanner console = new Scanner(System.in); Random rand = new Random(); intro(); int totalGames = 1; int totalTries = 0; int answer = 1; // int bestGame = 1; //this while loops keeps the game repeating if you want to play again. //Also keep tract of Games played,total guess for each game, and your best game played while(answer > 0) { int currentGame = firstGame(console,rand); answer = playAgain(console,rand); totalTries = currentGame totalTries; if(answer == 0) { answer = 0; } else { answer = 1; totalGames ; } } overallStatistics(totalTries,totalGames); } //This method play’s a random guessing game with you.Returning the amout of guesses //it took you to get the right number public static int firstGame(Scanner console, Random rand) { System.out.println(); System.out.println(“I’m thinking of a number between 1 and 100…”); int randomNumber = rand.nextInt(maxRange) 1; int number = 0; int totalTries = 0; while(number != randomNumber) { System.out.print(“Your guess? “); number = console.nextInt(); totalTries ; if(number > randomNumber) { System.out.println(“To high!”); } else { System.out.println(“Too low!”); } } if(totalTries == 1) { System.out.println(“You got it right in ” totalTries ” guesses!”); } else { System.out.println(“You got it right in ” totalTries ” guesses!”); } return totalTries;} //this method ask if you would like to play again. Return a value back to main. public static int playAgain(Scanner console,Random rand) { System.out.print(“Do you want to play again? “); String s = console.next(); //this return a int depending on on what the word starts with. s = s.toLowerCase(); if (s.startsWith(“y”)) { return 1; } else { return 0; } } //this method prints out the overall statistics of all your games played plus the //best game that you played public static void overallStatistics(int x,int y) { System.out.println(); System.out.println(“Game statistics:”); System.out.println(“games = ” y); System.out.println(“guesses = ” x); double average = 1.0 * x / y; System.out.printf(“guesses/game = %.1fn”, average ); System.out.println(“fewest number of guesses”); System.out.println(“fewest number of guesses”); } // This print out the Haiku with 5 syllables in the first line //,7 syllables in the second line, and the third with 5 syllables. public static void intro() { System.out.println(“This program allows you to play a guessing game.”); System.out.println(“It will think of a number between 1 and 100 “); System.out.println(“and will allow you to guess until you get the number. “); System.out.println(“For each guess, it will tell you whether you have”); System.out.println(“guessed too high or too low.”); } }

Can someone help me with these questions pls all of it? ASAP?!?!!!!!!!!! Display the result after calling remove on node
Programming Assignment Writing ServiceCan someone help me with these questions pls all of it? ASAP?!?!!!!!!!!! Display the result after calling remove on node 10:Q4:Draw the BST that results from inserting the following values in this order: 20, 30, 10, 15, 100, 5, 35Q5:Complete the recursive method sumToN that takes in an integer N and returns the result of summing from 1 to N. eg sumToN(5) = 5 4 3 2 1public static int sumToN(int n) { if (__n==__5_) { _______; } return __________; }

This is in C classstructstdstringWrite the definition of a member function in the LinkedListtransformEach Consider LinkedList class with the following private
This is in C classstructstdstringWrite the definition of a member function in the LinkedListtransformEach Consider LinkedList class with the following private members: LinkedList { private: Node { :: value; Node* next; }; Node* head; }; class called , which takes one parameter, a function that transforms a string into another string, and changes the value in every node to be the result of calling the transformation function on every string. For example, if you had a LinkedList called list containing three nodes with the values “November”, “is”, and “great”, and then you did this:list.transformEach([](const std::string

( Single – Dimensional Arrays ) Examine the script given below and then modify it such that the array will
( Single – Dimensional Arrays ) Examine the script given below and then modify it such that the array will hold six integers. Then run the program and input six distinct integers. Paste a snapshot of the output in the space provided.from array import *SIZE = 4originalArray = array(‘i’, [0, 0, 0, 0])reverseArray = array(‘i’, [0, 0, 0, 0])print (“enter the original array elements”)for index in range(0, SIZE) : print(” please enter an integer: “) originalArray[index] = int(input())print (“noriginal array”)for index in range(0, SIZE) : print(originalArray[index])print (“narray reversed”)for index in range(SIZE – 1, 0 – 1, -1) : reverseArray[index] = originalArray[index] print(reverseArray[index])originalArray.reverse()print (“nreverse array”)for index in range(0, SIZE) : print(originalArray[index])

Write a program to help a local restaurant automate its breakfast billing system. The program should do the following: (a)
Write a program to help a local restaurant automate its breakfast billing system. The program should do the following: (a) Show the customer the different breakfast items offered by the restaurant (b) Allow the customer to select more than one item from the menu (c) Calculate the bill Assume that the restaurant offers the following breakfast items (the price of each item is shown to the right of the item):23 Plain Egg $1.45 Bacon and Egg $2.45 Muffin $0.99 French Toast $1.99 Fruit Basket $2.49 Cereal $0.69 Coffee $0.50 Tea $0.75 Use an array, menuList, of the struct menuItemType, with two components: menuItem of type string, and menuPrice of type double Your program must contain at least the following functions:  Function getData: This function loads the data into array menuList  Function showMenu: This function show the different items offered by the restaurant and tell user how to select the item  Function printCheck: This function calculates and print the check (Note that the billing amount should include 5% tax) A sample output is: Welcome to Daily’s Restaurant Bacon and Egg $2.45 Muffin $0.99 Coffee $0.50 Tax $0.20 Amount Due $4.14 Format your output with two decimal places. The name of each item in the output must be left-justified. You may assume that the user selects only one item of a particular type. this is my coding that i did after getting from the site tutor. but it seems not to work accurately.#include #include #include #include using namespace std;struct Menu{ float PlainEgg; float BaconEgg; float Muffin; float FrenchTost; float Fruits; float Cearel; float Tea; float Coffee;};void getData(struct Menu * s, int c){ if(c==1) cout <> s ->PlainEgg; if(c==2) cout <> s ->FrenchTost; if(c==3) cout <> s ->Fruits; if(c==4) cout <> s ->Tea; if(c==5) cout <> s ->Coffee; if(c==6) cout <> s ->Muffin; if(c==7) cout <> s ->Cearel; if(c==8) cout <> s ->Coffee;}main(void){ struct Menu Price, Cust; int Flag = 1, Choice; float Total, t, Tax = 10; Price.PlainEgg = 1.45; Price.BaconEgg = 2.45; Price.Muffin = 0.99; Price.FrenchTost = 1.99; Price.Fruits = 2.49; Price.Cearel = 0.69; Price.Tea = 0.75; Price.Coffee = 0.50; Cust.PlainEgg = 0; Cust.BaconEgg = 0; Cust.Muffin = 0; Cust.FrenchTost = 0; Cust.Fruits = 0; Cust.Cearel = 0; Cust.Tea = 0; Cust.Coffee = 0; while(Flag) { cout <<"n===============================" << endl; cout <<"Welcome to Daily's Restaurant" << endl; cout <<"==============================="; cout <<"nPress-1 for Plain Egg"; cout <<"nPress-2 for French Toast"; cout <<"nPress-3 for Fruits Basket"; cout <<"nPress-4 for Tea"; cout <<"nPress-5 for Coffee"; cout <<"nPress-6 for Muffin"; cout <<"nPress-7 for Cearel"; cout <<"nPress-8 for Bacon Egg"; cout <<"nPress-9 for Bill"; cout <<"nPress-0 to QUIT "; cout <<"n===============================" << endl; Choice = 10; while(Choice 9) { cout <> Choice; } if(Choice > 0

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more