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 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 ?,? 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. 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:
Notes
In: Computer Science
Write a JAVA application that asks elementary students a set of 10 math problems
In: Computer Science
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 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:
In: Computer Science
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 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 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, 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 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.
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.
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 needed to create webpages.
a. |
storyboards |
|
b. |
domain name |
|
c. |
expression builder |
|
d. |
GUI |
1 points
Question 75
When an HTML document includes a script, it is included the ____ section.
a. |
body |
|
b. |
comment |
|
c. |
active content |
|
d. |
head |
Question 77
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
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
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
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
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
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
City-wide wireless networks are often called ____.
City broadband
a. |
LANs |
|
b. |
Muni Wi-Fi |
|
c. |
PANs |
|
d. |
City broadband |
1 points
Question 92
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
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
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
The MiFi device is produced by the company ____.
a. |
Nokia |
|
b. |
Samsung |
|
c. |
Novatel |
|
d. |
AT&T |
1 points
Question 96
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
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
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
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
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 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