Concept explainers
Wi-Fi Diagnostic Tree
Figure 4-11 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
Reboot the router and try to connect.
Did that fix the problem? yes
Notice the program ends as soon as a solution is found to the problem. Mere is another example of the program’s output:
Reboot the computer and try to connect.
Did that fix the problem? no
Reboot the router and try to connect.
Did that fix the problem? no
Make sure the cables between the router and modem are plugged in firmly.
Did that fix the problem? no
Move the router to a new location.
Did that fix the problem? no
Get a new router.
Want to see the full answer?
Check out a sample textbook solutionChapter 4 Solutions
STARTING OUT W/C++,...(LL)-W/ACCESS
Additional Engineering Textbook Solutions
Starting Out with Java: Early Objects (6th Edition)
Starting Out with C++ from Control Structures to Objects (8th Edition)
Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Software Engineering (10th Edition)
Problem Solving with C++ (10th Edition)
- Problem Statement for Picture Frame Program A piece of wire is to be bent in the form of a rectangle to put around a picture frame. The length of the picture frame is 1.5 times the width. Write a program that asks the user to enter the length of the wire and outputs the length and width of the picture frame. Part 1. Understand the ProblemThe problem gets the length of the wire for the frame from the user. The ratio of length to width of the frame is a constant (1.5). The length and width of the picture frame that are to be calculated and displayed. The length of wire represents the perimeter of the rectangular picture frame. The equation for the perimeter of a rectangle is: Perimeter = 2 * (length + width) This is an equation with two unknowns, but the ratio of the lengthto the width (length = ratio * width) so substitute for length in the perimeter equation and solve for width: Perimeter = 2 * (ratio * width + width) ratio * width + width = Perimeter / 2 width * (ratio + 1) =…arrow_forwardparking (Assume the system has a sensor at the entrance gate of the parking): 1- If the cars are between 0-39, a yellow lamp is ON. the counter equal to zero. Q3) Write a ladder program for a system that counts the number of cars entered into a 2- If the cars are between 40-59, an orange lamp is ON. 3- If they are more than 59 a red lamp is ON. After 15s an alarm will start ringing until the 4- The system can start counting from the beginning by press a switch (START) that make 5- Use minimum number of instruction. system turn off the counterarrow_forwardFlowchart You need to program the logic for an autonomous road line painting vehicle. The vehicle (flashes yellow hazard lights during operation) is responsible for painting a solid yellow line when the road bend is 45 degrees or more. When the road curvature is straight (or less than 45), a white dashed line must be painted. At any intersection, the painting must stop and resume once past the intersection. When the vehicle reaches the final destination or at any time, should the paint deplete, the vehicle must stop and the red hazard lights must be turned on. Instructions Develop a flowchart to solve the above problem. You should do this in sufficient detail so that it could be easily translated into a computer program by a programmer. You should upload your flowchart as a JPG or PNG image which can be produced with a drawing program or sketched by hand and taking a clear picture of it.arrow_forward
- Price Calculator in Python Write a complete Python program that asks for the price of an item and the quantity purchased, and writes out the total cost.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_forwardWidgets and Gizmos An online retailer sells two products: widgets and gizmos. Each widget weighs 75 grams. Each gizmo weighs 112 grams. Write a program that reads the number of widgets and the number of gizmos in an order from the user. Then your program should compute and display the total weight of the order.arrow_forward
- C++ Programming Instructions A room has one door, two windows, and a built-in bookshelf and it needs to be painted. Suppose that one gallon of paint can paint 120 square feet. Write a program that prompts the user to input (in feet): The length and width of the door The length and width of each window The length and width of the bookshelf The length, width, and height of the room The area that can be painted with one gallon of paint The program outputs: The amount of paint needed to paint the walls of the room. If I input "14" "5" "10" '10.5" "15 3.72" '15.23" "11.243" "92.77" "103.4" '21.5" "199.54" The output should be "40.259" If I input "55" "32" "33" "77" "33" "22" "15" "2" "225" "240" "14" "20" The output should be "398.15"arrow_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_forwardCar sales commission problem - For each used car a salesperson sells, the commission paid is as follows: $20 plus 30% of the selling price in excess of the cost of the car. Typically, the minimum selling price of the car is the cost of the car plus $200 and the maximum selling price is the cost of the car and $2,000. Write a program that prompts the user to enter the salesperson’s fixed commission, the percentage of the commission, the purchasing cost of the car, the minimum and the maximum amount to be added to the purchasing cost to determine the minimum and the maximum selling price, and outputs minimum and maximum selling price of the car and the salesperson's commission range. As a suggestion, pay particular attention to the formulas would your being requested. I would recommend that you perform the calculations on paper or in Excel prior to programming the solution. Paint usage calculator -A room has one door, two windows, and a built-in bookshelf and it needs to be painted.…arrow_forward
- Part 3: Looping while(x<y) { If(z<0){ x=x+a; } Else{ x=x+z; z= -z } x=x+1; } Instructor Example 1: user input: x=5, y=2, z=5, a=5 x y z a Instructor Example 2: user input: x=2, y=13, z= -1, a=4 x y z a Looping Test Case 1: user input: x=2, y=18, z=10, a=2 x y z a Looping Test Case 2: user input: x=1, y=6, z=0, a=10 x y z aarrow_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_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
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage