Answer:what qustoin
Explanation:sorry wala yung tanong
Answer:
Please check the explanation
Explanation:
That's the code and it is done with the program in c++ according to instructions given in the question using binary search. It can guess the correct number in 10 or fewer attempts and also shows the number of attempts it took to guess the number.
#include <iostream> using namespace std; int guess() { string input; int l = 1, h = 1000; int mid = (l + h) / 2, count = 0; while (1) { //count the number of attemts to guess the number ++count; //cout << count << "\n"; cout << "\n"; cout << "Is " << mid << " correct? (y/n): "; cin >> input; //if input is y print the guessed no. and return if (input == "y") { cout << mid << " guessed in " << count << " attempts!\n"; return 1; } //if input is n ask the user if it's higher or lower than current guess if (input == "n") { cout << "Is the number greater than or less than the number ? (h/l): "; cin >> input; } //if input is higher assign mid incremented by 1 to low //else decrement mid by 1 and assign to high if (input == "h") l = mid + 1; else h = mid - 1; //calculate mid again according to input by user again mid = (l + h) / 2; } } int main() { cout << "****WELCOME TO THE GUESS THE NUMBER GAME!****\n"; cout << "Guess any number between 1 to 1000.\n"; cout << "This game depends on user giving correct answers and not changing their number middle of game.\n"; guess(); }
Answer:
The pseudocode is as given below in the explanation while the flow diagram is attached herewith
Explanation:
The pseudocode is as follows
input cust_name, num_texts
Set Main_bill=5 $;
if the num_texts is less than or equal to 60
Excess_Charge=0;
If the num_texts is greater than 60 and less than or equal to 200
num_text60200 =num_texts-60;
Excess_Charge=0.1*(num_text60200);
else If the num_texts is greater than 60
num_texts200 =num_texts-200;
Excess_Charge=0.25*(num_texts200)+0.1*(200-60);
Display cust_Name
Total_Bill=Main_bill+Excess_Charge;
Total_Bill_after_Tax=Total_Bill*1.12;
I would want to look at the HTML code on a website when using a Web page editor to change attributes that the editor cannot change. Text editors like Notepad and TextEdit can not only help you learn HTML, but also get things done for you. However, most web developers prefer using a web page editor over text editors because they can help boost productivity.
Explanation:
For instance, say you want to write an opening HTML tag, a web page editor will automatically include the closing tags, thus reducing the typing required. This can pose as an advantage and a disadvantage. By default, HTML supports various tags and includes the autocomplete feature for attributes. Most developers, not matter how smart or experienced they might be, will constantly run into errors. In as much as a HTML editor autocompletes elements found in attributes for you, developers would want to look at the HTML code on a website. It will help them find and correct syntax and runtime errors
Forgetting to put quotation marks on an attribute values, alone, will cause errors. An editor will not change these errors and a developer will be required to review the code and make changes.
Learn more about page editors
brainly.com/question/10002469
brainly.com/question/4004088
#LearnWithBrainly
<u>Software solution with a programming design in place:</u>
Any software development designer plays important roles. Designer first understand software requirement and understand software architecture and deploying the environments. After designed understand he/she has to explain complete process requirement to developer or project manager or project leaders.
In case if the requirement of software designer fails to understand properly whole software development will goes wrong shape. So software design is key person and in later stage any modifications to software development he is responsible to give solutions.
So as conclusion software designer is key roles in software development.