Using Constants and Variables to create a Program is given below.
How to create the program# Establish constant values
DAYS_PER_WEEK = 5
HOURLY_WAGE = 8
# Introduce changeable parameters
hours_worked = 0
daily_earnings = 0
total_earnings = 0
# Ask user regarding hours labored each day
for day in range(1, DAYS_PER_WEEK + 1):
hours_worked = int(input(f"How many hours did you work on day {day}? "))
daily_earnings = hours_worked * HOURLY_WAGE
total_earnings += daily_earnings
# Display aggregate income for the week
print(f"You made a total of ${total_earnings} this week.")
Learn more about program on
https://brainly.com/question/26642771
#SPJ1
Need help with Exercise 6
The program based on the question requirements are given below:
The Programimport java.io.File;
import java.io.IOException;
import java.util.Scanner;
public class EncryptText {
// read file and return all content as a String
public static String readFile(String filename) throws IOException {
Scanner scanner = new Scanner(new File(filename));
String content = "";
while(scanner.hasNextLine()){
content += scanner.nextLine();
}
return content;
}
// fills entire grid with stars "*"
public static void initializeGrid(char [][] grid, int m, int n) {
for(int i = 0; i<m; i++)
for(int j = 0; j<n; j++)
grid[i][j] = '*';
}
// does the encryption
public static void fillGrid(char [][] grid, int m, int n, String filename) throws IOException {
// read file
String text = readFile(filename);
// fill entire grid with stars
initializeGrid(grid, m, n);
// i = row, j = column, for grid
int i = 0, j = 0;
// picks a char c from file text and populates the grid
for(int k=0; k<text.length(); k++) {
char c = text.charAt(k);
// even row - fill left to right
if(i % 2 == 0) {
grid[i][j] = c;
j++;
}
// odd row - fill right to left
else {
grid[i][n-j-1] = c;
j++;
}
// if end of column, go to next row and restart column
if(j == n) {
i++;
j = 0;
}
// if end of rows, stop populating grid
if(i == m) {
break;
}
}
}
// extract chars in column-major order
public static void displayGrid(char [][] grid, int m, int n) {
for(int j = 0; j<n; j++) { // cols
for(int i = 0; i<m; i++) // rows
System.out.print(grid[i][j]);
}
}
// start
public static void main(String[] args) throws IOException {
String filename = "input.in";
// define grid dimensions, m = rows, n = cols
int m = 4, n = 8;
// define the grid
char grid[][] = new char[m][n];
// call the function to fill grid
fillGrid(grid, m, n, filename);
// show encrypted text
displayGrid(grid, m, n);
}
}
Read more about programs here:
https://brainly.com/question/23275071
#SPJ1
13. Enter a formula in cell M7 using the VLOOKUP function to find an exact match for the department abbreviation. Look up the department abbreviation (cell M6) using an absolute reference, search the staff table data (the range A6:J13) using an absolute reference, and return the department name (the 2nd column).
14. Copy the formula in cell M7 to the range M8:M15, and edit the copied formulas to return the value from the column indicated by the label in column L.
The formula in cell M7 using the VLOOKUP function to find an exact match for the department abbreviation. Look up the department abbreviation (cell M6) using an absolute reference, search the staff table data (the range A6:J13) using an absolute reference, and return the department name (the 2nd column) :
M7=VLOOKUP( $M$6, $A$6:$J$13, 2, FALSE )
VLOOKUP takes as inputs :
How to explain the formula1. The value to be matched - Here we use absolute reference for the cell M6
2. The table array range to look for the value - Here we use absolute reference for the staff table (the range A6:J13)
3 -The column value to returns - Here we are returning the department name (2nd column)
4 -Exact or Approximate match - Here we use Exact match (FALSE)
VLOOKUP search for the exact value in cell M6 in the first column of the table , A6:J13 and returns the 2nd column value for the matched row and store in M7.
Learn more about formula on
https://brainly.com/question/657646
#SPJ1
Assignment Summary
For this assignment, you will follow detailed instructions to format an Excel workbook that demonstrates your knowledge of how to manage an Excel spreadsheet and its properties.
A summary of the steps you will need to take to do the above is given below
What is the Excel work about?We declare an integer stack using STL and check input for digits or operators. Parse digits and push onto stack, apply operator to top two elements using evaluate function from calc_useful.h, and push result back onto stack.
We address errors by checking stack size and operand availability. If any issues arise, we flag them and exit the loop. Lastly, we display the result without errors.
Learn more about Excel from
https://brainly.com/question/24749457
#SPJ1
A trucking company is expanding its business and recently added 50 new trucks to its fleet delivering to numerous locations. The company is facing some challenges managing the new additions. Which of the company's problems could be solved more easily using quantum computing?
collecting travel data from all the company's trucks in real-time
tracking to ensure that shipments are sent and received on time
automating the inventory operations to handle the expansion
routing the trucks effectively to optimize fuel consumption
Answer: automating the inventory operations to handle the expansion
can you answer my intro to computer applications CIS-100 fron spring uma college
CIS-100 is an intro course covering various computer applications. Offered during Spring at UMA College, it equips students with necessary computer tech skills for their personal and professional lives.
What is computer applications?CIS-100 covers computer hardware, software, and operating systems.
In terms of Internet and Web: Overview of how the Internet works, network protocols, and effective use of web browsers and search engines.
Lastly, in terms of Productivity software: Use of word processing, spreadsheets, and presentation tools to manage documents. Database management introduces concepts like tables, fields, and records, as well as systems like Microsoft Access.
Learn more about computer applications from
https://brainly.com/question/24264599
#SPJ1
Question 3 of 10
What did the part of the Analytical Engine called the mill do?
A. The mill was the Analytical Engine's way to output results.
B. The mill was where the Analytical Engine received inputs.
OC. The mill acted as the Analytical Engine's form of memory.
D. The mill was the Analytical Engine's calculating mechanism.
The mill was the key component of the Analytical Engine that performed all the arithmetic operations. It was capable of executing addition, subtraction, multiplication and division. The mill could process both integer and decimal numbers, and was programmable with the use of punched cards. It employed a system of gears and levers to perform these operations mechanically rather than electronically. The mill made the Analytical Engine the world's first general-purpose computer, as it allowed for the computation of arbitrary mathematical functions.
The part of the Analytical Engine called the mill is option D. The mill was the Analytical Engine's calculating mechanism.
What is the Analytical Engine?Plans for his Analytical Engine were created by Charles Babbage in 1835. Babbage's device possessed several features found in today's computers, such as a punched card controller for the control unit, a storage component- the store, a mill- the processor, a card reader- an input mechanism, and a printer for an output tool.
By incorporating features like arithmetic logic unit, conditional branching and loops, and integrated memory, the analytical engine became the first computer design capable of performing general computing tasks, equivalent to what is now referred to as Turing-complete using modern terminology.
Learn more about Analytical Engine from
https://brainly.com/question/20411295
#SPJ1
a brief speech about modern age of Science and Technology
The brief speech about modern age of Science and Technology is given below.
What is Science and Technology?Ladies and gentlemen,
We live in a time of great advancements in science and technology. The modern age has brought remarkable progress in a variety of fields, such as medicine, communication, space exploration, and artificial intelligence.
Thanks to science and innovation, we have comfort, convenience, safety, information, travel, and communication. With power comes responsibility to share benefits of science and tech equitably for greater good. Use science and technology responsibly. Together, let's uphold progress and innovation for all.
Thank you.
Learn more about Science and Technology from
https://brainly.com/question/7788080
#SPJ1
4. Imagine that your six-year-old cousin asked you this question: "How can a cat video show
up on my tablet? Is it magic?" How would you explain the process of data transmission in
a way simple enough for a young child to understand?
€ which of the following is the correct procedure to Select an entire documents? Select one: a press control + Stamps press F5 three times from the Home tab, Choose the Command "Select Allan the edit group press F7 Five times.
The correct procedure to Select an entire documents is a press control.
What is the procedure about?"Control+F" (or "Command+F" on a Mac) is the console easy route for the Discover command. On the off chance that you're in a archive or in a web browser, squeezing the Ctrl key + the F key will bring up a look box within the beat right corner of the screen.
Therefore, After you press "Ctrl + A", all of the content within the report will be highlighted, demonstrating that it has been chosen. You'll be able at that point perform a assortment of actions on the chosen content, such as changing the textual style, applying designing, or erasing the content.
Learn more about Command from
https://brainly.com/question/25808182
#SPJ1
C++
Write a program and use a for loop to output the
following table formatted correctly. Use the fact that the
numbers in the columns are multiplied by 2 to get the
next number. You can use program 5.10 as a guide.
Flowers
2
4
8
16
Grass
4
8
16
32
Trees
8
16
32
64
based on the above, we can write the C++ code as follows..
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
// Output table headers
cout << setw(10) << "Flowers" << setw(10) << "Grass" << setw(10) << "Trees" << endl;
// Output table rows
for (int i = 1; i <= 4; i++) {
cout << setw(10) << (1 << (i-1)) * 2 << setw(10) << (1 << i) * 2 << setw(10) << (1 << (i+2)) * 2 << endl;
}
return 0;
}
How does this work ?Using the iomanip library's setw function, we ensure that the output of this program is properly formatted and aligned in columns. To calculate the values in each column, we iterate through every row of the table via a for loop and rely on bit shifting and multiplication.
As our code outputs these values to the console using << operators, we use endl to create new lines separating each row. The return 0; statement at the very end serves as an indication of successful completion.
Learn more about C++:
https://brainly.com/question/30905580
#SPJ1
It calculates the sum of hte values of a range of cells
Answer:
in Microsoft Excel. This can be done using the SUM function, which takes a range of cells as its argument and returns the sum of their values.
For example, to find the sum of the values in cells A1 through A5, we can use the following formula:
=SUM(A1:A5)
This will add up the values in those cells and return the result.
The SUM function can also be used with other functions and formulas to perform more complex calculations. It can be a useful tool for analyzing data in spreadsheets and creating reports.
How does a hash help secure blockchain technology?
Hashes do not allow any new blocks to be formed on a chain or new data to be
added, Hashes block all changes.
Hashes are like fingerprints that make each block of data unique, Blocks form a
chain that can only have new blocks added.
Hashtags allow others to see if someone is trying to change something and it
alerts the government to prevent the changes.
Blocks of data require passwords that are called hashes, Hashes are impossible
to guess.
Blocks of data require passwords that are called hashes, Hashes are impossible to guess.
Blockchain security and Hash functionA hash is a function that meets the encryption requirements required to secure data. Because hashes have a set length, it is nearly impossible to estimate the hash if attempting to crack a blockchain.
The same data always yields the same hashed value. Hashes are one of the blockchain network's backbones.
Learn more about Blockchain security here:
https://brainly.com/question/31442198
#SPJ1
9. You own a small business and your company had 5,000 new customers last year. Costs in the marketing and
sales areas were the following:
Marketing costs = $30,000
Sales costs = $10,000
Salaries = $60,000
What was your customer acquisition cost?
a. $6
b. $8
c. $12
d. 20
Based on the information provided, it can be concluded that the customer acquisition cost is $20.
How to calculate the customer acquisition cost?To calculate the customer acquisition cost, the general formula would be the total cost for marketing/number of customers. Applying this formula, let's calculate the cost:
Marketing costs + Sales costs + Salaries/ Number of new customers
($30,000 + $10,000 + $60,000) / 5,000
$100,000 / 5,000 = $20
Based on this, the customer acquisition cost is $20
Learn more about costs in https://brainly.com/question/30045916
#SPJ1
The binary number system is suitable for computer system. Give reason.
Answer: It enables devices to store, access, and manipulate all types of information directed to and from the CPU or memory.
THIS DOES NOT BELONG TO ME!
Explanation:
b. Read in the data from the hours.csv file and call it “hours”. Make a histogram of the variable hours_studying. (Include the code to generate the histogram and the histogram itself in your lab report.) Comment on the symmetry or skew of the histogram.
c. Use the t.test() function that your used in lab to test the hypotheses to answer the question if this sample indicates a significant change in the number of hours spent studying. (Include your
R code and the output from t.test() in your lab report.)
i. What is the value of the test statistic?
ii. What is the p-value?
iii. Are the results significant at the α = 0. 05 level?
d. Write a conclusion for this test in APA format (as illustrated in lecture and lab).
After performing a one-sample t-test, it was determined that the test statistic held a value of t = 6.3775 (d.f.=63). The p-value calculated to be 1.128e-08, a figure insignificantly beneath the critical level of 0.05.
How to explain the StatisticsThis establishes that the resulting data holds significance, as confirmed by the α=0.05 criterion given that the p-value is inferior toward the stated limit.
The average weekly study time for the students in question resulted in M = 14.18 hours; this signifies statistical variance when contrasted with sigma distribution variable values equating to SD = 5.10 (t(63) = 6.38, p < .001, 95% CI [12.95, 16.39]). Consequently, the null hypothesis cannot be sustained and must therefore be rejected.
Learn more about statistic on
https://brainly.com/question/15525560
#SPJ1
Question 7 of 10
What is a good way to turn an interview into a human interest story?
A. By presenting two people as one
B. By making up some information
C. By presenting the whole interview
D. By identifying a key quotation
SUBMIT
The ultimate way to convert an interview into a riveting human interest story is by pinpointing the central citation or story that encapsulates the quintessence of the interviewee's predicament or outlook.
How can this be done?This can act as the keystone for your tale, and interned throughout to provide the narrative plot.
It is crucial to feature the full encounter, though solely including the most pertinent and stirring sections. It is never permissible to fabricate details or coalesce two figures together. In consequence, the emphasis should be on narrating a companionable and fascinating story that reveals the personae element of the interviewee's tale.
Read more about interviews here:
https://brainly.com/question/8846894
#SPJ1
Name three risks of developing a stragtic role for information systems in a business. Explain one risk in more detail..
One risks of developing strategic role for information systems is the possibility of overspending on IT projects which may not generate the desired returns on investment.
What is the risk of overspending on IT projects?Today, businesses are engrossed with latest and greatest technological advancements which leas to overspending on IT projects that may not ultimately provide the intended value.
This risk can arise from a lack of understanding on how technology fits into business strategy or failure to properly assess the potential benefits and risks of new IT initiatives.
In an overall, the overspending on IT projects can lead to financial strain and can ultimately harm the business's ability to achieve its strategic goals.
Read more about strategic role
brainly.com/question/28332723
#SPJ1
Leo is writing a gaming program where the character will grow after they have successfully completed three quests. What boundary must be set for the program to work?
Distance between players
Location of the players
Number of levels completed
Number of lives remaining
The boundary trhat has to be set is Number of levels completed
What boundary has to be set?The essential boundary to be created for Leo's gaming program to properly function is the amount of quests involved and completed. Primarily, Leo's initiative should maintain a record of how many quests have been accomplished by the character; as soon as they fulfill three undertakings, the character's advancement must be activated.
So, in this context, the separation among players, the players' positions, the quantity of levels evened out, or the total remaining lives are not linked to the development of the character.
Read more on gaming program here:https://brainly.com/question/23275071
#SPJ1
can you answer my intro to computer applications CIS-100 class questions from spring uma college in Maine
A continuous integration and continuous deployment (CI/CD) system can be used to automate the deployment of your application.
An Amazon subsidiary called Amazon Web Services, Inc. (AWS) offers metered, pay-as-you-go on-demand cloud computing platforms and APIs to people, businesses, and governments.
Clients frequently utilize this in addition to autoscaling (a process that allows a client to use more compute in times of high application usage, and then scale down to reduce costs when there is less traffic).
Through AWS server farms, these cloud computing web services offer a range of services for networking, computing, storage, middleware, IOT, and other processing resources, as well as software tools.
Learn more about web services on:
https://brainly.com/question/14504739
#SPJ1
Assignment Summary
For this assignment, you will follow detailed instructions to format an Excel workbook that demonstrates your knowledge of how to manage an Excel spreadsheet and its properties.
To format an excel workbook means that you should know how to create a workbook, add data, delete, and edit, as wella s save and import from other sources.
How to manage an Excel SpreadsheetTo format an Excel Spreadsheet, you can first create a new workbook fromt he home page that says edit. To import data from other workbooks or the web, use the instruction on the ribbon that says to import data.
After inputting text, you could auto fill by using the blue tick under the cells. Left click to get more formatting options. Finally, when it is time to save, go to file and click save. Enter your preferred name and save.
Learn more about the Excel Workbook here:
https://brainly.com/question/28769162
#SPJ1
CODING HW HELP
Instructions
Redo Programming Exercise 16 of Chapter 4 so that all the named constants are defined in a namespace royaltyRates.
Instructions for Programming Exercise 16 of Chapter 4 have been posted below for your convenience.
Exercise 16
A new author is in the process of negotiating a contract for a new romance novel. The publisher is offering three options. In the first option, the author is paid $5,000 upon delivery of the final manuscript and $20,000 when the novel is published. In the second option, the author is paid 12.5% of the net price of the novel for each copy of the novel sold. In the third option, the author is paid 10% of the net price for the first 4,000 copies sold, and 14% of the net price for the copies sold over 4,000. The author has some idea about the number of copies that will be sold and would like to have an estimate of the royalties generated under each option. Write a program that prompts the author to enter the net price of each copy of the novel and the estimated number of copies that will be sold. The program then outputs the royalties under each option and the best option the author could choose. (Use appropriate named constants to store the special values such as royalty rates and fixed royalties.)
CODE:
#include
using namespace std;
int main() {
// Write your main here
return 0;
}
CHECKS:
Program Executes Correctly
0 out of 3 checks passed. Review the results below for more details.
Test Case: Incomplete
Successful Output
Test Case: Incomplete
Successful Output II
Code Pattern: Incomplete
Check for constant declaration innamespace
Answer:
To define all named constants in a namespace called royaltyRates, we can use the namespace keyword to enclose the constant definitions within it. For example:
namespace royaltyRates {
const double DELIVERY_PAYMENT = 5000.0;
const double PUBLICATION_PAYMENT = 20000.0;
const double ROYALTY_RATE_FIRST = 0.1;
const double ROYALTY_RATE_SECOND = 0.14;
const double NET_PRICE_THRESHOLD = 4000.0;
}
Then, we can use these constants in the program by referring to them as royaltyRates::CONSTANT_NAME. For instance, royaltyRates::DELIVERY_PAYMENT will refer to the DELIVERY_PAYMENT constant inside the royaltyRates namespace.
Explanation:
The namespace keyword in C++ is used to define a named scope that can contain variables, functions, and other types of identifiers. By enclosing the constants within the royaltyRates namespace, we ensure that they are not globally defined and do not interfere with other variables and functions defined in the program.
We can access the constants defined in the royaltyRates namespace by prefixing them with the namespace name and scope resolution operator ::. This makes it easier to understand and organize the code, and reduces the likelihood of naming conflicts.
Create and initialize a 2D list as shown below.
Miami Atlanta Dallas Los Angeles
New York Chicago Portland Sacramento
Imagine you are coordinating the flights for two planes that hit various cities across the US, East to West. Moreover, these planes hit the same cities on the way back West to East. Write a function that prints out the specified cities East to West and then flips them West to East to illustrate the flight back.
First, write a printList() function that prints out the list. Use a single parameter in the definition of the function, and pass the list you created above as the parameter. Call the function so it prints the original list.
Then, write a flipOrder() function that reverses the order of each sublist containing cities in order to illustrate the stops made on the way back from the trip. Again, this function should pass the original list as the parameter. This function should also use the printList() function at the end to print the reversed list.
Sample Output
Miami Atlanta Dallas Los Angeles
New York Chicago Portland Sacramento
Los Angeles Dallas Atlanta Miami
Sacramento Portland Chicago New York
Here's the code to build and initiate the 2D list:
The Programcities = [
['Miami', 'Atlanta', 'Dallas', 'Los Angeles'],
['New York', 'Chicago', 'Portland', 'Sacramento']
]
And here is the implementation of the printList() feature:
def printList(lst):
for row in lst:
print(' - '.join(row))
Read more about programs here:
https://brainly.com/question/1538272
#SPJ1
First Resource is offering a 5% discount off registration fees for all EventTypes except for Survey/Study.
In cell K11 enter a formula that will return 0.05 if the event is NOT a Survey/Study, otherwise return a blank value ("").
Use a VLOOKUP function to return the EventType from the EventDetails named range.
Use a NOT function so that any event type other than Survey/Study will return TRUE.
Use an IF function to return 0.05 for the value_if_true and "" for the value_if_false.
Incorporate an IFERROR function to return a blank value if the VLOOKUP function returns an error.
Format the result as Percentage with 0 decimal places and copy the formula down through K34.
Use a VLOOKUP function to return the EventType from the EventDetails named range. Use a NOT function so that any event type other than Survey/Study will return TRUE.
Use an IF function to return 0.05 for the value_if_true and "" for the value_if_false. Vlookup is a technique in excel which enables users to search for criterion values. It is vertical lookup function in excel which return a value from a different column.
Vlookup'select cell you want to look up in' select cell you want to lookup from' select column index number' true/false. where true is approximate match and false is exact match.
Learn more about technician on:
https://brainly.com/question/14290207
#SPJ1
All of the following would be useful information to capture and evaluate as end-of-project lessons learned EXCEPT:
a. Areas for which a different method might yield better results
b. What went well that team members think should be copied and/or adapted for use on future work
c. Information about mistakes and what went wrong
d. Names of team members who made the mistakes and should be blamed
All of the following would be useful information to capture and evaluate as end-of-project lessons learned EXCEPT: d. Names of team members who made the mistakes and should be blamed
What is the lesson?When capturing and assessing lessons learned at the conclusion of a venture, it is vital to center on valuable criticism and recognize ranges for advancement instead of doling out fault to particular group individuals.
In all, the center of lessons learned ought to be on recognizing zones for enhancement, capturing effective hones, and advancing a culture of continuous learning and change, instead of accusing people for botches.
Learn more about lessons from
https://brainly.com/question/25547036
#SPJ1
Which response best explains the IF statement in the following flowchart?
Flowchart with block image text: 'Is this a fruit?', 2-way arrow points to block image text: 'No' 1-way arrow points to block image text: 'Yes', below 'Yes' 1-way arrow points to block image text: 'Add to smoothie recipe'
IF the answer is no, THEN add to the smoothie recipe, ELSE repeat question
IF the answer is no, THEN stop, ELSE repeat question
IF the answer is yes, THEN add to the smoothie recipe, ELSE repeat question
IF the answer is yes, THEN repeat question, ELSE add to the smoothie recipe
The response in the flowchart can be best explained is : IF the answer is 'No', THEN add to the smoothie recipe, ELSE repeat the question.
What is the flowchart?The above implies that in case the reply to the address "Is this a natural product?" is 'No', at that point the thing is included to the smoothie formula. In any case, on the off chance that the reply is 'Yes', at that point the flowchart circles back to rehash the address, indicating that the thing isn't included to the smoothie formula at this point.
The flowchart does not give any particular activity or result for the 'Yes' condition, other than rehashing the address, proposing that the flowchart may be fragmented or require advance clarification for the 'Yes' condition.
Learn more about flowchart from
https://brainly.com/question/6532130
#SPJ1
Assignment Summary
For this assignment, you will follow detailed instructions to format an Excel workbook that demonstrates your knowledge of how to manage an Excel spreadsheet and its data.
Background Information
To successfully complete this assignment, you will need to know how to create and save an Excel worksheet, enter data, adjust font and color, merge cells, add hyperlinks, and change page orientation.
In order to format an Excel workbook and manage its data, we must know how to can use various tools such as cell formatting, conditional formatting, sorting, filtering, grouping etc.
How can we format an Excel workbook and manage its data?Generally, the formatting an an Excel workbook involves setting up the layout and style of the worksheet which includes adjusting the column width and row height, applying different fonts, different colors and using borders and shading to make the data more readable.
We can use conditional formatting to highlight specific data based on certain criteria. The managing of data in Excel involves organizing and manipulating data within the workbook which can be done through sorting, filtering and grouping data to better analyze and understand it.
Read more about Excel workbook
brainly.com/question/28769162
#SPJ1
Question 7 of 10
What type of information system would be used by upper level management
using both internal and external information?
OA. Management information system
B. Decision support system
C. Transaction processing system
D. Executive information system
The type of information system would be used by upper level management using both internal and external information is Option B Decision support system.
Why is this so?An executive information system is a decision support system (DSS) that aids top executives in making choices (EIS).
It achieves this by allowing access to essential data needed to support a company's strategic goals. The majority of EISs have graphical displays with a user-friendly interface.
So, Option B is correct.
Learn more about information system at:
https://brainly.com/question/28945047
#SPJ1
Answer:
WRONG
Explanation:
Explain the various components of an information system.how do these components work together to support business operations
Exercise 6-1 Enhance the Town Hall home page In this exercise, you’ll enhance the formatting of the Town Hall home page that you formatted in exercise 5-1. You’ll also format the Speaker of the Month part of the page that has been added to the HTML. When you’re through, the page should look like this: Open the HTML and CSS files 1. Use your text editor to open HTML and CSS files: \html_css_5\exercises\town_hall_1\c6_index.html \html_css_5\exercises\town_hall_1\styles\c6_main.css 2. In the HTML file, note that it has all the HTML that you need for this exercise. That way, you can focus on the CSS.
nhance the CSS file so it provides the formatting shown above 3. In the CSS file, enhance the style rule for the body so the width is 800 pixels. Next, set the width of the section to 525 pixels and float it to the right, and set the width of the aside to 215 pixels and float it to the right. Then, use the clear property in the footer to clear the floating. Last, delete the style rule for the h1 heading. Now, test this. The columns should be starting to take shape. 4. To make this look better, delete the left and right padding for the main element, set the left and bottom padding for the aside to 20 pixels, change the right and left padding for the section to 20 pixels, and set the bottom padding for the section to 20 pixels. You can also delete the clear property for the main element. Now, test again. 5. To make the CSS easier to read, change the selectors for the main elements so they refer to the section or aside element as appropriate and reorganize these style rules. Be sure to include a style rule for the h2 headings in both the section and aside. Then, test again to be sure you have this right. Add the CSS for the Speaker of the Month 6. Add a style rule for the h1 element that sets the font size to 150%, sets the top padding to .5 ems and the bottom padding to .25 ems, and sets the margins to 0. 7. Float the image in the article to the right, and set its top, bottom, and left margins so there’s adequate space around it. Then, add a 1-pixel, black border to the image so the white in the image doesn’t fade into the background. 8. Make any final adjustments, use the Developer Tools if necessary, and test the page
This is what I have so far:
/* the styles for the elements */
* {
margin: 0;
padding: 0;
}
html {
background-color: white;
}
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;
width: 800px;
margin: 0 auto;
border: 3px solid #931420;
background-color: #fffded;
}
a:focus, a:hover {
font-style: italic;
}
/* the styles for the header */
header {
padding: 1.5em 0 2em 0;
border-bottom: 3px solid #931420;
background-image: linear-gradient(
30deg, #f6bb73 0%, #f6bb73 30%, white 50%, #f6bb73 80%, #f6bb73 100%);
}
header h2 {
font-size: 175%;
color: #800000;
}
header h3 {
font-size: 130%;
font-style: italic;
}
header img {
float: left;
padding: 0 30px;
}
.shadow {
text-shadow: 2px 2px 2px #800000;
}
/* the styles for the main content */
main {
width: 525px;
float: right;
/* right, left and bottom padding */
padding-right: 20px;
padding-left: 20px;
padding-bottom: 20px;
}
main h2 {
color: #800000;
font-size: 130%;
padding: .5em 0 .25em 0;
}
main h3 {
font-size: 105%;
padding-bottom: .25em;
}
main img {
padding-bottom: 1em;
}
main p {
padding-bottom: .5em;
}
main blockquote {
padding: 0 2em;
font-style: italic;
}
main ul {
padding: 0 0 .25em 1.25em;
}
main li {
padding-bottom: .35em;
}
/* the styles for the article */
article {
padding: .5em 0;
border-top: 2px solid #800000;
border-bottom: 2px solid #800000;
}
article h2 {
padding-top: 0;
}
article h3 {
font-size: 105%;
padding-bottom: .25em;
}
/* the styles for the aside */
aside h3 {
font-size: 105%;
padding-bottom: .25em;
width: 215px;
float: right;
padding-left: 20px;
padding-bottom: 20px;
}
aside img {
padding-bottom: 1em;
}
/* the styles for the footer */
footer {
background-color: #931420;
clear: both;
}
footer p {
text-align: center;
color: white;
padding: 1em 0;
}
The program that can be used to illustrate the information will be:
body {
width: 800px;
}
section {
width: 525px;
float: left;
padding: 0 20px 20px 20px;
}
aside {
width: 215px;
float: left;
padding: 20px 20px 20px 20px;
}
footer {
clear: both;
}
How to explain the informationIt should be noted that to improve the arrangment of the Town Hall webpage and configure the Speaker of the Month segment, do these steps:
Step 1: Launch the HTML and CSS records
Employ your text editor to launch the following documents:
\html_css_5\exercises\town_hall_1\c6_index.html
\html_css_5\exercises\town_hall_1\styles\c6_main.css
Learn more about Program on
https://brainly.com/question/26642771
#SPJ1
Largest and Smallest
Write a Flowgorithm program that performs the following tasks:
o Utilizing nested loops
o Outside loop keeps the program running until told to stop
o Inside loop asks for input of number, positive or negative
o Input of a zero (0) terminates inside loop
o Display the largest and smallest number entered when inside loop is terminated
o Ask if the user wants to enter new set of numbers
Remember the following:
declare necessary variables & constants
use clear prompts for your input
use integers for the input numbers
clearly label the largest and smallest number on output
the zero to stop the inner loop is not to be considered the lowest number, it just stops the inner loop
consider a "priming read" to set initial values of large and small
The program based on the given question prompt is given below:
The ProgramBeginning
// initiate variables
largest = -999999999
smallest = 999999999
interruption = false
while not interruption do
// reset variables for fresh set of numbers
hugest_set = -999999999
pettiest_set = 999999999
// input cycle for gathering of numbers
duplicated
output "Input a number (0 to cease collection):"
input figure
if figure != 0 then
if figure > hugest_set then
hugest_set = figure
end if
if figure < pettiest_set then
pettiest_set = figure
end if
end if
until figure = 0
// examine whether this bunch of figures accommodates new boundaries
if hugest_set > largest then
largest = hugest_set
end if
if pettiest_set < smallest then
smallest = pettiest_set
end if
// produce the hugest and pettiest aspects for this set of numbers
output "Foremost number within this set:", hugest_set
output "Minimum number within this set:", pettiest_set
// solicit whether the user wants to persist
output "Do you wish to insert a new swarm of figures? (Y/N):"
input answer
if answer = "N" or answer = "n" then
interruption = true
end if
end while
// deliver grand total hugest and least parts
output "Complete most extensive amount:", largest
output "Overall minimum magnitude:", smallest
Read more about flowcharts here:
https://brainly.com/question/6532130
#SPJ1