Concept explainers
Wi-Fi Diagnostic Tree
Figure 3-23 shows a simplified flowchart for troubleshooting a bad Wi-Fi connection. Use the flowchart to create a
Reboot the computer and try to connect.
Did that fix the problem? no [Enter]
Reboot the router and try to connect.
Did that fix the problem? yes [Enter]
Notice that the program ends as soon as a solution is found to the problem. Here is another example of the program’s output:
Reboot the computer and try to connect.
Did that fix the problem? no [Enter]
Reboot the router and try to connect.
Did that fix the problem? no [Enter]
Make sure the cables between the router & modem are plugged in firmly.
Did that fix the problem? no [Enter]
Move the router to a new location.
Did that fix the problem? no [Enter]
Get a new router.
Figure 3-23 Troubleshooting a bad Wi-Fi connection
Want to see the full answer?
Check out a sample textbook solutionChapter 3 Solutions
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
Additional Engineering Textbook Solutions
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
Database Concepts (8th Edition)
Programming in C
Starting Out with C++: Early Objects
Computer Systems: A Programmer's Perspective (3rd Edition)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
- Hands-On Activity 4-4 BuzzButtons is a novelty item company manufacturing personalized lapel buttons that buzz randomly. The buttons are marketed as a conversation starter, and the company's slogan is "It starts the buzz!" The owner is promoting his buttons by offering them at 99 cents each. He wants you to design a program asking the user for his or her name for the button, an e-mail address, and the number of buttons to order. The program should then add a 6% sales tax and a flat shipping rate of $2.00. The program displays the information the user enters as well as the button price total, sales tax amount, shipping amount, and order total. The company contacts the user by e-mail later for shipping address information. Using pseudocode, design an algorithm that asks the user for the number of fixed-price items to order, adds sales tax and flat-rate ship- ping, and displays the result. Save your pseudocode file in Notepad as buzzButtons.txt.arrow_forwardTask using C language Two spacecrafts are traveling at different speeds from Earth to Mars. While spacecraft A doubles its speed every day, spacecraft B triples its speed in the same period. Given their initial speeds, your task is to determine how many days spacecraft B will take to travel faster than spacecraft A. If the initial speed of spacecraft A is 7, it will be 14 after 1 day, 28 after 2 days, and so on. If the initial speed of spacecraft B is 4, it will be 12 after 1 day, 36 after 2 days, and so on. If the initial speed of spacecrafts A and B are 7 and 4, respectively, B will be faster than A after 2 days, as the speed of A will be 28 and the speed of B will be 36. Requirements Follow the format of the examples below. You will be given several test cases in a single run, and you must provide an answer for all of them. Use #define Examples (your program must follow this format precisely) Example #1 Number of cases: 3Speed of A: 7Speed of B: 4Case #1: 2 day(s)Speed of A:…arrow_forwardComputer Science Godot Programming Programming Problem 1. Rock, Paper, Scissors This is your traditional rock-paper-scissors game, where two players select one of the three options and a result is produced based on their selection. For reference: Rock beats scissors Paper beats rock Scissors beats paper For this problem, you are to assume that two human players will play against each other and will input their choices accordingly. The input for each player will be in the form of buttons. Once a player clicks on a button, the rest of their buttons are locked in place (i.e. disabled). Once the other player selects their pick, the program outputs who won or if there was a draw. This isn’t exactly the most realistic way to code the game as it would be better if both players made their choice at the same time, but we’ll just have to chalk this up as a limitation for our exam. Aside from the game itself, the program should track the score of each player. Basically, if one wins, that…arrow_forward
- PROGRAMMING LANGUAGE: C++ TASK 1. You are required to create a simulation of an elevator system. There are 7 floors in a building. A user may enter the elevator and press the button of the destined floor. The simulation should display appropriate messages while moving towards the destined floor. Task 2. Write a program that takes +,-,*, and / operators and performs the required operation. the program will continue to execute until ESC key is pressed. Also, the usage of post-test loop and switch statement is mandatory.arrow_forwardInterest Rates Savings accounts state an interest rate and a compounding period. If theamount deposited is P, the stated interest rate is r, and interest is compounded m timesper year, then the balance in the account after one year is P⋅(1+rm)m. For instance, if$1000 is deposited at 3% interest compounded quarterly (that is, 4 times per year), thenthe balance after one year is1000⋅(1+.034)4=1000⋅1.00754=$1,030.34.Interest rates with different compounding periods cannot be compared directly.The concept of APY (annual percentage yield) must be used to make the comparison. TheAPY for a stated interest rate r compounded m times per year is defined byAPY=(1+rm)m−1.(The APY is the simple interest rate that yields the same amount of interest after oneyear as the compounded annual rate of interest.) Write a program to compare interestrates offered by two different banks and determine the most favorable interest rate. SeeFig. 4.24.arrow_forwardStandard Voltage Classification The Philippine Grid Code and Philippine Distribution Code define the following voltage levels: Low Voltage: a voltage level not exceeding 1kV Medium Voltage: exceeding 1 kV up to 34.5 kv High Voltage: exceeding 34.5 kV up to 230 kV Extra High Voltage: exceeding 230 kV up to 765 kv Ultra High Voltage: exceeding 765 kV (assumed) Make a Matlab program that will ask the user to input a voltage value in kV and the program will classify it according to the standard voltage classification Sample Output: >>voltlvl Input a voltage value in kV: 138 138 kV is a high voltage levelarrow_forward
- flowchart in visual basicarrow_forwardProblem Description The hailstone sequence is defined as the integer sequence that results from manipulating a positive integer value n as follows: If n is even, divide it by 2 (using floor division) • If n is odd, multiply it by 3 and then add 1 Repeat this process until you reach 1. For example, starting with n = 5, we get the sequence 5, 16, 8, 4, 2, 1. If n is 6, we get the sequence 6, 3, 10, 5, 16, 8, 4, 2, 1. If n is 7, we get 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1. If n is 8, we get the sequence 8, 4, 2, 1. As far as anyone can tell, this process will eventually reach 1 for any starting value, although mathematicians have been unable to formally prove this property as of yet. a. Write a Python function named hail () that takes a single integer argument. hail() should print out the sequence of numbers generated by applying the process above to the function parameter. This function does not return any value.arrow_forwardINFS3410 Practice Questions Chapters 1, 2 and 3 The Following is an example run of an educational program for school children. The program help kids to practice their additions and subtraction skills. Your task is to develop a program that can achieve the same exact thing. Bear in mind the following important guidelines: - The user may choose between additions and subtractions - The user may choose the difficulty level (easy, medium, hard) - The program should display 5 questions and calculate the total score - No two questions should be the same Please enter your name: Hafedh AlShihi ************** Hello Hafedh AlShihi Welcome to our Additions / Subtractions Practice ****k********* Which operation you want to practice? Type 1 for Additions, or Type 2 for subtractions: 2 Please select your difficulty level Type 1 for Easy (numbers 1 to 10) Type 2 for Medium (numbers 10 to 100) Type 3 for Hard (numbers 100 to 1000) 1 Here are 5 easy-level subtraction questions, please attempt all: How…arrow_forward
- Direction: Read each sentence/ situation carefully and select the BEST answer among the choices. 1. It is a Boolean expression that tells when the loop will exit. 2. The sequence that makes up the loop body may either be a block of Turbo C statements or a single Turbo C statement. 3. In Turbo C it is a reserved word. 4. Its values determine the number of times the loop iterates. 5. It is the second type of open-ended loop. Condition For Loop Statement For Do while Looparrow_forwardName Format - Use Javaarrow_forwardHappy Numbers Programming challenge description: A happy number is defined by the following process. Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops endlessly in a cycle which does not include 1. Those numbers for which this process ends in 1 are happy numbers, while those that do not end in 1 are unhappy numbers. Input: Your program should read lines of text from standard input. Each line contains a single positive integer, N. Output: If the number is a happy number, print 1 to standard output. Otherwise, print 0. 1 process.stdin.resume(); 2 process.stdin.setEncoding('utf8'); 3 4 let stdin = ''; 5 process.stdin.on('data', (chunk) => { stdin = '$(stdin)${chunk}"; 7)).on('end', () => { 6 9 8 const lines = stdin.trim().split('\n'); for (const line of lines) { process.stdout.write('$(line)\n'); 10 11 } 12 }); 13 H > Test Case Output & G earrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr