Write a program that lets the user enter the total rainfall for each of 12 months into an array of doubles. The program should calculate and display the total rainfall for the year and the average monthly rainfall. Use bubble sort and sort the months with the lowest to highest rain amounts. Use the binary search and search for a specific rain amount. If the rain amount is found, display a message showing which month had that rain amount. Input Validation: Do not accept negative numbers for monthly rainfall figures.

Answers

Answer 1

Answer:

Program approach:-

Using the header file.Using the standard namespace I/O.Define the main function.Check whether entered the value is negative.Find the middle position of the array.Display message if value not found.Returning the value.

Explanation:

Program:-

//required headers

#include <stdio.h>

#include<iostream>

using namespace std;

//main function

int main()

{   double rain[12], temp_rain[12], sum=0, avg=0, temp;

   int month=0, i, j, n=12, low=0, mid=0, high=12, x, found=0;

   char month_name[][12]={"January", "February", "March", "April", "May", "June",

   "July", "August", "September", "October", "November", "December"};

 

   //store input values to arrays rain and temp_rain

   while(month<n)

   {   cout<<"Enter the total rainfall for month "<<month+1<<" :";

       cin>>temp;

     

       //check whether the entered value is negative

       if(temp<0)

       {   cout<<"Enter a non negative value"<<endl;

       }

     

       else

       {   rain[month]=temp;

           temp_rain[month]=temp;

         

           //total sum is found out and stored to sum

           sum+=temp;

           month++;

       }

   }

 

   //find average rainfall

   avg=sum/n;

 

   //display total and average rainfall for the year

   cout<<"Total rainfall for the year: "<<sum<<endl;

   cout<<"Average rainfall for the year: "<<avg<<endl;

 

   //perform bubble sort on temp_rain array

   for(i=0; i<n-1; i++)    

   {   for (j=0; j<n-i-1; j++)

       {   if (temp_rain[j]>temp_rain[j+1])

           {

               temp=rain[j];

               temp_rain[j]=temp_rain[j+1];

               temp_rain[j+1]=temp;

           }

       }

   }

   //get search value and store it to x

   cout<<"Enter the value to search for a specific rain amount: ";

   cin>>x;

   //perform binary search on temp_rain array

   while (low<=high)

  {

      //find the middle position of the array

      int mid=(low+high)/2;

      //if a match is found, set found=1

      if(x==temp_rain[mid])

      {   found=1;

          break;

      }

       //ignore right half if search item is less than the middle value of the array

      else if(x<temp_rain[mid])

          high=mid-1;

       //ignore left half if search item is higher than the middle value of the array

      else

          low=mid+1;

  }

 

   //if a match is found, then display the month for the found value

   if(found==1)

   {

       for(i=0; i<n; i++)

       {   if(x==rain[i])

               cout<<"Found matching rainfall for this month: "<<month_name[i];

         

       }

     

   }

 

   //display message if value not found

   else

       cout<<"Value not found.";

 

   return 0;

}


Related Questions

Suppose now there are 80 pairs of flows, with ten flows between the first and ninth rack, ten flows between the second and tenth rack, and so on. Further suppose that all links in the network are 10 Gbps, except for the links between hosts and TOR switches, which are 1 Gbps.

Required:
a. Each flow has the same data rate; determine the maximum rate of a flow.
b. For the same traffic pattern, determine the maximum rate of a flow for the highly interconnected topology.
c. Now suppose there is a similar traffic pattern, but involving 20 hosts on each rack and 160 pairs of flows. Determine the maximum flow rates for the two topologies.

Answers

Answer:

Explanation:

Given that:

The no of flow pairs = 80

Each link's capacity = 10 Gbps

Link capacity amongst TOR switches and hosts = 1 Gbps

Because each connection is distributed among all flows, each flow crossing the same link distributes the link's capacity with the other flows. The connection capacity needed by each flow in the network is determined by the highest flow rate.

