I have two problems with my code. The first one is when the code is executed for second time and so on, it skip the first cin command but it does generate the first cout. My second problem is that if I input a value true for the lowers if statement I don't generate the cout. Everything else is working correctly except for does two thing
#include "pch.h"
#include <iostream>
#include <string>
#include <random>
#include <ctime>>
using namespace std;
int main()
{
mt19937 generator;
generator.seed(time(0));
uniform_int_distribution<uint32_t>dice(1000, 9999);
int ownderID=dice(generator);
string ownerName;
string dogName;
string dogBreed;
float dogAge;
float dogWgt;
int exits;
int weekCost = 0;
int dogAmount = 0;
int dailyPrice = 0;
do
{
cout << "Owner Name: ";
getline(cin, ownerName);
cout << endl;
cout << "Dog Name: ";
getline(cin, dogName);
cout << endl;
cout << "Dog Breed: ";
getline(cin, dogBreed);
cout << endl;
cout << "Dog Age: ";
cin >> dogAge;
cout << endl;
cout << "Dog Weight in lb: ";
cin >> dogWgt;
cout << endl;
cout << "Daily Bill" << endl;
cout << "Owner Name: " << ownerName << " ID" << "[" << ownderID << "]" << endl;
cout << "Dog Name: " << dogName << endl;
cout << "Dog Age: " << dogAge << endl;
cout << "Dog Breed: " << dogBreed << endl;
if (0<dogWgt && dogWgt <= 15)
{
dailyPrice = 55;
weekCost += 55;
if (15 < dogWgt && dogWgt <= 30)
{
dailyPrice = 75;
weekCost += 75;
if (30 < dogWgt && dogWgt <= 80)
{
dailyPrice = 105;
weekCost += 105;
if (dogWgt > 80)
{
dailyPrice = 125;
cout << "Daily Cost for (" << dogWgt << ") is $" << dailyPrice << endl;
weekCost += 125;
}
}
}
}
cout << "To terminate enter -1; To add another dog information enter 1: ";
cin >> exits;
cout << endl;
dogAmount += 1;
} while (exits != -1);
cout << "Total week cost: " << weekCost << endl;
cout << "Total number of daycare entries: " << dogAmount << " dogs" << endl;
system("PAUSE");
}