I need to access the values in the pizzaLocations array when main.cpp is run. The values include name, address, city, postalCode, province, latitude, longitude, priceRangeMax, priceRangeMin. I tried declaring getter functions, but that does not work.
How do I access the values? Do I need to declare a function to return the values?
#pragma once
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
using std::getline;
using std::ifstream;
using std::string;
using std::stringstream;
struct Location {
string name, address, city, postalCode,
province;
double latitude, longitude;
int priceRangeMin, priceRangeMax;
string getName(){ return name};
string getAddress(){ return address};
string getCity(){ return city};
string getPostalCode(){ return postalCode};
string getProvince(){ return province};
double getLatitude(){ return latitude};
double getLongitude(){ return longitude};
int getPriceRangeMin(){ return priceRangeMin};
int getPriceRangeMax(){ return
priceRangeMax};
};
class PizzaZine {
private:
Location*
pizzaLocations;
size_t size;
public:
//default
constructor
PizzaZine()
{
pizzaLocations = new Location[50];
this->size = 50;
}
//dynamically allocate array with user specified size
PizzaZine(size_t size) {
pizzaLocations = new Location[size];
this->size = size;
}
//destruct constructor
~PizzaZine()
{
delete[] pizzaLocations;
}
Location &operator[](size_t);//return the desired size for array
// This function is
implemented for you
void readInFile(const string
&);
};
Location &PizzaZine::operator[](size_t index)
{
return pizzaLocations[index];
}
//this function has been implemented for you
void PizzaZine::readInFile(const string &filename)
{
ifstream inFile(filename);
Location newLoc; //newLoc locally stores
values of pizzaLocations?
string line;
string cell;
// Read each line
for (int i = 0; i < size; ++i)
{
// Break each line up
into 'cells'
getline(inFile,
line);
stringstream
lineStream(line);
while (getline(lineStream,
newLoc.name, ',')) {
getline(lineStream, newLoc.address,
',');
getline(lineStream, newLoc.city,
',');
getline(lineStream, cell, ',');
if
(!cell.empty()) {
newLoc.postalCode = stoul(cell);
}
getline(lineStream, newLoc.province,
',');
getline(lineStream, cell, ',');
newLoc.latitude = stod(cell);
getline(lineStream, cell, ',');
newLoc.longitude = stod(cell);
newLoc.priceRangeMin = -1;
getline(lineStream, cell,
',');
if
(!cell.empty()) {
newLoc.priceRangeMin =
stoul(cell);
}
newLoc.priceRangeMax = -1;
getline(lineStream, cell, ',');
if
(!cell.empty() && cell != "\r") {
newLoc.priceRangeMax =
stoul(cell);
}
pizzaLocations[i] = newLoc; //how do I retrieve
the values in pizzaLocations once main.cpp is
called?
}//end of while
loop
}//end of for loop
}//end of readInFile function
In: Computer Science
How can I write java program code that do reverse, replace, remove char from string without using reverse, replace, remove method.
Only string method that I can use are length, concat, charAt, substring, and equals (or equalsIgnoreCase).
In: Computer Science
Implement the addSecond method in IntSinglyLinkedList. This method takes an Integer as an argument and adds it as the second element in the list.
Here is an example of adding the Integer 7 to a list with two elements.
Abstract view: addSecond(7) on the list [12, 100] turns the list into [12, 7, 100]
Implement the rotateLeft method in IntSinglyLinkedList. It moves all elements closer to the front of the list by one space, moving the front element to be the last.
For example, here is what it looks like to rotateLeft once.
Abstract view: rotateLeft() on the list [12, 7, 100] turns the list into [7, 100, 12]
IntSinglyLinkedListTest.java
package net.datastructures;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import static org.junit.Assert.*;
public class IntSinglyLinkedListTest {
@Test
public void addSecondTest1() {
IntSinglyLinkedList s = new IntSinglyLinkedList();
s.addFirst(12);
s.addSecond(7);
// System.out.println(s);
assertEquals(2, s.size());
assertEquals(7, (int)s.last());
assertEquals(12, (int)s.first());
}
@Test
public void addSecondTest2() {
IntSinglyLinkedList s = new IntSinglyLinkedList();
s.addFirst(12);
s.addFirst(7);
s.addSecond(6);
assertEquals(3, s.size());
assertEquals(12, (int)s.last());
assertEquals(7, (int)s.first());
}
@Test
public void addSecondTest3() {
IntSinglyLinkedList s = new IntSinglyLinkedList();
s.addFirst(12);
s.addSecond(7);
s.addSecond(6);
s.addSecond(1);
assertEquals(4, s.size());
assertEquals(7, (int)s.last());
assertEquals(12, (int)s.first());
assertEquals(12, (int)s.removeFirst());
assertEquals(1, (int)s.first());
assertEquals(1, (int)s.removeFirst());
assertEquals(6, (int)s.first());
}
@Test
public void rotateLeft1() {
IntSinglyLinkedList s = new IntSinglyLinkedList();
s.addFirst(7);
s.addFirst(6);
s.addFirst(5);
s.addFirst(4);
s.addFirst(3);
s.rotateLeft();
assertEquals(4, (int)s.first());
assertEquals(3, (int)s.last());
s.rotateLeft();
assertEquals(5, (int)s.first());
assertEquals(4, (int)s.last());
s.rotateLeft();
assertEquals(6, (int)s.first());
assertEquals(5, (int)s.last());
s.rotateLeft();
assertEquals(7, (int)s.first());
assertEquals(6, (int)s.last());
s.rotateLeft();
assertEquals(3, (int)s.first());
assertEquals(7, (int)s.last());
}
}
IntSinglyLinkedList.java
/*
* Copyright 2014, Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser
*
* Developed for use with the book:
*
* Data Structures and Algorithms in Java, Sixth Edition
* Michael T. Goodrich, Roberto Tamassia, and Michael H. Goldwasser
* John Wiley & Sons, 2014
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.datastructures;
/**
* A basic singly linked list implementation.
*
* @author Michael T. Goodrich
* @author Roberto Tamassia
* @author Michael H. Goldwasser
*/
/* CS2230
This version of IntSinglyLinkedList replaces the generic type Integer
with Integer. It may be easier to read if generic types
are hurting your brain.
*/
public class IntSinglyLinkedList {
//---------------- nested Node class ----------------
/**
* Node of a singly linked list, which stores a reference to its
* element and to the subsequent node in the list (or null if this
* is the last node).
*/
private static class Node {
/** The element stored at this node */
private Integer element; // reference to the element stored at this node
/** A reference to the subsequent node in the list */
private Node next; // reference to the subsequent node in the list
/**
* Creates a node with the given element and next node.
*
* @param e the element to be stored
* @param n reference to a node that should follow the new node
*/
public Node(Integer e, Node n) {
element = e;
next = n;
}
// Accessor methods
/**
* Returns the element stored at the node.
* @return the element stored at the node
*/
public Integer getElement() { return element; }
/**
* Returns the node that follows this one (or null if no such node).
* @return the following node
*/
public Node getNext() { return next; }
// Modifier methods
/**
* Sets the node's next reference to point to Node n.
* @param n the node that should follow this one
*/
public void setNext(Node n) { next = n; }
} //----------- end of nested Node class -----------
// instance variables of the IntSinglyLinkedList
/** The head node of the list */
private Node head = null; // head node of the list (or null if empty)
/** The last node of the list */
private Node tail = null; // last node of the list (or null if empty)
/** Number of nodes in the list */
private int size = 0; // number of nodes in the list
/** Constructs an initially empty list. */
public IntSinglyLinkedList() { } // constructs an initially empty list
// access methods
/**
* Returns the number of elements in the linked list.
* @return number of elements in the linked list
*/
public int size() { return size; }
/**
* Tests whether the linked list is empty.
* @return true if the linked list is empty, false otherwise
*/
public boolean isEmpty() { return size == 0; }
/**
* Returns (but does not remove) the first element of the list
* @return element at the front of the list (or null if empty)
*/
public Integer first() { // returns (but does not remove) the first element
if (isEmpty()) return null;
return head.getElement();
}
/**
* Returns (but does not remove) the last element of the list.
* @return element at the end of the list (or null if empty)
*/
public Integer last() { // returns (but does not remove) the last element
if (isEmpty()) return null;
return tail.getElement();
}
// update methods
/**
* Adds an element to the front of the list.
* @param e the new element to add
*/
public void addFirst(Integer e) { // adds element e to the front of the list
head = new Node(e, head); // create and link a new node
if (size == 0)
tail = head; // special case: new node becomes tail also
size++;
}
/**
* Adds an element to the end of the list.
* @param e the new element to add
*/
public void addLast(Integer e) { // adds element e to the end of the list
Node newest = new Node(e, null); // node will eventually be the tail
if (isEmpty())
head = newest; // special case: previously empty list
else
tail.setNext(newest); // new node after existing tail
tail = newest; // new node becomes the tail
size++;
}
/**
* Removes and returns the first element of the list.
* @return the removed element (or null if empty)
*/
public Integer removeFirst() { // removes and returns the first element
if (isEmpty()) return null; // nothing to remove
Integer answer = head.getElement();
head = head.getNext(); // will become null if list had only one node
size--;
if (size == 0)
tail = null; // special case as list is now empty
return answer;
}
@SuppressWarnings({"unchecked"})
public boolean equals(Object o) {
if (o == null) return false;
if (getClass() != o.getClass()) return false;
IntSinglyLinkedList other = (IntSinglyLinkedList) o; // use nonparameterized type
if (size != other.size) return false;
Node walkA = head; // traverse the primary list
Node walkB = other.head; // traverse the secondary list
while (walkA != null) {
if (!walkA.getElement().equals(walkB.getElement())) return false; //mismatch
walkA = walkA.getNext();
walkB = walkB.getNext();
}
return true; // if we reach this, everything matched successfully
}
public void rotateLeft() {
}
public void addSecond(Integer e) {
}
/**
* Produces a string representation of the contents of the list.
* This exists for debugging purposes only.
*/
public String toString() {
StringBuilder sb = new StringBuilder("(");
Node walk = head;
while (walk != null) {
sb.append(walk.getElement());
if (walk != tail)
sb.append(", ");
walk = walk.getNext();
}
sb.append(")");
return sb.toString();
}
public static void main(String[] args) {
IntSinglyLinkedList sl = new IntSinglyLinkedList();
sl.addLast(100);
sl.addLast(200);
sl.addLast(300);
System.out.println(sl.toString());
System.out.println("Removed " + sl.removeFirst());
System.out.println(sl.toString());
}
}
In: Computer Science
To the TwoDArray class, add a method called sumCols() that sums the elements in each column and displays the sum for each column. Add appropriate code in main() of the TwoDArrayApp class to execute the sumCols() method.
/**
* TwoDArray.java
*/
public class TwoDArray
{
private int a[][];
private int nRows;
public TwoDArray(int maxRows, int maxCols) //constructor
{
a = new int[maxRows][maxCols];
nRows = 0;
}
//******************************************************************
public void insert (int[] row)
{
a[nRows] = row;
nRows++;
}
//******************************************************************
public void display()
{
for (int i = 0; i < nRows; i++)
{
for (int j = 0; j < a[0].length; j++)
System.out.format("%5d", a[i][j]);
System.out.println(" ");
}
}
}
/**
* TwoDArrayApp.java
*/
public class TwoDArrayApp
{
public static void main(String[] args)
{
int maxRows = 20;
int maxCols = 20;
TwoDArray arr = new TwoDArray(maxRows, maxCols);
int b[][] = {{1, 2, 3, 4}, {11, 22, 33, 44}, {2, 4, 6, 8},{100, 200, 300,
400}};
arr.insert(b[0]); arr.insert(b[1]); arr.insert(b[2]); arr.insert(b[3]);
System.out.println("The original matrix: ");
arr.display();
}
}
In: Computer Science
Write a short message of between 15 and 40 characters to your classmates. Encode it using a linear affine cipher with n=26. Post the message to the “Encrypted Messages” thread but do not give the “a” and “b” that you utilized.
Also post your own initial response thread in which you propose at least one way that you might try to decipher messages without the key.
In: Computer Science
In: Computer Science
In python Consider the tuple t = (2,3,4,5). Write a function tuList( t ) that takes in a tuple, makes a list out of it, and also creates a new list of all possible sums of elements of the list
In: Computer Science
Java language
Exercise #2:
Design a Lotto class with one array instance variable to hold three
random integer values (from 1 to 9). Include a constructor that
randomly populates the array for a lotto object. Also, include a
method in the class to return the array.
Use this class in the driver class (LottoTest.java) to simulate a
simple lotto game in which the user chooses a number between 3 and
27. The user runs the lotto up to 5 times ( by creating an object
of Lotto class each time and with that three random integer values
will be stored in objects’s array instance variable) and each time
the sum of lotto numbers (sum of three random integers values) is
calculated. If the number chosen by the user matches the sum, the
user wins and the game ends. If the number does not match the sum
within five rolls, the computer wins.
Exercise #3:
Write a Java class that implements a static method –
SortNumbers(int… numbers) with variable number of arguments. The
method should be called with different numbers of parameters and
does arrange the numbers in descending order. Call the method
within main method of the driver classand display the results.
In: Computer Science
using C++
23. Savings Account Balance
Write a program that calculates the balance of a savings account at
the end of a three-
month period. It should ask the user for the starting balance and
the annual interest
rate. A loop should then iterate once for every month in the
period, performing the
following steps:
A) Ask the user for the total amount deposited into the account
during that month
and add it to the balance. Do not accept negative numbers.
B) Ask the user for the total amount withdrawn from the account
during that
month and subtract it from the balance. Do not accept negative
numbers or
numbers greater than the balance after the deposits for the month
have been
added in.
C) Calculate the interest for that month. The monthly interest rate
is the annual
interest rate divided by 12. Multiply the monthly interest rate by
the average of
that month’s starting and ending balance to get the interest amount
for the
month. This amount should be added to the balance.
After the last iteration, the program should display a report that
includes the following
information:
• starting balance at the beginning of the three-month period
• total deposits made during the three months
• total withdrawals made during the three months
• total interest posted to the account during the three
months
• final balance
test case:
Test Case1: Welcome to Your Bank! What is your starting Balance? $100 What is the annual interest rate?. Please enter whole value. For example 6 for 6% :6 Month #1 Current Balance: $100.00 Please enter total amount of deposits: $2000 Please enter total amount of withdrawals: $200 New Balance: $1905.00 Month #2 Current Balance: $1905.00 Please enter total amount of deposits: $3000 Please enter total amount of withdrawals: $2000 New Balance: $2917.03 Month #3 Current Balance: $2917.03 Please enter total amount of deposits: $4000 Please enter total amount of withdrawals: $2000 New Balance: $4936.61 Start Balance: $100.00 Total Deposits: $9000.00 Total Withdrawals: $4200.00 Total Interest Earned: $36.61 Final Balance: $4936.61
In: Computer Science
Convert the following 32-bit IEEE floating point numbers to
decimal:
0100 1100 1110 0110 1111 1000 0000 0000
1011 0101 1110 0110 1010 0110 0000 0000
Determine whether or not the following pairs are equivalent by
constructing truth tables:
[(wx'+y')(w'y+z)] and [(wx'z+y'z)]
[(wz'+xy)] and [(wxz'+xy+x'z')]
Using DeMorgan’s Law and Boolean algebra, convert the following
expressions into simplest form:
(a'd)'
(w+y')'
((bd)(a + c'))'
((wy'+z)+(xz)')'
Draw the circuit that implements each of the following
equations:
AB'+(C'+AD')+D
XY'+WZ+Y'
(AD'+BC+C'D)'
((W'X)'+(Y'+Z))'
In: Computer Science
In your own words, discuss the steps to improving customer experience.
In: Computer Science
I need to take the code i already have and change it to have at least one function in it. it has to include one function and one loop. I already have the loop but cant figure out how to add a function. I thought i could create a funciton to call to the totalCost but not sure how to do it. Help please.
#include
#include
//main function
int main(void)
{
char userName [20];
char yesOrNo [10];
float cookieCost=0;
float totalCost=0;
float cookiePrice;
//declerations
int cookieAmount;
int cookieChoice;
printf("Welcome to Candy Land Cafe!\n Please tell me
your name.\n");
scanf("%s", &userName);
while(1)
{
printf("%s, what type of cookie
would you like?\n", userName);
printf("1 for Sugar Cookie - $0.25\n2 for Chocolate
Chip - $0.35\n3 for Peanut Butter - $0.35\n");
//input cookie choice
scanf("%d", &cookieChoice);
if(cookieChoice == 1){
//user selected sugar cookie
printf("You selected a Sugar
Cookie. How many cookies would you like?\n");
scanf("%d", &cookieAmount);
//input
cookiePrice = 0.25;
//set cookie price
}
else if (cookieChoice == 2)
{ //user picked chocolate cookie
printf("You selected a Chocolate
Chip Cookie. How many would you like?\n");
scanf("%d", &cookieAmount);
//input
cookiePrice = 0.35;
//set cookie price
}
else if (cookieChoice == 3)
{ //user picked peanut cookie
printf("You selected a Peanut
Butter Cookie. How many would you like?\n");
scanf("%d", &cookieAmount);
//input
cookiePrice = 0.35;
//set cookie price
}
else
{
//did not make valid choice
printf("Invalid Choice, try
again...\n");
continue;
}
//calculate cost of cookies
cookieCost= cookieAmount * cookiePrice;
//add to total cost
totalCost= totalCost + cookieCost;
//cost of current cookie request
printf("%s, your cost is $%.2f.\n", userName,
cookieCost);
//ask for more cookies
printf("Would you like to order another cookie
type?\n");
scanf("%s", yesOrNo);
if(strcmp(yesOrNo, "no")==0) //if no, skip
to total cost and end
{
printf("%s, your total cost is
%.2f\n", userName, totalCost);
break; //end
}
}
//dispaly to user at end "Thanks"
printf("Thanks for ordering from Candy Land Cafe!\n");
system ("pause"); //hold window open
return 0; //success
} //end main
In: Computer Science
Write a Bottle class. The Bottle will have one private int that represents the countable value in the Bottle. Please use one of these names: cookies, marbles, M&Ms, pennies, nickels, dimes or pebbles. The class has these 14 methods: read()(please use a while loop to prompt for an acceptable value), set(int), set(Bottle), get(), (returns the value stored in Bottle), add(Bottle), subtract(Bottle), multiply(Bottle), divide(Bottle), add(int), subtract(int), multiply(int), divide(int), equals(Bottle), and toString()(toString() method will be given in class). All add, subtract, multiply and divide methods return a Bottle. This means the demo code b2 = b3.add(b1) brings into the add method a Bottle b1 which is added to b3. Bottle b3 is the this Bottle. The returned bottle is a new bottle containing the sum of b1 and b3. The value of b3 (the this bottle) is not changed. Your Bottle class must guarantee bottles always have a positive value and never exceed a maximum number chosen by you. These numbers are declared as constants of the class. Use the names MIN and MAX. The read() method should guarantee a value that does not violate the MIN or MAX value. Use a while loop in the read method to prompt for a new value if necessary. Each method with a parameter must be examined to determine if the upper or lower bound could be violated. In the case of the add method with a Bottle parameter your code must test for violating the maximum value. It is impossible for this add method to violate the minimum value of zero. The method subtract with a Bottle parameter must test for a violation of the minimum zero value but should not test for exceeding the maximum value. In the case of a parameter that is an integer, all methods must be examined to guarantee a value that does not violate the MIN or MAX values. Consider each method carefully and test only the conditions that could be violated. (2 point) Further in the semester we will use a runtime exception class to guarantee these invariants. public String toString(){return “” + this.pennies;}
I also have a demo to go with this one...
import java.util.Scanner; // test driver for the Bottle class public class BottleDemo3 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x; Bottle bottle1 = new Bottle(); Bottle bottle2 = new Bottle(); Bottle bottle3 = new Bottle(); Bottle bottle4 = new Bottle(); Bottle bottle5 = new Bottle(); System.out.println("please enter a number for bottle1:"); bottle1.read(); System.out.println("Bottle1 is this value " + bottle1 + "."); System.out.println("Please enter a number for bottle2:"); bottle2.read(); bottle3 = bottle2.add(bottle1); System.out.println("The sum of bottle2 and bottle1 is: " + bottle3 + "."); bottle4 = bottle3.divide(2); System.out.println("The 2 bottle average is: " + bottle4 + "."); System.out.print("Subtracting bottle1 from bottle2 is: " ); bottle3 = bottle2.subtract(bottle1); System.out.println( bottle3); bottle3 = bottle2.divide(bottle1); System.out.println("Dividing bottle2 with bottle1 is: " + bottle3 + "."); if (bottle1.equals(bottle2)) { System.out.println("Bottle1 and bottle2 are equal."); } else { System.out.println("Bottle1 and bottle2 are not equal."); } System.out.println("Bottle4 is now given the value of 10 with the set() method."); bottle4.set(10); System.out.println("The value of bottle4 is " + bottle4 + "."); System.out.println("Bottle4 is now multipled with bottle1. The value is placed in " + "bottle5."); bottle5 = bottle1.multiply(bottle4); System.out.println("The value of bottle5 is " + bottle5 + "."); System.out.println("Enter an integer to add to the value bottle1 has."); System.out.println("The sum will be put in bottle3."); x = scan.nextInt(); bottle3 = bottle1.add(x); System.out.println("Adding your number " + x + " to bottle1 gives a new Bottle with " + bottle3 + " in it."); System.out.print("Adding the number " + bottle2 + " which is the number" + " in bottle2 to the\nnumber in "); bottle2 = bottle1.add(bottle2); System.out.println("bottle1 which is " + bottle1 +" gives " + bottle2 + "."); bottle2.set(bottle2.get()); } }
In: Computer Science
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>All Pets Veterinary Hospital</title>
<style>
body {
font-family: arial, sans-serif;
font-size: 100%;
}
/* outer container */
#wrapper {
width: 960px;
margin: 50px auto;
padding: 0px;
background-color: rgb(255, 255, 255);
/* white */
border: 1px solid #000;
/* black */
}
header h1 {
text-align: center;
}
nav {
text-align: center;
background: rgb(175, 196, 206);
}
address figure {
text-align: center;
}
</style>
</head>
<body>
<div id="wrapper">
<!-- outer container -->
<header>
<h1>
All Pets Veterinary Hospital
<br>
<img src="images/logo.jpg" alt="All Pets Veterinary Hospital
logo">
</h1>
<p>
<strong>All Pets Veterinary Hospital</strong> has been
a leader in specialty veterinary care since 1990, fulfilling the
need for specialty healthcare and emergency services for animals in
San Diego County and Southern California.
</p>
<blockquote>
No matter how little money and how few possessions you own, having
a dog makes you rich.
<br> -- Louis Sabin
</blockquote>
</header>
<nav>
<a href="#">Home</a> |
<a href="#">Services</a> |
<a href="#">Staff</a> |
<a href="#">Contact</a>
</nav>
<section>
<h2>About Us</h2>
<figure>
<img src="images/photo_about_us.jpg" alt="Photo of staff and
dog">
</figure>
<p>
All Pets Veterinary Specialty Hospital is proud to provide the
highest quality of specialty care to pets, and the best customer
service to owners in the San Diego community. We have
state-of-the-art facilities, with some of the most advanced
equipment for pets found anywhere in the country. Simply put, we
are committed to being leaders in providing the best specialty care
for your pets.
</p>
</section>
<section>
<h2>Comprehensive Services</h2>
<figure>
<img src="images/photo_comprehensive_services.jpg" alt="Photo of
Dog being examined">
</figure>
<p>
Our hospital utilizes the latest equipment, including MRI, CAT
scan, radiation therapy, digital radiography, a state-of-the-art
intensive care unit, ultra-modern surgical suites, endoscopy,
ultrasound, and much more to provide comprehensive specialty care
for pets of all ages. Furthermore, our staff of doctors,
technicians and client service representatives has exceptional
training, motivation, and compassion for the pets we treat.
</p>
</section>
<section>
<h2>Compassionate Care</h2>
<figure>
<img src="images/photo_compassionate_care.jpg" alt="Photo of
staff and dog">
</figure>
<p>
In summary, as part of our mission to offer high-quality specialty
care for pets in the San Diego area, our hospitals boast a level of
sophistication that can only be found in the most advanced human
medical facilities. We strive for exceptional client service and
compassionate care for patients. Since most of us have pets of our
own, we understand the strong bond that our clients have with their
pets, and realize that they are part of the family.
</p>
</section>
<aside>
<h2>Testimonials</h2>
<p>
<q>Since I adopted my dogs they both have had significant
health issues. In search of a vet that we like we tried several vet
offices in San Diego. I was really impressed by this facility. Not
only they have very reasonable prices, but they love animals, and
they care a lot about all their patients. Unlike some other offices
we have been to, they never prescribe any unnecessary treatments
and they are always very clear about what treatment options we have
for our budget. If something serious is going on they follow up
with us after the visit, and just truly care about well being of
our animals.</q>
<br> - J. Smith
</p>
<p>
<q>Recently one of my dogs passed away. Me and my husband are
so heartbroken. The staff has been so compassionate and caring
through this difficult time. We could not ask for a better doctors
for our fur-babies! I highly recommend this veterinary hospital
office for anyone looking for a new or better veterinary clinic for
their pets. They treat and take good care of my dogs like they are
one of their own furry family members!</q>
<br> - A. Lopez
</p>
</aside>
<footer>
<h2>Contact us</h2>
<p>
If you're looking for high-quality specialty care for your pets,
call us at <strong>(858) 777-7700</strong> or you can
schedule an appointment for your pet online.
</p>
<address>
We are located at:<br>
10400 Sorrento Valley Road<br>
San Diego, CA 92121<br>
<strong>(858) 777-7700</strong>
<figure>
<img src="images/icons_social.jpg" alt="social icons">
</figure>
</address>
</footer>
</div>
<!-- end outer container -->
</body>
</html>
1.Add the needed CSS property, using the selectors of your choice so that the text is not so close to the edge of the outer border of the main “wrapper”. You want to adjust the space inside the element.
2.Add the needed CSS property, using the selector(s) of your choice so that the <section> <aside> and <footer>
elements are not so close to each other from the top/bottom. You want to adjust the space outside the element.
3.Add the needed CSS property, using the selector(s) of your choice to create a visual separator effect along the bottom of the <section> and <aside>
elements – do not use an element. This is done using the border property! Use any style of your choice
4. Add the needed CSS property or properties, using the selector(s) of your choice to apply at least a shadow to the three photos. You may add additional or alternate effect(s) if desired, as long as the three photos have a style around them. You must use either box-shadow or border-radius but you can use a combination, and can also include the border property. These three images will all have the same style so use the appropriate selector
5.Add the needed CSS property/properties using the selector of your choice to apply rounded corners to the social icon image
6.Add the needed CSS property/properties using the selectors of your choice to add a background image to the two <h2>
elements. You will need to use a text property to move the text away from the edge of the
element so it does not overlap with the background image.
In: Computer Science
In: Computer Science