Maximum rate flow = [tex]\dfrac{link's \ capacity}{no \ of \ flow \ pairs}[/tex]

[tex]= \dfrac{10 \ Gbps}{80}[/tex]

Since 1 Gbps = 1000 Mbps

[tex]= \dfrac{10000}{80}[/tex]

= 125 Mbps

Hence, maximum rate flow = 125 Mbps

b.

Each switch at Tier-1 is connected to each and every switch at Tier-2 in the highly integrated structural topology. As a result, there are n-disjoint routes between tier-2 and tier-1 switches.

Number of paths between tier-1 and tier-2 is 4, thus, there exist four paths from tier-1 switch to tier 2.

The capacity whereby all data routes convey is determined by the maximum rate of flow.  

number of available paths = 4  

Each link's capacity = 10 Gbps

Maximum flow rate = 4 × 10 Gbps

Maximum flow rate = 40 Gbps

c.

Because each connection is distributed between all flows, each flow crossing a similar link distributes the link's capacity with other flows.

number of flow pairs = 160

Each link's capacity = 10 Gbps

maximum rate of flow = 10000 Mbps / 160

= 62.5 Mbps

For 160 flow pairs, maximum flow rate = 62.5 Mbps

Each switch in Tier-1 communicates with each switch in Tier-2 in the highly linked topology network. As a result, n-disjoint routes between tier-2 and tier-1 switches are possible. As there exist 20 hosts engaged in the network around each host, the number of routes from either a tier-1 switch or tier-2 switches is 20.

here;

no of paths = 20

each link's capacity = 10 Gbps

Maximum flow rate = 20 × 10  

= 200 Gbps

As such, with 160 pairs of flow, maximum flow rate = 200 Gbps

9- Which type of view is not present in MS
PowerPoint?
(A) Extreme animation
(B) Slide show
(C) Slide sorter
(D) Normal

Answers

Answer:

A.Extreme animation

hope it helpss

What would be the result of the flooding c++ cide assuming all necessary directive
Cout <<12345
Cout< cout < Cout<< number <

Answers

Answer:

See explanation

Explanation:

The code segment is not properly formatted; However, I will give a general explanation and a worked example.

In c++, setprecision are used to control the number of digits that appears after the decimal points of floating point values.

setprecision(0) means; no decimal point at all while setprecision(1) means 1 digit after the decimal point

While fixed is used to print floating point number in fixed notation.

Having said that:

Assume the code segment is as follows:

number = 12.345;

cout<<fixed;

cout<<setprecision(0);

cout<<number <<endl;

The output will be 12 because setprecision(0) implies no decimal at all; So the number will be rounded up immediately after the decimal point

Which orientation style has more height than width?

Answers

Answer:

"Portrait orientation" would be the correct answer.

Explanation:

The vertical picture, communication as well as gadget architecture would be considered as Portrait orientation. A webpage featuring portrait orientation seems to be usually larger than large containing lettering, memo abases as well as numerous types of content publications.One such volume fraction also becomes perfect for impressionism depicting an individual from either the top.

Thus the above is the correct answer.

Janice is preparing a recipe that calls for 3/4 cup of oil per serving if Janice needs to prepare for 2 / 2 3 servings how many cups of oil would she neex​

Answers

Answer:

Three cups would be needed.

Explanation:

2 2/3 × 3/4 = 8/2 × 3/4 = 24/8 = 3

How can we use APC to help with dynamic tracks?

Answers

Answer:

We can use APC to help with dynamic tracks by :-

by finding dynamic tracks. by checking if the dynamic tracks are fully completed.

我对汉语的兴趣 làm đoạn văn theo đề trên​

Answers

Answer:

which language is this

Explanation:

Chinese or Korea

What two benefits are a result of configuring a wireless mesh network? Check all that apply.
1. Performance
2. Range
3. WiFi protected setup
4. Ad-hoc configuration​

Answers

Answer:

1)PERFORMANCE

2)RANGE

Explanation:

A mesh network can be regarded as local network topology whereby infrastructure nodes connect dynamically and directly, with other different nodes ,cooperate with one another so that data can be efficiently route from/to clients. It could be a Wireless mesh network or wired one.

Wireless mesh network, utilize

only one node which is physically wired to a network connection such as DSL internet modem. Then the one wired node will now be responsible for sharing of its internet connection in wireless firm with all other nodes arround the vicinity. Then the nodes will now share the connection in wireless firm to nodes which are closest to them, and with this wireless connection wide range of area can be convered which is one advantage of wireless mesh network, other one is performance, wireless has greater performance than wired one.

Some of the benefits derived from configuring a wireless mesh network is

1)PERFORMANCE

2)RANGE

Based on the information given, the correct options are performance and range.

It should be noted that a mesh network can be regarded as the local network topology whereby infrastructure nodes connect directly, with other different nodes ,cooperate with one another so that data can be efficiently route from/to clients.

