Questions
complete the program #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int main(int argc, char**...

complete the program

#include <cstdlib>
#include <iostream>
#include <iomanip>
using namespace std;
int main(int argc, char** argv)
{
int number, sum, count;
// Write a while loop that reads a number from the user and loop
// until the number is divisible by 7
cout << "What is the number? "; cin >> number; while ( ... ) { ... }
cout << number << " is divisible by 7!! << endl << endl;
// Write a for loop that counts down from 10 to 0
// Write a for for loop that adds up all the numbers from 1 to 512
// Write a while loop that reads numbers from the user. Each number must be
// between 0 and 100 (inclusive). The loop ends when the user enters -99.
// Print the average of all the numbers. sum = count = 0;
cout << "Enter number between 0 and 100: "; cin >> number;
while ( ... ) { if (number ... || number ... )
cout << "Not in the range. Skipping" << endl;
else { // count the number of entries and the total sum. ... }
cout << "Enter number between 0 and 100: "; cin >> number;
}
cout << "The average is:" << fixed << setprecision(2) << float(sum) / count << endl; return 0;

In: Computer Science

What four main types of actions involve databases What are the responsibilities of the DBA and...

What four main types of actions involve databases

What are the responsibilities of the DBA and the database designers?

What is the difference between controlled and uncontrolled redundancy? Illustrate with examples

In: Computer Science

Write a function in Python that solves the linear system ??=? using Gaussian Elimination, taking ?,?...

Write a function in Python that solves the linear system ??=? using Gaussian Elimination, taking ?,? as input. The function should have two phases: the elimination phase, and the back substitution phase. You can use numpy library.

In: Computer Science

Hotel Occupancy C++ Only Program Description Write a program that calculates the occupancy rate for a...

Hotel Occupancy

C++ Only

Program Description

Write a program that calculates the occupancy rate for a hotel. The program should read its data from a file named "hotel.dat". The first line of this file will be a single integer specifying the number of floors in the hotel. Each of the remaining (N) lines will have two integers; the number of rooms on that floor and the number of occupied rooms on that floor.

Your program should display the following:

  • How many rooms the hotel has,
  • How many rooms are occupied,
  • How many are unoccupied, and
  • The percentage of rooms that are occupied.

Notes

  1. Your program should be named hotel.cc.
  2. You can build this program initially to read from the keyboard, get that working, and then modify the program to read from the file.
  3. You will need to create the "hotel.dat" data file.

In: Computer Science

Write a JAVA application that asks elementary students a set of 10 math problems First ask...

Write a JAVA application that asks elementary students a set of 10 math problems

  1. First ask the user for a level and a problem type.
  2. You need to validate the level and problem type and loop until the user enters a correct one.
  3. There should be 3 levels. Level 1 operands would have values in the range of 0-9, level 2 operands would have values in the range of 0-99, and level 3 operands would have values in the range of 0-999.
  4. Each problem will consist of three randomly generated operands.
  5. There should be 4 problem types. Problem type 1 requires the student to find the sum of the three numbers, problem type 2 requires the user to find the integer average of the three numbers, problem type 3 requires the user to find the largest of the three numbers, and problem type 4 requires the user to find the smallest of the three numbers.
  6. The program should ask the user 10 questions.
  7. The program should randomly generate the numbers for each problem and display them to the user. Then the program should get the users answer and check that answer.
  8. The program should provide individual feedback for each problem. There should be 3 different positive and 3 different negative feedbacks chosen from for each problem.
  9. After the user finishes their 10 problems, display the number they got right and then query them if they want to play again. If they choose to play again, get a new level and problem type before asking 10 new problems.

In: Computer Science

In C++, Do some research to find the definitions of single recursion, binary recursion, and multiple...

In C++, Do some research to find the definitions of single recursion, binary recursion, and multiple recursion. What kinds of problems lend themselves to these different forms of recursion? Please be as detailed as possible. Thank you!

In: Computer Science

Java Using NetBean Calculate the interest for a bank account. Your program should use Scanner to...

Java Using NetBean

Calculate the interest for a bank account. Your program should use Scanner to collect account balance and interest rate (input 2.5 for 2.5%), and then output the interest should be paid.

interest = balance * interest_rate;

In: Computer Science

Maximum value and its index in an array java program that: Receive as input in command...

Maximum value and its index in an array

java program that:

  • Receive as input in command line the size of an array (n)
  • Generate an array with numbers between 1 and 100 (inclusive 1 and 100) with the given size (a)
  • Print the array with the format: {a, b, c, ..., x}, for instance {1, 2}
  • Compute and print in the console the following:
    • maximum value in the array
    • one index on which the maximum value appears (a number from 0 to n-1)

In: Computer Science

Using the worst case scenario for a recursive insertion sort on an array of 5 elements...

Using the worst case scenario for a recursive insertion sort on an array of 5 elements {5, 4, 3, 2, 1}

Determine a formula that counts the numbers of nodes in that recursion tree. What is the Big O for execution time.
Determine a formula that expresses the height of the recursion tree. What is the Big O for memory?

In: Computer Science

Use the well-ordering property to prove the division algorithm. Recall that the division algorithm states that...

Use the well-ordering property to prove the division algorithm. Recall that the division algorithm states that if a is an integer and d is a positive integer, then there are unique integers q and r with 0 ≤ r < d and a = dq + r.

In: Computer Science

Q1. What are the three main types for formal verification and can you give names for...

Q1. What are the three main types for formal verification and can you give names for industry tools in formal verification?

Q2. Why IoT verification is not easy?

In: Computer Science

Calculate interest on balances up to 30,000( 3.25% interest) and above 30,000(.25% interest). In this program,...

Calculate interest on balances up to 30,000( 3.25% interest) and above 30,000(.25% interest). In this program, we prompt the user for the balance and output the dividends earned. (example a 10,000 deposit earning 1.15% would earn 10,000*1.15%=$115)

In this program we prompt the user for the anticipated balance and then output the dividends earned.

What formula would you create if you prompt the user for the balance and then display dividends earned?(you can use variable constants, if then statements.

In: Computer Science

JAVA In the last lesson, we wrote a class with methods to print out the song...

JAVA

In the last lesson, we wrote a class with methods to print out the song The Ants Go Marching. Notice that this is a class where there are no instance variables and we don’t really need to generate multiple objects. With students or pets, it makes sense to have multiple objects. With the Song, we can just make the methods static and have just 1 copy of them.

  1. Copy in your class from the last lesson into this active code window. Change the method(s) that print out the verses of the Song to be static. In the main method, change how you call the static methods by using just the classname instead of creating an object.

  2. Add a static variable to the class that keeps track of the number of verses. Increment this variable in the method verse and print it out at the beginning of the verse.

public class Song
{
// Add a static verse counter variable


// Change the method(s) to be static

public static void main(String args[])
{
// Call the static method(s) to print out the Song

}
}

In: Computer Science

Question 74 ​Website creation and management apps and tools provide a(n) _____ and generate the code...

Question 74

  1. ​Website creation and management apps and tools provide a(n) _____ and generate the code needed to create webpages.

    a.

    ​storyboards

    b.

    ​domain name

    c.

    ​expression builder

    d.

    ​GUI

1 points

Question 75

  1. ​When an HTML document includes a script, it is included the ____ section.

    a.

    ​body

    b.

    ​comment

    c.

    ​active content

    d.

    ​head

Question 77

  1. ​With WEP encryption, the key being used to encrypt the data is sent over the network ____ the actual data is encrypted.

    a.

    ​before

    b.

    ​at the same time as

    c.

    ​after

    d.

    ​any of the above are possible

Question 79

  1. ​You include ____ tags in your webpages to provide keywords that search engines can use to learn how to list your site.

    a.

    ​<meta>

    b.

    ​<k>

    c.

    ​<search>

    d.

    ​<keyword>

Question 87

  1. A wireless device’s ____ refers to the physical distance between the access point and the wireless device.

    a.

    ​travel zone

    b.

    ​bandwidth

    c.

    ​network mesh

    d.

    ​range

1 points

Question 88

  1. A(n) ____ local area network is a network in which devices use high-frequency radio waves to communicate with a base station, which is connected to the Internet.

    a.

    ​wireless

    b.

    ​cellular

    c.

    ​ethereal

    d.

    ​wired

1 points

Question 89

  1. All of the following are 802.11 standards EXCEPT_____.

    a.

    ​802.11b

    b.

    ​802.11g

    c.

    ​802.11ad

    d.

    ​802.11a

1 points

Question 90

  1. Any Wi-Fi certified device can connect to any ____ certified access point.11. Any Wi-Fi certified device can connect to any ____ certified access point.

    a.

    ​only an 802.11a

    b.

    ​only an 802.11g

    c.

    ​none of the above

    d.

    ​any 802.11

1 points

Question 91

  1. City-wide wireless networks are often called ____.

    City broadband

    a.

    ​LANs

    b.

    ​Muni Wi-Fi

    c.

    ​PANs

    d.

    ​City broadband

1 points

Question 92

  1. In Wi-Fi terms, a(n) ____ is an area of network coverage.

    a.

    ​wired spot

    b.

    ​hotspot

    c.

    ​access zone

    d.

    ​hot zone

1 points

Question 93

  1. In the beginning of wireless technology, some devices used _____ technology to “beam” information from one source to another source without the use of wired connections.

    a.

    ​air-compression

    b.

    ​xray

    c.

    ​gamma spectrum

    d.

    ​infrared

1 points

Question 94

  1. Second-generation (2G) wireless networks transfer data at a rate of ____.

    a.

    ​14.4 Kbps

    b.

    ​56 Kbps

    c.

    ​14.4 Mbps

    d.

    ​11 Mbps

1 points

Question 95

  1. The MiFi device is produced by the company ____.

    a.

    ​Nokia

    b.

    ​Samsung

    c.

    ​Novatel

    d.

    ​AT&T

1 points

Question 96

  1. The ____ is a not-for-profit organization that certifies interoperability of Wi-Fi products and promotes Wi-Fi as a standard for wireless LANs.

    a.

    ​Mobile Productivity Alliance

    b.

    ​Wireless Initiative

    c.

    ​Wi-Fi Alliance

    d.

    ​W3C

1 points

Question 97

  1. The advantage of a wireless mesh network is that ____.

    a.

    ​it’s less expensive than creating Wi-Fi hotspots

    b.

    ​each device connects automatically to a router

    c.

    ​each new node automatically configures itself to work without the use of cables

    d.

    ​each node on the network is wired directly to the Internet

1 points

Question 98

  1. The connection of your smartphone to your wireless headset is an example of a(n) ____.

    a.

    ​WWAN

    b.

    ​personal area network

    c.

    ​local area network

    d.

    ​access point network

1 points

Question 99

  1. The hotspot created by MiFi is password protected and can be used to connect Wi-Fi devices located within ____ feet of the MiFi device to the Internet.

    a.

    ​5

    b.

    ​30

    c.

    ​10

    d.

    ​20

1 points

Question 100

  1. Which of the following would provide the fastest transfer rate?

    a.

    ​The device is anywhere in the room with the access point.

    b.

    ​The device is the only device accessing the access point.

    c.

    ​The device is close to the access point.

    d.

    ​Device location does not impact transfer rate.

In: Computer Science

Computer Science Design and implement an ADT that represents a triangle. The data for the ADT...

Computer Science

Design and implement an ADT that represents a triangle. The data for the ADT should include the three sides of the triangle but could also include the triangle's three angles. The data should be in the private section of the class that implements the ADT.

Include at least two initialization operations; one that provides default values for the ADT's data, and another that sets this data to client-supplied values. These operations are the class's constructors. The ADT also should include operations that look at the values of the ADT'S data; change the values of the ADT'S data; compute the triangle's area; and determine whether the triangle is a right triangle, an equilateral triangle, or an isosceles triangle.

Code must be written in C++ thanks.

In: Computer Science