The advantage of configuring a wireless mesh network is that it enhances performance and range.

Learn more about network on:

https://brainly.com/question/1167985

In a relational database, the three basic operations used to develop useful sets of data are:_________.
a. select, project, and join.
b. select, project, and where.
c. select, from, and join.
d. select, join, and where.

Answers

In a relational database, the three basic operations used to develop useful sets of data are:

[tex]\sf\purple{a.\: Select, \:project,\: and\: join. }[/tex]

[tex]\large\mathfrak{{\pmb{\underline{\orange{Mystique35 }}{\orange{❦}}}}}[/tex]

The basic operations used to develop useful sets of data in relational database are Select, Project and Join.

The Select and Project are of important use in selecting columns or attributes which we want to display or include in a table.

The join function allows the merging of data tables to form a more complete and all round dataset useful for different purposes.

Hence, the basic operations are select, project, and join.

Learn more : https://brainly.com/question/14760328

The _________ attack exploits the common use of a modular exponentiation algorithm in RSA encryption and decryption, but can be adapted to work with any implementation that does not run in fixed time.
A. mathematical.
B. timing.
C. chosen ciphertext.
D. brute-force.

Answers

Answer:

chosen ciphertext

Explanation:

Chosen ciphertext attack is a scenario in which the attacker has the ability to choose ciphertexts C i and to view their corresponding decryptions – plaintexts P i . It is essentially the same scenario as a chosen plaintext attack but applied to a decryption function, instead of the encryption function.

Cyber attack usually associated with obtaining decryption keys that do not run in fixed time is called the chosen ciphertext attack.

Theae kind of attack is usually performed through gathering of decryption codes or key which are associated to certain cipher texts

The attacker would then use the gathered patterns and information to obtain the decryption key to the selected or chosen ciphertext.

Hence, chosen ciphertext attempts the use of modular exponentiation.

Learn more : https://brainly.com/question/14826269

Use ordinary pipes to implement an inter-process communication scheme for message passing between processes. Assume that there are two directories, d1 and d2, and there are different files in each one of them. Also, each file contains a short-length string of characters. You have to use a parent process that forks two children processes, and have each child process check one of the directories.

Answers

Answer:

Yup

Explanation:

Suppose you are collecting money for something.

You need # 200 in all. You ask your parents, uncles

and aunts as well as grandparents. Different people

may give either ` 10, ` 20 or even ` 50. You will collect

till the total becomes 200. Write the algorithm.​

Answers

Answer:

Step 1 : Start

Step 2 : Set target= 0

Step 3 : Use a While loop

Step 4 : input donation

Step 5 : Sum - - > target += donation

Step 6 :, check loop condition

Step 7 : End

Explanation:

Algorithm is a sequence of written instructions or steps which we want the computer to in other to solve a particular problem :

Counter is set at 0

Total amount is initially set to := 0

Using a while loop ;

While target amout is less than 200 ; user inputs the amout to donate and it is added to target amount. This loop continues until target amount is greater than 200. Then the loop terminates.

Assume the variable sales references a float value. Write a statement that displays the value rounded to two decimal points.Assume the following statement has been executed:
number = 1234567.456
Write a Python statement that displays the value referenced by the number variable formatted as
1,234,567.5

Answers

Answer:

The statement is as follows:

print("{0:,.1f}".format(number))

Explanation:

Required

Statement to print 1234567.456 as 1,234,567.5

To do this, we make use of the format keyword, and we set the print format in the process.

To round up number to 1 decimal place, we use the following format:

"{0:,.1f}"

To include comma in the thousand place, we simply include a comma sign before the number of decimal place of the output; i.e. before 1

"{0:,.1f}"

So, the print statement is:

print("{0:,.1f}".format(number))

Unchecked exceptions require you surround the code that might throw such an exception with a try block or you must use a throws statement at the end of the method signature. Failure to do one of these two things will result in a compile error.

a. True
b. False

Answers

Answer:

b. False

Explanation:

False, unchecked exceptions do not cause compilation errors and do not require try/catch blocks or throws statements. However, although they are not required it is good programming to include them in order to handle any exceptions that may arise. If you do not include a proper way to handle such an exception the program will still run but may run into an exception during runtime. If this occurs then the entire program will crash because it does not know how to handle the exception since you did not provide instructions for such a scenario.

What do application in productivity suites have in common

Answers

Answer:

The function of the suites application is to create presentations and perform numerical calculations.

Explanation:

LAB: Winning team (classes)
Complete the Team class implementation. For the class method get_win_percentage(), the formula is:
team_wins / (team_wins + team_losses)
Note: Use floating-point division.
Ex: If the input is:
Ravens
13
3
where Ravens is the team's name, 13 is the number of team wins, and 3 is the number of team losses, the output is:
Congratulations, Team Ravens has a winning average!
If the input is Angels 80 82, the output is:
Team Angels has a losing average.
------------------------------------------------------------------------------------------------------------------------------------
We are given:
class Team:
def __init__(self):
self.team_name = 'none'
self.team_wins = 0
self.team_losses = 0
# TODO: Define get_win_percentage()
if __name__ == "__main__":
team = Team()
team_name = input()
team_wins = int(input())
team_losses = int(input())
team.set_team_name(team_name)
team.set_team_wins(team_wins)
team.set_team_losses(team_losses)
if team.get_win_percentage() >= 0.5:
print('Congratulations, Team', team.team_name,'has a winning average!')
else:
print('Team', team.team_name, 'has a losing average.')
Please help, in Python!

Answers

Answer:

The function is as follows:

def get_win_percentage(self):

       return self.team_wins / (self.team_wins + self.team_losses)

Explanation:

This defines the function

def get_win_percentage(self):

This calculates the win percentage and returns it to main

       return self.team_wins / (self.team_wins + self.team_losses)

See attachment for complete (and modified) program.

Answer: def get_win_percentage(self):

Explanation: got it right on edgen

Tạo thủ tục có tên _Pro04 để trả về số lượng tổng thời gian tham gia dự án Y của nhân viên có mã số X, với X là tham số đầu vào, Y là tham số đầu ra

Answers

Answer:

nigro

Explanation:

HEYYY! you're probably a really fast typer can you please type this for me! i tried copying and pasting it but it wouldn't let me!!! sooo can you please be a dear and kindly type it for me ^^

what i want you to type is directly in the image so please type exactly that

i dunno what subject this would be under so i'll just put it in any

Answers

Answer:

here you go. wish you a great day tomorrow.

and in fact,computer science is somewhat the right category

Abstract art may be - and may seem like - almost anything. This because, unlike the painter or artist who can consider how best they can convey their mind using colour or sculptural materials and techniques. The conceptual artist uses whatever materials and whatever form is most suited to putting their mind across - that would be anything from the presentation to a written statement. Although there is no one kind or structure employed by abstract artists, from the late 1960s specific tendencies emerged.

IT specialists must display technical expertise and collaborative proficiency in the workplace. Select the IT specialist who demonstrates a soft skill.

a. Terri uses her Java programming skills to write a key part of the company’s new software.
b. Joyce recruits users to test new software by explaining to them how it will benefit the organization.
c. Chandler evaluates the results of recent user tests of his company's new software.
d. Keith applies a filter to the company’s network that prevents users from accessing social media while they are working.

Answers

Answer:

b. Joyce recruits users to test new software by explaining to them how it will benefit the organization.

Explanation:

Skills can be classified as hard or soft. Hard skills include skills such as technical skills that are acquired through technical knowledge and training.

Soft skills on the other hand are skills exhibited as a result of personality traits, character and behaviours such as time management, leadership, communication and organizational skills.

Some hard skills include;

i. Ability to design banners and posters

ii. Proficiency in using programming languages such as Java to build software applications

iii. Evaluating the result of a test or research.

Some soft skills include;

i. Making public speeches that captivate the audience.

ii. Ability to recruit and test capabilities in others.

iii. Leading a team

So, Joyce recruiting users to test new software by explaining to them how it will benefit the organization is a form of soft skill since it consists, at minimum, of leadership and communication skills

In this project you will write a set of instructions (algorithm). The two grids below have colored boxes in different
locations. You will create instructions to move the colored boxes in grid one to their final location in grid two. Use the
example to help you. The algorithm that you will write should be in everyday language
(no pseudocode or programming language). Write your instructions at the bottom of the
page.
Example: 1. Move
the orange box 2
spaces to the right.
2. Move the green
box one space
down. 3. Move the
green box two
spaces to the left.
Write your instructions. Review the rubric to check your final work.
Rules: All 6 colors (red, green, yellow, pink, blue, purple) must be move to their new location on the grid. Block spaces are
barriers. You cannot move through them or on them – you must move around them

Answers

Answer:

Explanation:

Pink: Down 5 then left 2.

Yellow: Left 3 and down 2.

Green: Right 7, down 4 and left 1.

Purple: Up 6 and left 9.

Red: Left 7, down 5 and left 1.

You can do the last one, blue :)

Answer:

Explanation:

u=up, d=down, r=right, l=left

yellow: l3d2

pink: d5l2

green: r7d4l1

purple: u6l9

red: l7d5l1

blue: r2u7l5

Write a recursive method that receives a string as a parameter and recursively capitalizes each character in the string (change a small cap to a large cap, e.g. a to A, b to B, etc) as following: capitalize the first letter from the string, then calls the function recursively for the remainder of the string and in the end, build the capitalized string. For example, for "java", will capitalize the first letter to "J"(base case), calls the method recursively for the reminder of the string "ava" (reduction), and after recursion/reduction is over it and returns "AVA" will build a new string from "J" and "AVA" and return "JAVA" to the calling method.
Write this algorithms in java source code plz.

Answers

Answer:

String words[]=str.split("\\s");  

String capitalizeWord="";  

for(String w:words){  

   String first=w.substring(0,1);  

   String afterfirst=w.substring(1);  

   capitalizeWord+=first.toUpperCase()+afterfirst+" ";  

}  

return capitalizeWord.trim();  

Explanation:

Define the word you are trying to capitalize and split it into an array.

String words[]=str.split("\\s");

Create a string for the capital output to be created as

String capitalizeWord="";  

Capitalize the word using the "first.toUpperCase()" and "afterfirst" functions

for(String w:words){  

   String first=w.substring(0,1);  

   String afterfirst=w.substring(1);  

   capitalizeWord+=first.toUpperCase()+afterfirst+" ";  

}  

Design a function int maxDigit (int num) to find and return the greatest digit from the arguments value num.
Also write a function void result() by passing parameters to print the greatest digit.
please tell in java programming​

Answers

Answer:

Below is the required JAVA Code:

Explanation:

public static int largestDigit(int n) {

   if (n < 0) {

       return largestDigit(-1 * n);

   } else if (n == 0) {

       return 0;

   } else {

       int digit = n % 10;

       int maxDigit = largestDigit(n / 10);

       if (digit > maxDigit)

           maxDigit = digit;

       return maxDigit;

   }

}

\color{red}Method\;tested\;in\;a\;complete\;java\;program\;if\;you\;are\;interested.

public class LargestDigitRecursive {

   public static int largestDigit(int n) {

       if (n < 0) {

           return largestDigit(-1 * n);

       } else if (n == 0) {

           return 0;

       } else {

           int digit = n % 10;

           int maxDigit = largestDigit(n / 10);

           if (digit > maxDigit)

               maxDigit = digit;

           return maxDigit;

       }

   }

   public static void main(String[] args) {

       System.out.println(largestDigit(14263203));

       System.out.println(largestDigit(845));

       System.out.println(largestDigit(52649));

       System.out.println(largestDigit(3));

       System.out.println(largestDigit(0));

       System.out.println(largestDigit(-573026));

       System.out.println(largestDigit(-2));

   }

}

OUTPUT:

6

8

9

3

0

7

2

create slider in wordpress

Answers

Answer:

Adding a WordPress Slider in Posts/Page

Open the post editor, select the location where you want to add the slider, and click on the Add Slider button next to the media uploader. You will see boxes for each slider you have created. Choose the slider you want to insert and then click Insert Slider button.

this can provide illusion of fast movement it is often used in videos to censor information for security or density​

Answers

Answer:

Blurring can provide the optical illusion of a fast movement. It is often used in videos to hide sensitive or age-inappropriate information, the protection of identities (hence security) or just to provide decency.

Explanation:

Mostly used during animated videos where unlike (real videos) the blur does not occur naturally, the blur is used to make speed believable. Speed invigorates, and highlights intensity. Blurring still images can help to make more realistics motions of speed. An example where lots of blurring is used as prostproduction effects is in Flash.

Cheers

Develop an algorithm and write a C++ program that finds the number of occurrences of a specified character in the string; make sure you take CString as input and return number of occurrences using call by reference. For example, Write a test program that reads a string and a character and displays the number of occurrences of the character in the string. Here is a sample run of the program:______.

Answers

Answer:

The algorithm is as follows:

1. Input sentence

2. Input character

3. Length = len(sentence)

4. count = 0

5. For i = 0 to Length-1

 5.1 If sentence[i] == character

    5.1.1 count++

6. Print count

7. Stop

The program in C++ is as follows:

#include <iostream>

#include <string.h>

using namespace std;

int main(){

char str[100];   char chr;

cin.getline(str, 100);

cin>>chr;

int count = 0;

for (int i=0;i<strlen(str);i++){

 if (str[i] == chr){

  count++;} }

cout << count;

return 0;}

Explanation:

I will provide explanation for the c++ program. The explanation can also be extended to the algorithm

This declares the string and the character

char str[100];   char chr;

This gets input for the string variable

cin.getline(str, 100);

This gets input for the character variable

cin>>chr;

This initializes count to 0

int count = 0;

This iterates through the characters of the string

for (int i=0;i<strlen(str);i++){

If the current character equals the search character, count is incremented by 1

 if (str[i] == chr){  count++;} }

This prints the count

cout << count;

what is said to be the first mechanical calculator​

Answers

Answer:

Pascaline, also called Arithmetic Machine, the first calculator or adding machine to be produced in any quantity and actually used. The Pascaline was designed and built by the French mathematician-philosopher Blaise Pascal between 1642 and 1644.

Explanation: hope that helps

Pascaline, also called Arithmetic Machine.

Question 1
The decimal number system problem solving question
Statement: Several digits '8' are written and some '+" signs are interested
to get the sum 1000. Figure out how it is done.​

Answers

Answer:

888 + 88 + 8 + 8 + 8 = 1000

Explanation:

Required

Add up to 1000 using only digit 8

There is no straight way to answer this question; so, we make use of trial by error method to arrive at our solution.

After several trials, I found out that:

888 + 88 + 8 + 8 + 8 = 1000

You've decided to build a new gaming computer and are researching which power supply to buy. Which component in a high-end gaming computer is likely to draw the most power

Answers

Answer:

Following are the solution to the given question:

Explanation:

In this order, it is typically the GPU and CPU. The most important way to consider is to look at the details of the components to enhance watts. Add up to 100 watts so make sure it was safe and ok. Just buy a PSU with an extra 100 watts of leeway for your system. This is indeed a slight price difference.

S.B. manages the website for the student union at Bridger College in Bozeman, Montana. The student union provides daily activities for the students on campus. As website manager, part of S.B.'s job is to keep the site up to date on the latest activities sponsored by the union. At the beginning of each week, he revises a set of seven web pages detailing the events for each day in the upcoming week. S.B. would like the website to display the current day's schedule within an aside element. To do this, the page must determine the day of the week and then load the appropriate HTML code into the element. He would also like the Today at the Union page to display the current day and date.Complete the following:Use your editor to open the bc_union_txt.html and bc_today_txt.js files from XX folder. Enter your name and the date in the comment section and save them as bc_union.html and bc_today.js. DONEGo to the bc_union.html file in your editor. Directly above the closing tag, insert a script element that links the page to the bc_today.js file. Defer the loading of the script until after the rest of the page is loaded by the browser. Study the contents of the file and save your changes. DONEGo to the bc_today.js file in your editor. At the top of the file, insert a statement indicating that the code will be handled by the browser assuming strict usage. Note that within the file is the getEvent() function, which returns the HTML code for the daily events at the union given a day number ranging from 0 (Sunday) to 6 (Saturday). "use strict";Declare the thisDate variable containing the Date object for the date October 12, 2018. var thisDate = new Date("October 12, 2018");Declare the dateString variable containing the text of the thisDate variable using local conventions. var dateStr = thisDate.toLocaleDateString();Declare the dateHTML variable containing the following text string

date where date is the value of the dateString variable. var dateHTML = "" + dateStr + "

";Create the thisDay variable containing the day of the week number from the thisDate variable (Hint: use the getDay() method). - confused here, have: var thisDate = thisDate.getDay(); correct?Using the thisDay variable as the parameter value, call the getEvent() function to get the HTML code of that day's events and store that value in a variable named eventHTML. - lost here...Applying the insertAdjacentHTML() method to the page element with the ID unionToday, insert the value of the dateHTML plus the eventHTML variables before the end of the element contents. - again, lost here too. Found this on another site... document.querySelector('#unionToday').insertAdjacentHTML('beforeend',dateHTML +' '+ eventHTML); -- Where do I put it?Document your code with descriptive comments."use strict"; /* #4 pg680 *//* New Perspectives on HTML5 and CSS3, 7th Edition Tutorial 9 Case Problem 2 */ This script uses the getEvent() function to return the HTML code containin the daily events at the Bridger College student union. *//*Display the Current Date*/var thisDate = new Date("October 12, 2018"); var dateStr = thisDate.toLocaleDateString(); /* Display the Date Using Local Conventions as a Header*/var dateHTML = "

" + dateStr + "

"; /* Display the Day of the Week Number*/var thisDate = thisDate.getDay(); // #8 Correct???/* Display the Event Listings */function getEvent(day) { var eventHTML = day[thisDay]; /* is adding this correct?? = day[thisDay]; part of #9 ??? */ switch (day) { case 0: // Sunday Events eventHTML = " \ Highlights from the Bridger Art Collection \

An exhibition from over 60 items in the BC permanent collection.

\

Location: Room A414

\

Time: 12 am – 4 pm

\

Cost: free

\ \ Bridger Starlight Cinema \

Recent, diverse, and provocative films straight from the art house. 35mm.

\

Location: Fredric Whyte Play Circle

\

Time: 7 pm – 10 pm

\

Cost: $3.75 MWU students, Union members, Union staff. $4.25 all others

\ \ "; break; case 1: // Monday Events eventHTML = " \ Monday Billiards \

Play in the BC Billiards league for fun and prizes

\

Location: Union Game Room

\

Time: 7 pm – 11 pm

\

Cost: $3.75 for registration

\ \ Distinguished Lecture Series \

Cultural critic Elizabeth Kellog speaks on the issues of the day.

\

Location: Union Theater

\

Time: 7 pm – 9 pm

\

Cost: free, seating is limited

\ \ "; break;

Answers

Answer:

hi

Explanation:

i did not known answers

Write 'T' for true and 'F' for false statements.

1. The CPU is a piece of external hardware.

2. Keyboards can be connected to a computer using USB port.

3. Monitors are connected via the PS/2 port.

4. A computer can function without a CD drive.

5. Printer is an input device.

6. The read write data in magnetic disks.

7. Pen drives are connected to a computer via the USB interface.

NO LINKS​

Answers

1-F
2-T
3-F
4-F
5-F
6 T
7-T
Other Questions
due tomorrow 3 questions Jonah walks 1/3mile in 3/4hour. How fast, in miles per hour, does he walk? c bao nhiu hnh t gic find the equation of common tangent of x+y=4ax and y=4ax. which is a nonmendelian trait Select the correct answer. Given: ABC with DE||AC Prove: AD/DB = CE/EB x-value of 0f(x) = |x|f(x) = |x| + 3f(x) = |x + 3|f(x) = |x| 6f(x) = |x + 3| 6 A right cone has a surface area of 440 square inches and a radius of 7 inches. Find its slant height. The amount of money, A, accrued at the end of n years when a certain amount, P.isinvested at a compound annual rate, r, is given by A = P(1+r)". If a personinvests $300 in an account that pays 8.5% interest compounded annually, find thebalance after 15 years. Ajax Inc. was formed on April 25 and elected a calendar year for tax purposes. Ajax paid $11,800 to the attorney who drew up the articles of incorporation and $5,700 to the CPA who advised the corporation concerning the accounting and tax implications of its organization. Ajax began business operations on July 15. To what extent can Ajax deduct its $17,500 organizational costs on its first tax return What does a model of a light wave tell us aboutbrightness and color? name hydrogen ionwhat the symbolotom Diwn unscramble the word The history of chocolate began (11) _______- three and a half thousand years ago . At that time, people in the Amercas (12) ____ as the Mayans and the Aztecs grew the beans and made chocolate drinks (13) _____them. Around 1500, christoppher columbus HELP !!!! look at the picture Which of the following is an example of a motif?A.the inevitable loss of innocenceB.honesty being the best policyC.the idea of home in the Wizard of OzD.hard work leading to success State elements of business plan? Your mom has asked you to go to the supermarket and take your little brother with you.Using the knowledge you have acquired in this lesson and the verbs provided below, please tell your little brother what he is not supposed to do at the supermarket. 1. correr2. jugar3. gritar4. empujar if someone could help me on this thank you!! Part B[H3O+] = 2 x 10-6 MExpress your answer using one decimal place.